libsim Versione 8.0.0

◆ grid_id_decode_data()

subroutine grid_id_decode_data ( type(grid_id), intent(in) this,
real, dimension(:,:), intent(out) field,
logical, intent(out), optional done )
private

Decode and return the data array from a grid_id object.

The output array field must have a size matching the size of the encoded data.

Definizione alla linea 945 del file grid_id_class.F90.

946INTEGER :: alternativeRowScanning, iScansNegatively, &
947 jScansPositively, jPointsAreConsecutive
948INTEGER :: x1, x2, xs, y1, y2, ys, ierr
949
950call grib_get(gaid,'GRIBEditionNumber',editionnumber)
951
952if (editionnumber == 2) then
953
954 CALL grib_get(gaid,'alternativeRowScanning',alternativerowscanning,ierr)
955 IF (ierr == grib_success .AND. alternativerowscanning /= 0)THEN
956 CALL l4f_log(l4f_error, "grib_api alternativeRowScanning not supported: " &
957 //trim(to_char(alternativerowscanning)))
958 CALL raise_error()
959 RETURN
960 ENDIF
961
962else if( editionnumber /= 1) then
963
964 call l4f_log(l4f_error, &
965 "grib_api GribEditionNumber not supported: "//t2c(editionnumber))
966 call raise_error()
967 RETURN
968
969end if
970

Generated with Doxygen.