Yes, You are right, that's a bug. I will fix as soon as i can and let you know.
Probably not till next week.
Thanks for reporting the problem,
Unidata Support wrote:
------- Forwarded Message
From: "Makiko Umemoto" <makiko@xxxxxxxx>
Subject: netCDF Java - The fill flag does not work in
NetcdfFileWriteable(java.lang.String location, boolean fill)
Keywords: 200512232206.jBNM6hXN021489 netCDF-Java
Institution: US Geological Survey
Package Version: Version 2.2
Operating System: Windows XP
Hardware Information: AMD Athlon(tm) MP
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",
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.
time = UNLIMITED ;
int time(time) ;
float tmax(time) ;
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