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

Russ Rew wrote:


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 ...


------- 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 Message

To: support-netcdf-java@xxxxxxxxxxxxxxxx,
To: yuy@xxxxxxxxxxxxxxxxxx
From: Bob Yu <yuy@xxxxxxxxxxxxxxxxxx>
Subject: dimension type for time series
Organization: UCAR/Unidata
Keywords: 200304021952.h32JqF7U006249

Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


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?


(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):

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