[netcdf-java] Overwriting the record variables with NcML.

John,

I am trying to overwrite the coordinate variable 'time' with new values specified in the NcML file. If I use 'NcML' as input file,I can read the new time values as specified in the NcML, but if I write a netcdf file from NcML, then I get the original values from the referenced
dataset. Is this because 'time' is a record variable ?

Referenced dataset: http://www.gri.msstate.edu/rsearch_data/nopp/7923mc-a1h.nc

Example NcML:

<?xml version="1.0" encoding="UTF-8"?>
<netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2";
    location="http://www.gri.msstate.edu/rsearch_data/nopp/7923mc-a1h.nc";>
<variable name="time" shape="time" type="int"> <attribute name="units" value="hours since 2005-06-07 17:57:30"/> <values start="0" increment="1" />
</variable>

<variable name="depth">
<attribute name="positive" value="down"/> </variable>

<attribute name="Conventions" value="CF-1.0" />
</netcdf>

thanks,

Sachin.

--
Sachin Kumar Bhate, Research Associate
MSU-High Performance Computing Collaboratory, NGI
John C. Stennis Space Center, MS 39529
Ph: (601) 466-9692





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