[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 20030402:dimension type for time series (fwd)



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 <address@hidden>
To:      address@hidden
Subject: 20030402:dimension type for time series


------- Forwarded Message

To: address@hidden,
To: address@hidden
From: Bob Yu <address@hidden>
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  address@hidden
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