Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

MARS can be called with the command line options listed in table 2the table below. Most of these options are particularly useful when problems arise.

MARS command line options
OptionMeaning
-dswitches debug information on (same as MARS_DEBUG=1)
-hprints help information
-pto use the previous MARS binary. If a user suspects a new version of MARS may yield different results (including errors, crashing, etc...) this is the first thing to try. If the previous version of MARS works, then contact the MARS Analysts to report the problem you've found.

...

In addition, the behaviour of MARS can be changed via various environment variables: 

MARS environment variables
Environment variableUsage
MARS_COMPUTE_FLAGif set to 0, the model identification number is preserved. When using compute, GRIB headers of resulting fields are changed to reflect fields have been created by MARS. In particular, model identification number is set to 255. With this env. variable, the model identification of the first field is copied onto the result.
MARS_DEBUGif set to a value different from 0, additional output will be generated
MARS_MULTITARGET_STRICT_FORMATif set to 1, 'consistent' file naming will be applied for multi targets, see section 6.5
GRIB_API_DEBUGIf set to 1, it will enable debug level logging messages to be displayed by the library.
JDCNDBG

if set to 1, debug information for interpolation will be generated (values 2, 3 ... give progressively more detailed diagnostics)

...