libsim  Versione8.0.0

◆ arrayof_gridinfo_insert_array()

subroutine arrayof_gridinfo_insert_array ( type(arrayof_gridinfo)  this,
type(gridinfo_def), dimension(:), intent(in), optional  content,
integer, intent(in), optional  nelem,
integer, intent(in), optional  pos 
)

Method for inserting a number of elements of the array at a desired position.

If necessary, the array is reallocated to accomodate the new elements.

Parametri
thisarray object to extend
[in]contentobject of TYPE TYPE(gridinfo_def) to insert, if not provided, space is reserved but not initialized
[in]nelemnumber of elements to add, mutually exclusive with the previous parameter, if both are not provided, a single element is added without initialization
[in]posposition where to insert, if it is out of range, it is clipped, if it is not provided, the object is appended

Definizione alla linea 451 del file gridinfo_class.F90.

451 
452 #ifdef HAVE_LIBGRIBAPI
453 IF (grid_id_get_driver(this%gaid) == 'grib_api') THEN
454  gaid = grid_id_get_gaid(this%gaid)
455  IF (c_e(gaid)) CALL gridinfo_export_gribapi(this, gaid)
456 ENDIF
457 #endif
458 #ifdef HAVE_LIBGDAL
459 IF (grid_id_get_driver(this%gaid) == 'gdal') THEN
460 !gdalid = grid_id_get_gdalid(this%gaid)
461  CALL l4f_category_log(this%category,l4f_warn,"export to gdal not implemented" )
462 ENDIF
463 #endif
464 
465 END SUBROUTINE gridinfo_export
466 
467 
473 SUBROUTINE gridinfo_export_to_file(this, filename, categoryappend)
474 TYPE(arrayof_gridinfo) :: this
475 CHARACTER(len=*),INTENT(in) :: filename
476 CHARACTER(len=*),INTENT(in),OPTIONAL :: categoryappend
477 
478 INTEGER :: i
479 TYPE(l4f_handle) :: category
480 CHARACTER(len=512) :: a_name
481 TYPE(grid_file_id) :: output_file
482 TYPE(grid_id) :: valid_grid_id
483 
484 IF (PRESENT(categoryappend)) THEN

Generated with Doxygen.