Dear Niccolo,
You have some guide on the netcdf-java documentation:
https://docs.unidata.ucar.edu/netcdf-java/current/userguide/netcdf4_c_library.html#writing-netcdf-4-files
Please take a look to the Nccopy main method, where a input netcdf file
(i.e. netcdf-3) it's copied to a different netccdf file (i.e. netcdf-4):
https://github.com/Unidata/netcdf-java/blob/53dc507a39c13d6d1530afd0888240bff421334f/cdm-core/src/main/java/ucar/nc2/write/Nccopy.java#L172-L183
Regards
Antonio
--
Antonio S. Cofiño
Dep. de Matemática Aplicada y
Ciencias de la Computación
Universidad de Cantabria
http://www.meteo.unican.es
#PublicMoneyPublicCode
#DocumentFreedomDay
On 6/8/21 12:59 PM, Niccolo Tubini wrote:
Hi All,
In my project I am currently using netcdf-3 but I would like to move
to netcdf-4 in order to save outputs in a more efficient manner.
However netcdf-4 seems to be quite different from netcdf-3 thus I was
wondering if there are some examples in Java language. It will be
awesome the example explains how to compress and chunking data.
Thanks for any assistance you can provide.
Niccolò
_______________________________________________
NOTE: All exchanges posted to Unidata maintained email lists are
recorded in the Unidata inquiry tracking system and made publicly
available through the web. Users who post to any of the lists we
maintain are reminded to remove any personal information that they
do not want to be made public.
netcdf-java mailing list
netcdf-java@xxxxxxxxxxxxxxxx
For list information or to unsubscribe, visit:https://www.unidata.ucar.edu/mailing_lists/