libsim  Versione6.3.0

◆ grid_id_export()

subroutine grid_id_class::grid_id_export ( type(grid_id), intent(inout)  this,
type(grid_file_id), intent(in)  file_id 
)

Export a grid_id object this to the file indicated by a grid_file_id object.

Both grid_id and grid_file_id objects must be related to the same driver (e.g. grib_api or gdal).

Parametri
[in]file_idfile object to which grid has to be exported

Definizione alla linea 761 del file grid_id_class.F90.

761 LOGICAL :: done
762 
763 done = .false.
764 #ifdef HAVE_LIBGRIBAPI
765 IF (c_e(this%gaid)) THEN
766  CALL grid_id_decode_data_gribapi(this%gaid, field)
767  done = .true.
768 ENDIF
769 #endif
770 #ifdef HAVE_LIBGDAL
771 ! subarea?
772 IF (gdalassociated(this%gdalid)) THEN
773  CALL grid_id_decode_data_gdal(this%gdalid, field, this%file_id%gdal_options)
774  done = .true.
775 ENDIF
776 #endif
777 IF (.NOT.done) field(:,:) = rmiss

Generated with Doxygen.