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

John Caron caron at unidata.ucar.edu
Tue Apr 8 16:12:34 MDT 2008


It works for me (file attached). what version are you using? how did you write the file?

Sachin Kumar Bhate wrote:
> 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.
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sachin.nc
Type: application/octet-stream
Size: 69036 bytes
Desc: not available
Url : http://mailman.unidata.ucar.edu/mailing_lists/archives/netcdf-java/attachments/20080408/136ac155/attachment-0001.nc 


More information about the netcdf-java mailing list