Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
fimex:usage [2010-11-19 11:09:59] heikok |
fimex:usage [2026-02-04 09:44:00] (current) alexanderb |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Usage Example | + | ====== Usage Examples |
| - | ===== Using fimex as opendap-client ===== | + | Please see the wiki on [[https://github.com/metno/fimex/wiki/Examples|github]]. |
| - | + | ||
| - | ==== Install netcdf with integrated dap-support ==== | + | |
| - | + | ||
| - | === Prerequisites === | + | |
| - | + | ||
| - | * netcdf4 (4.1.1) from unidata | + | |
| - | * curl library: '' | + | |
| - | * make sure to remove | + | |
| - | + | ||
| - | === Build === | + | |
| - | + | ||
| - | Configuring, | + | |
| - | + | ||
| - | < | + | |
| - | ./configure --prefix=/usr/ | + | |
| - | make -k # there might be errors building the man-pages depending on tex-installation | + | |
| - | make check | + | |
| - | make -k install | + | |
| - | </ | + | |
| - | + | ||
| - | ==== Fimex and OpENDAP ==== | + | |
| - | + | ||
| - | === Build === | + | |
| - | + | ||
| - | < | + | |
| - | ./configure --with-netcdf=/ | + | |
| - | </ | + | |
| - | + | ||
| - | === Running an extraction from opendap === | + | |
| - | + | ||
| - | < | + | |
| - | fimex --input.file=http: | + | |
| - | --input.type=netcdf \ | + | |
| - | --output.type=netcdf \ | + | |
| - | --output.file=test.nc \ | + | |
| - | \ | + | |
| - | --extract.selectVariables=time \ | + | |
| - | --extract.selectVariables=x \ | + | |
| - | --extract.selectVariables=y \ | + | |
| - | --extract.selectVariables=depth \ | + | |
| - | --extract.selectVariables=longitude \ | + | |
| - | --extract.selectVariables=latitude \ | + | |
| - | --extract.selectVariables=temperature \ | + | |
| - | \ | + | |
| - | --extract.reduceTime.start=2010-10-05 \ | + | |
| - | --extract.reduceTime.end=2010-10-07 \ | + | |
| - | \ | + | |
| - | --extract.reduceToBoundingBox.south 55.0 \ | + | |
| - | --extract.reduceToBoundingBox.north 80.0 \ | + | |
| - | --extract.reduceToBoundingBox.east 20.0 \ | + | |
| - | --extract.reduceToBoundingBox.west -5.0 | + | |
| - | + | ||
| - | </ | + | |
| - | + | ||
| - | ===== Converting a model output from felt to NetCDF ===== | + | |
| - | + | ||
| - | - get an overview of times, layers and grid used in the felt-file | + | |
| - | - group the parameters so that all parameters within an group use the same grid, times and the same layers (its possible to have a file with both sigma and pressure layers, but then all sigma-variables should have the same number of sigma layers and all pressure-variables should have the same number of pressure layers. Surface only variable, usually sigma=1000 felt variables, are layer-group of their own) | + | |
| - | - create a felt2nc_variables.xml file for each variable group. Copy parameters from existing examples, or lookup variable and parameter names in the CF standard name documentation. If you have to generate several groups, it might be useful to split the file into axes, global attributes and variables, see i.e. // | + | |
| - | - validate the felt2nc_variables.xml file, i.e. with < | + | |
| - | - adjust the projection and area you want to extract in fimex_example.cfg (or use command line arguments to fimex) | + | |
| - | - run < | + | |