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 value in 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