Opened 8 years ago

Closed 8 years ago

#1434 closed defect (invalid)

NetCDF_Encode output nilValue shows wrong value

Reported by: Bang Pham Huu Owned by:
Priority: major Milestone: 9.3
Component: petascope Version: development
Keywords: Cc: Dimitar Misev, Vlad Merticariu
Complexity: Medium

Description

I imported the file ​http://flanche.net/geodata/nc-201003.nc with this recipe ​http://pastebin.com/C9bhSiB7

then compare in Panoply (left is encoded netCDF output, right is the input file). There are different

​http://rasdaman.org/attachment/ticket/1409/diffrent_netcdfs.png

the left image null value should be -999999 and in recipe set nilValue. The output has null values is (9969209…)

Change History (2)

comment:1 by Bang Pham Huu, 8 years ago

I thought that the nillValue in ingredient file will actually overwrite the NaN points in netCDF when encode. But actually, what it does is:

"CREATE TYPE hstQqKawiGEYzJVeAfXJkXhkNSYoBR AS float MDARRAY [a0,a1,a2]"

"CREATE TYPE zMcwKQdmsrRtXcddnLlNuUoyQQumAI AS 
 SET (hstQqKawiGEYzJVeAfXJkXhkNSYoBR NULL VALUES [-999:-999])"

and it will not overwrite the output data with this setting option (i.e: output still contains 9969209968386869000000000000000000000.0 as fill value instead of -999).

comment:2 by Bang Pham Huu, 8 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.