NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Russ Rew wrote:
John, Could you handle this please. I assume he just wants to use an array of char rather than a String, but maybe your OPeNDAP adaptation to handle Strings is relevant ... --Russ ------- Forwarded Message Date: Wed, 02 Apr 2003 13:20:58 -0700 From: Unidata Support <support@xxxxxxxxxxxxxxxx> To: russ@xxxxxxxxxxxxxxxx Subject: 20030402:dimension type for time series ------- Forwarded MessageTo: support-netcdf-java@xxxxxxxxxxxxxxxx, To: yuy@xxxxxxxxxxxxxxxxxx From: Bob Yu <yuy@xxxxxxxxxxxxxxxxxx> Subject: dimension type for time series Organization: UCAR/Unidata Keywords: 200304021952.h32JqF7U006249--------------35188879CC20E5B5CF4F209D Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I use NetCDF java (version 2.0) for generating netcdf files. I have a problem when tried to generate a time dimension {"Jan", "Feb", "Mar", ...} The NetCDF Java API have ArrayAbstract ( and ArrayInt, ArrayFloat, ...) but NO ArrayString for holding the above 1D array. The reason I need to use the above 1D array is to show month information rather than {1,2,3,4...}. What should I do? Thanks. -- (Bob) Yunyue YU Code 971, Goddard Space Flight Center Greenbelt, MD 20771 (301)614-6850 yuy@xxxxxxxxxxxxxxxxxx
Hi Bob:use ArrayChar class. it has getString() and setString() methods that should work for you.
you may also be interested in "Writing NetCDF Files: Best Practices" (general to all netcdf files):
http://www.unidata.ucar.edu/packages/netcdf/BestPractices.html
netcdf-java
archives: