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.
The default behavior is to replace missing values with NaNs. To change, use NetcdfDataset.setUseNaNs(false). Note this is a glbcal setting. /** * Set whether to use NaNs for missing values, for efficiency * * @param b true if want to replace missing values with NaNs (default true) */ static public void setUseNaNs(boolean b) { useNaNs = b; } > I dumped a section of the grid variable where no data exists. > > The dump showed "NaN" for missing data. > > So, I see why GridAsPointDataset.getMissingValue is returning "NaN", > but why is it "NaN" instead of _FillValue? > > > Thanks > Mike > > > -------- Original Message -------- > Subject: [netCDFJava #GHG-344470]: GridAsPointDataset > Date: Fri, 27 Mar 2009 09:06:47 -0600 > From: Unidata netCDF Java Support <address@hidden> > Reply-To: address@hidden > To: address@hidden > > > > address@hidden, > > Your Ticket has been received, and a Unidata staff member will review it > and reply accordingly. Listed below are details of this new Ticket. > Please make sure the Ticket ID remains in the Subject: line on all > correspondence related to this Ticket. > > Ticket ID: GHG-344470 > Subject: GridAsPointDataset > Department: Support netCDF Java > Priority: Normal > Status: Open > > > > Please let us know how we can assist you any further. > > Unidata User Support > > > -- > > Ticket Details =================== Ticket ID: GHG-344470 Department: Support netCDF Java Priority: Normal Status: Open