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

  • To: Makiko Umemoto <makiko@xxxxxxxx>
  • Subject: Re: 20051223: netCDF Java - The fill flag does not work in NetcdfFileWriteable(java.lang.String location, boolean fill)
  • From: John Caron <caron@xxxxxxxxxxxxxxxx>
  • 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: 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


  • 2006 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: