Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

[netcdfgroup] [netCDF #KJX-899747]: Ragged Arrays in Fortran and netcdf4

> Hi All:
> 
> I am working on creating a netcdf4 file with the structure we are
> trying to achieve.  I have a file with Box10 groups and B0x2
> subgroups, works great.  Now I am trying to do ragged arrays.  Below
> is the only fortran example I can find that does ragged arrays.  It
> is only writing one,1-dimensional array, so I am unsure what I do
> when I am writing an N-dimensional ragged array.   Do I just write
> each "column" in a loop - if so how does it know that it is writing
> to the same structure?  Or if I can do multiple "columns" at once,
> how do I set that up.  More realistic examples would be very helpful,
> including an example that writes an N-dimensional ragged array, and
> an example that adds one more column to an existing ragged array.
> Even just the fortran equivalent of the program tst_vl.c would be
> very helpful
> 
> It is clear how to do it in C (I set up an array of structures of the
> given form), but not in either version of FORTRAN.
> 
> Thanks,
> 
> -Roy
> 

Hmmm, that's a bit of a stumper, really.

Can you tell me how you are storing these in fortran? You have an array of what?

Thanks,

Ed

Ticket Details
===================
Ticket ID: KJX-899747
Department: Support netCDF
Priority: Normal
Status: Open



 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690