Welcome to the BEAM Forum!

We encourage you to sign in our forum and participate in the BEAM community. The forum is maintained by the BEAM project team who will most likely answer your questions within 24 hours (except during common holidays) - if not done by other community members. Collaborate, share your knowledge and learn from other users!

If you don't find what you are looking for, please also consider the following external forums:

Combination View Flat View Tree View
Threads [ Previous | Next ]
convert netcdf to netcdf cf
toggle
convert netcdf to netcdf cf
11/25/16 9:17 AM
Hi,
Do you know somebody command line converter how convert netcdf to netcdf cf format?
beam have export data to netcdf cf but 30 files convert is manual difficult
thanks
Flag Flag
RE: convert netcdf to netcdf cf
11/25/16 9:51 AM as a reply to Roman Z.
Have you seen the pconvert tool? You can call it from the command line and/or write a batch script.
You can finde the documentation in the user manual.

cheers
Marco
Flag Flag
RE: convert netcdf to netcdf cf
11/25/16 11:01 AM as a reply to Marco Peters.
Yes I seen pconvert but it can export file netcdf to netcdf cf?
output files are only beam dimap ,hdf5,geotiff
Flag Flag
RE: convert netcdf to netcdf cf
11/28/16 10:11 AM as a reply to Roman Z.
Those formats are just examples. But it is difficult to find out which other formats can be used. This is on our SNAP agenda already.
You can use as format name also NetCDF-CF or NetCDF4-CF.
If you move to SNAP you can use the python script which is mentioned in this forum thread:
http://forum.step.esa.int/t/writeproduct-where-to-find-allowed-formatname/2659
Flag Flag
RE: convert netcdf to netcdf cf
11/28/16 6:33 PM as a reply to Marco Peters.
thanks Marco
Flag Flag
RE: convert netcdf to netcdf cf
12/9/16 8:03 AM as a reply to Roman Z.
Hallo Marco,
converting with pconvert netcdf to netcdf cf is work OK,
I want use python for converting , I download formats.py file but I do not know how to next use this file,
Could you me please help?
Thanks
Flag Flag
RE: convert netcdf to netcdf cf
12/12/16 9:00 AM as a reply to Roman Z.
The snappy_reader_writer_formats.py is just a little helper to get the supported format names.

The example which is of more help for you is snappy_subset.py.
Just remove the subset stuff between reading and writing.Write the product which is read and adjust the output format in the write call.

So you switched to SNAP? Would you mind to switch also to the SNAP forum for further questions?

cheers
Marco
Flag Flag
RE: convert netcdf to netcdf cf
12/12/16 9:48 AM as a reply to Marco Peters.
OK
thx
Flag Flag