[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 20051223: netCDF Java - The fill flag does not work in NetcdfFileWriteable(java.lang.String location, boolean fill)

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: Re: 20051223: netCDF Java - The fill flag does not work in NetcdfFileWriteable(java.lang.String location, boolean fill)
  • Date: Tue, 03 Jan 2006 13:34:01 -0700

Hi Makiko:

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,
John

Unidata Support wrote:
------- Forwarded Message


To: address@hidden
From: "Makiko Umemoto" <address@hidden>
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