Chris,
Yes, ragged arrays are supported in netcdf-4 by the VLEN type. I have
never used this type, so I can only point you to additional documentation
that might help.
http://www.unidata.ucar.edu/software/netcdf/docs_rc/data_type.html#vlen_types
http://www.unidata.ucar.edu/software/netcdf/docs/dvlen_8c.html
The first reference refers to "Variable Length Arrays in The NetCDF C
Interface Guide", but I have not found this exact documentation.
I recall seeing a few VLEN sample programs in the test suite in some recent
netcdf-C source code distribution. These would be genuine working examples
that you could learn from. HTH.
--Dave
On Mon, May 11, 2015 at 5:26 PM, Chris Barker <chris.barker@xxxxxxxx> wrote:
> On Mon, May 11, 2015 at 4:04 PM, Dave Allured - NOAA Affiliate <
> dave.allured@xxxxxxxx> wrote:
>
>> I appreciate your interest in the details. Netcdf-3 does not include
>> support for "jagged arrays", so all data storage is in rectangular prisms.
>> However, there is some support for jagged arrays in netcdf-4.
>>
>
> Is there? could you point me to some docs about that?
>
> I found this:
> """
> In netCDF-4/HDF5 format files, the introduction of the compound type
> allows the creation of complex data types, involving any combination of
> types. The VLEN type allows efficient storage of ragged arrays, and the
> introduction of hierarchical groups allows users new ways to organize data.
> """
>
> here:
> https://www.unidata.ucar.edu/software/netcdf/docs/netcdf/Limitations.html
>
> but haven't been able to see how to do it.
>
> -CHB
>