This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
> Full Name: Gael Quemener > Email Address: address@hidden > Organization: Ifremer > Package Version: > Operating System: > Hardware: > Description of problem: Hello, > > Do you know how to write a variable length array in Java? > > In C language I use nc_def_vlen, but I cannot find the equivalent in Java > > Thanks > > Gael > > Hi Gael, It looks like you're trying to write a netcdf file in java; var length arrays are only supported in netcdf-4, which we do not yet support writing. If you are asking in general how to write a variable length array in Java, you are probably looking for the class ArrayList in java.util. Regards, Lansing Madry Unidata Boulder, Colorado Ticket Details =================== Ticket ID: GZZ-406283 Department: Support netCDF Java Priority: Normal Status: Closed