[R] Editing the variables attributes section in the netCDF header of netCDF files created using the package ncdf.

RMaidment r.i.maidment at pgr.reading.ac.uk
Sat Sep 10 00:18:38 CEST 2011


Hi Dave, 

Many thanks for you prompt and useful reply. It worked a treat! 

Another question which you might be able to answer is, is it possible to set
the order of the variables attributes in which they appear? For example, I
would like to set the order of Example 2 to Example 1:

Example 1:
double lon(lon) ;
                lon:long_name = "longitude" ;
                lon:standard_name = "longitude" ;
                lon:units = "degrees_east" ;
                lon:axis = "X" ;

Example 2:
double lon(lon) ;
                lon:units = "degrees_east" ;
                lon:long_name = "longitude" ;
                lon:standard_name = "longitude" ;
                lon:axis = "X" ;

Many thanks,
Ross

--
View this message in context: http://r.789695.n4.nabble.com/Editing-the-variables-attributes-section-in-the-netCDF-header-of-netCDF-files-created-using-the-pack-tp3797349p3802927.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list