Re: [netcdf-java] Renaming CoordinateAxis

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@xxxxxxxxxxxxxx | 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@xxxxxxxxxxxxxxxx
For list information or to unsubscribe, visit: http:// www.unidata.ucar.edu/mailing_lists/

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