Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
fimex:usage [2008-06-06 11:55:53] heikok created |
fimex:usage [2022-11-15 14:13:54] (current) alexanderb change wording |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Usage Example | + | ====== Usage Examples |
- | ===== Converting a model output from felt to NetCDF ===== | + | ===== Converting a felt model output from felt to NetCDF ===== |
- get an overview of times, layers and grid used in the felt-file | - get an overview of times, layers and grid used in the felt-file | ||
Line 9: | Line 9: | ||
- adjust the projection and area you want to extract in fimex_example.cfg (or use command line arguments to fimex) | - adjust the projection and area you want to extract in fimex_example.cfg (or use command line arguments to fimex) | ||
- run < | - run < | ||
+ | |||
+ | ===== Writing zarr with libnetcdf ===== | ||
+ | |||
+ | Zarr does not support unlimited dimensions. You may need to set '' | ||
+ | <?xml version=" | ||
+ | <netcdf xmlns=" | ||
+ | xmlns: | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | In version 4.8.1, libnetcdf does not support compressed zarr chunks. You probably have to disable compression with a netcdf writer config xml file similar to: | ||
+ | <?xml version=" | ||
+ | < | ||
+ | <default compressionLevel=" | ||
+ | </ | ||
+ | |||
+ | The fimex command would then be something like | ||
+ | fimex \ | ||
+ | --input.file " | ||
+ | --input.config " | ||
+ | --output.file " | ||
+ | --output.config " | ||
+ | --output.type nc4 | ||
+ | |||
+ | Please note that using libnetcdf to write zarr will still use a lock on libnetcdf function calls, i.e. there will only be one thread at a time reading or writing. | ||
+ | |||
+ | Datasets that were written like this do not seem to be readable with the same url (observed with netcdf 4.8.1), but reading appears to work with '' | ||
+ | |||
+ | See the [[https:// | ||