# MI - Fimex: fimex Program Options

# fimex Program Options

fimex is a command-line program. It has the following options:

    usage: fimex --input.file  FILENAME [--input.type  INPUT_TYPE]
                 --output.file FILENAME [--output.type OUTPUT_TYPE]
                 [--input.config CFGFILENAME] [--output.config CFGFILENAME]
                 [--extract....]
                 [--interpolate....]
                 [--timeInterpolate....]

    Generic options:
      -h [ --help ]                    help message
      --version                        program version
      --debug                          debug program
      --print-options                  print all options
      -c [ --config ] arg (=fimex.cfg) configuration file

    Configurational options:
      --input.file arg                    input file
      --input.type arg                    filetype of intput file
      --input.config arg                  non-standard input configuration
      --input.printNcML                   print NcML description of input file
      --input.printCS                     print CoordinateSystem
      --output.file arg                   output file
      --output.type arg                   filetype of output file
      --output.config arg                 non-standard output configuration
      --qualityExtract.autoConfString arg quality-restrictions using CF-1.3 and a flag
      --qualityExtract.config arg         quality-restrictions configuration file
      --qualityExtract.printNcML          print NcML description of qualityExtractor
      --quality.printCS                   print CoordinateSystem
      --extract.removeVariable arg        remove variables
      --extract.reduceDimension.name arg  name of a dimension to reduce
      --extract.reduceDimension.start arg start position of the dimension to reduce (>=0)
      --extract.reduceDimension.end arg   end position of the dimension to reduce
      --extract.printNcML                 print NcML description of extractor
      --extract.printCS                   print CoordinateSystem
      --interpolate.projString arg        proj4 input string describing the new projection
      --interpolate.method arg            interpolation method, one of nearestneighbor,
                                          bilinear or bicubic
      --interpolate.xAxisValues arg       string with values on x-Axis, use ... to
                                          continue, i.e. 10.5,11,...,29.5
                                          see Fimex::SpatialAxisSpec for full definition
      --interpolate.yAxisValues arg       string with values on x-Axis, use ... to
                                          continue, i.e. 10.5,11,...,29.5
                                          see Fimex::SpatialAxisSpec for full definition
      --interpolate.xAxisUnit arg         unit of x-Axis given as udunits string,
                                          i.e. m or degrees_east
      --interpolate.yAxisUnit arg         unit of y-Axis given as udunits string,
                                          i.e. m or degrees_north
      --interpolate.latitudeName arg      name for auto-generated projection coordinate latitude
      --interpolate.longitudeName arg     name for auto-generated projection coordinate longitude
      --interpolate.printNcML             print NcML description of interpolator
      --interpolate.printCS               print CoordinateSystem
      --timeInterpolate.timeSpec arg      specification of times to interpolate to,
                                          see Fimex::TimeSpec for a full definition
      --timeInterpolate.printNcML         print NcML description of timeInterpolator
      --timeInterpolate.printCS           print CoordinateSystem
      --ncml.config                       modify/configure with ncml-file
      --ncml.printNcML                    print NcML description after ncml-configuration
      --ncml.printCS                      print CoordinateSystem

All the configurational options can be configured using a configuration file which is supplied using the --config option. All command line options (CLO) will overwrite the config-file. As a rule of thump, use the CLO for testing and use the config-file for productive usage. The CLOs will be further explained in fimex Setup File.

### fimex Setup File

The SpatialAxisSpec used in xAxisValues or yAxisValues for the spatial interpolation should be formatted as explained in detail in MetNoFimex::SpatialAxisSpec. It allows also autotuning to the orignal data-values.

The TimeSpec string used for the timeInterpolate should be formatted as explained in detail in MetNoFimex::TimeSpec.