NLeSC / enram

Apache License 2.0
5 stars 10 forks source link

unsigned v. signed integer in HDF5 files #19

Closed jspaaks closed 10 years ago

jspaaks commented 10 years ago

when I compare

  1. /home/wbouten/enram/testdata/harmonized/cluttermaps/FR_abb/RAD_FR_abb_CLT_15082011_PRC0.h5
  2. the corresponding file that martin generated

I have 16-bit unsigned integers while martin has 16-bit signed integers in dataset1/data1

I want to make them to be equal, because then its easier to test for equality using h5diff

jspaaks commented 10 years ago

OK this was due to the fact that make_cluttermap.pro multiplies the array 'clut_data' with a variable 'iscan', which led to a type conversion of the result. I've now made 'iscan' a 16 bit signed integer, such that the result is what it was before (based on a h5diff).