[netCdfJava #WVX-463093]: How to write to NetCDF from ASCII file without using temporary arrays in java code?

  • To: serg@xxxxxxxx
  • Subject: [netCdfJava #WVX-463093]: How to write to NetCDF from ASCII file without using temporary arrays in java code?
  • From: "Unidata netCDF Java Support" <support-netcdf-java@xxxxxxxxxxxxxxxx>
  • Date: Mon, 27 Feb 2006 12:59:33 -0700
> I create "strLen" dimension of size 255 because I don't know the
> maximum length of strings. I have large size of NetCDF file as a
> result. If I create "strLen" dimension of UNLIMITED length I get an
> error: "Unlimited dimension must be outermost".
> 
> Is there any approach to create arrays of dynamic size for
> strings? Or I must to calculate maximum length of string by myself
> before creating NetCDF file?

Nope, there isn't any way to make non-square arrays in netCDF-3. Unfortunately, 
this does end up using extra space unless you know all your strings are the 
same length. So, yes, your best bet is to calculate the maximum length of the 
string before creating the netCDF file.

Ethan

Ticket Details
==================
Ticket ID: WVX-463093
Department: Support netCDF Java
Priority: Normal
Status: Open


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