Versions Compared

Key

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

...

The MARS client is a C program linked with ECC and the EMOSLIB library (which contains the GRIB interpolation software), to handle GRIB and BUFR data, and the MIR package, to support interpolation and regridding operations. The MARS source code is also embedded in other applications, such as Metview.

...

Most of the access from Member State users comes via the ecgate system, by logging in or submitting batch jobs to ECMWF's computers. Moreover, the MARS client software is also available to access ECMWF's MARS system remotely by installing it at Member State sites. It removes user's need to login. Access and transfer of the data is transparent to the user, although data transfer may be slow. In addition, it is possible to create secondary cache systems at Member State sites in order to minimise remote access and transfer for popular data ECMWF Web API service allows authorised users to retrieve and list MARS data from outside ECMWF and to transfer the data directly to their host.

Servers

Details about the architecture of the MARS server are given in a separate article. MARS has evolved since this article was written back in 1999, e.g., software developed at ECMWF has replaced ObjectStore as metadata manager, but the general architecture is still valid. In 2003, the MARS contents were migrated to the High Performance Storage System (HPSS) tape management software, which replaced Tivoli Storage Manager (TSM, previously known as ADSM).

...

  • A set of applications written in C++ linked with the EMOSLIB libraryMIR and ecCodes libraries
  • High Performance Storage System (HPSS), which controls the tape, tape drive and robotic related activities.

...

Note that post-processing is done while the data is being transferred and before writing to disk.

MARS migration to GRIB API

The MARS client using GRIB API as its data decoder instead of GRIBEX has been made the default on all major platforms on 10 May 2011. To retrieve data in GRIB 2 format the use of this version is essential.

...

titleMore details

The MARS application has been migrated to use GRIB API as its data decoder instead of GRIBEX. This migration has two components:

  • Migration of the server. For this work, every field in the archive with different encoding had to be tested, to ensure that MARS/grib_api (MARS using GRIB API as its data decoder) indexes the data in the same way as MARS/gribex (MARS using GRIBEX as its data decoder). Most MARS servers have already been migrated and implemented at the end of 2010.
  • Migration of the client. This work involved migration of the following codes:
    • migration of the MARS client source code
    • migration of the interpolation software (libemos)

Because the interpolation software (libemos) uses extensively GRIBEX, many parts of the code had to be modified. Please see Field interpolation software for more information.

For the migration of the MARS client we have tried, as much as possible, to avoid changes to the GRIB headers or the results. Extensive tests have been run and comparisons between interpolations of MARS/gribex and MARS/grib_api have been performed using

grib_compare -P -T 2 ...

where the options have been chosen to skip differences smaller than twice the packing error. However, in some cases we have been unable to produce the same results. At the same time, we have found features of libemos/gribex (libemos using GRIBEX as data decoder) that have been corrected in libemos/grib_api (libemos using GRIB API as data decoder). Please see below for more details on known differences between MARS/gribex and MARS/grib_api.

MARS client for installation in Member States

For a grib_api MARS client version 20110322 or higher should be used, which needs to be compiled with libemos 381 (or higher) and grib_api 1.9.9 (or higher), which can be freely downloaded.

Known differences between MARS/gribex and MARS/grib_api

Interpolation of wave Mediterranean fields

The interpolation of wave fields has been re-written. The new routine correctly recognizes sea points on the southernmost, last latitude for limited area wave fields. This has been verified by the wave experts. Libemos/gribex has not been fixed.

Bitmaps and frames

MARS/gribex doesn't initialise bitmaps (which are also used for frames), while MARS/grib_api initialises bitmaps to 0. Since bitmap arrays are filled differently, for bitmaps that do not fit a multiple of 8, the remaining bits can have different values.

...

Different behaviour in MARS (not necessarily interpolation)

...

Attachments