EnesYildirim / netcdf4-python

Automatically exported from code.google.com/p/netcdf4-python
Other
0 stars 0 forks source link

Wrong fill value created #222

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello I'm trying to create a netCDF4 file with an array
calculated by me. the array contains averages of another 
array that has got a fill value 

What steps will reproduce the problem?
1. I get the fill value from the previous array 
2. calculate averages on depth layers of this array, and fill the average
array with the fill value whether points on land. 
3. I create a ncetCDF4 file to store this average array creating a variable
with the same fill value

What is the expected output? What do you see instead?
if i open the new netCDF4 file with ncview, points on land have
fill value -32768 (an integer) instead of -32768.0 

What version of the product are you using? On what operating system?
i'm using netCDF4 python libraries on red hat operative system 

interesting lines in attached file are 281-284

thanks,
Ivano

Original issue reported on code.google.com by ivano.ba...@gmail.com on 18 Jul 2014 at 9:04

Attachments:

GoogleCodeExporter commented 8 years ago
Moreover 

if i access to new array data, in land points i get
"--" instead of -32768

Original comment by ivano.ba...@gmail.com on 18 Jul 2014 at 9:09