Emoslib is now deprecated

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

In order to interpolate GRIB-2 data, programs need to call INTF2 .

Before invoking this function, the new field must be described by suitable calls to INTOUT. INTF2 only supports GRIB packed data

Declare the function as INTEGER and EXTERNAL, and invoke it as follows:

      IRET = INTF2(INGRIB,INLEN,OUTGRIB,OUTLEN)

It is important to check the return valuein IRET to ensure the call has been successful.

In the special case when the specification for the output field is identical to that of the input field, interpolation is not carried out. This is an important optimisation for MARS processing and is indicated by a combination of return values in IRET and OUTLEN (both are set to zero).

 

Return value.

The return value, IRET, is 0 if the call is successful.

In the special case when the specification for the output field is identical to that of the input field, interpolation is not carried out. This case is indicated on return by:

  • IRET = 0
  • OUTLEN = 0
  • OUTGRIB does not contain the `new' field since it already exists in INGRIB

Parameters

  • No labels