- To: Christopher Mueller <cmueller@xxxxxxxxxxxxxx>
- Subject: Re: [netcdf-java] Renaming CoordinateAxis
- From: Jeff Van Dorn <jeffvandorn@xxxxxxxxx>
- Date: Thu, 24 Jan 2008 14:09:30 -0600
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. SolutionsImagination is everything. It is the preview of life's coming attractions. - Albert EinsteinWhether you think you can or think you can't, either way you are right. - Henry Ford_______________________________________________ netcdf-java mailing list netcdf-java@xxxxxxxxxxxxxxxxFor list information or to unsubscribe, visit: http:// www.unidata.ucar.edu/mailing_lists/
- References:
- [netcdf-java] Renaming CoordinateAxis
- From: Christopher Mueller
- [netcdf-java] Renaming CoordinateAxis