[netcdf-java] Renaming CoordinateAxis

Jeff Van Dorn jeffvandorn at yahoo.com
Thu Jan 24 13:09:30 MST 2008


One poor man's solution, would be to just make a system call, and use  
the NCO (http://nco.sourceforge.net/) utility ncrename (http:// 
nco.sourceforge.net/nco.html#ncrename-netCDF-Renamer), which can  
readily change variable names in netCDF files.  Just a thought.

Jeff

On Jan 24, 2008, at 1:55 PM, Christopher Mueller wrote:

> Hi All,
>
> I’m working with gridded datasets (for now) and am interested in  
> “renaming” the coordinate axes for certain datasets.  For example –  
> a particular dataset has a “latitude” coordinate axis called  
> “yu_ocean” and a “longitude” axis called “xu_ocean”.  Is there a  
> way to rename these axes to “lat” and “lon” without completely  
> rebuilding the nc file?
> I’m currently using:
> FileWriter.writeVariables(List<Variable>); FileWriter.finish();
>
> To write the file and would like to do the “rename” prior to these  
> calls – when I am building the List<Variable> to pass to  
> FileWriter.writeVariables()....
>
> Is this possible?
>
> Thanks,
> Chris
>
> -- 
> Christopher Mueller | Scientist
> Applied Science Associates
> 70 Dean Knauss Drive | Narragansett, RI 02882 USA
> p: +1 401-789-6224 | f: +1 401-789-1932
> e: cmueller at asascience.com | www.asascience.com
>
> ASA | Science. Services. Solutions
>
> Imagination is everything.  It is the preview of life's coming  
> attractions. - Albert Einstein
>
> Whether you think you can or think you can't, either way you are  
> right. - Henry Ford
> _______________________________________________
> netcdf-java mailing list
> netcdf-java at unidata.ucar.edu
> For list information or to unsubscribe, visit: http:// 
> www.unidata.ucar.edu/mailing_lists/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.unidata.ucar.edu/mailing_lists/archives/netcdf-java/attachments/20080124/58645d59/attachment.html 


More information about the netcdf-java mailing list