Hi Makiko :
The bug with fill should be fixed in the latest version (2.2.13.02)
Make sure that fill = true when you create, I would recommend that you now use
static public NetcdfFileWriteable createNew(String location, boolean fill);
Let me know if you see any problems.
Thanks!
Unidata Support wrote:
------- Forwarded Message
To: support-netcdf-java@xxxxxxxxxxxxxxxx
From: "Makiko Umemoto" <makiko@xxxxxxxx>
Subject: netCDF Java - The fill flag does not work in
NetcdfFileWriteable(java.lang.String location, boolean fill)
Organization: USGS
Keywords: 200512232206.jBNM6hXN021489 netCDF-Java
Institution: US Geological Survey
Package Version: Version 2.2
Operating System: Windows XP
Hardware Information: AMD Athlon(tm) MP
Inquiry: Hi,
I used NetcdfFileWriteable(java.lang.String location, boolean fill) to
create a Netcdf file where the fill flag was set to true. It should
havae first write the data with fill values, but it didn't. Instead, 0
was written to all the data. I tried to make this work by explicitly
setting _FillValue using ncfile.addVariableAttribute("tmax",
"_FillValue", Float.MIN_VALUE);
This did not change anything. How can I make the program prefill data
with fill values?
I am using only two variables as shown below in case you need this info.
dimensions:
time = UNLIMITED ;
variables:
int time(time) ;
float tmax(time) ;
Thanks.
Makiko
--
NOTE: All email exchanges with Unidata User Support are recorded in the
Unidata inquiry tracking system and then made publicly available
through the web. If you do not want to have your interactions made
available in this way, you must let us know in each email you send to us.
------- End of Forwarded Message