|
◆ arrayof_gridinfo_insert_array()
subroutine, private gridinfo_class::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 |
|
) |
| |
|
private |
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
-
| this | array object to extend |
[in] | content | object of TYPE TYPE(gridinfo_def) to insert, if not provided, space is reserved but not initialized |
[in] | nelem | number of elements to add, mutually exclusive with the previous parameter, if both are not provided, a single element is added without initialization |
[in] | pos | position 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.
452 CALL l4f_category_log(this%category,l4f_warn, "export to gdal not implemented" ) 456 END SUBROUTINE gridinfo_export 464 SUBROUTINE gridinfo_export_to_file(this, filename, categoryappend) 465 TYPE(arrayof_gridinfo) :: this 466 CHARACTER(len=*), INTENT(in) :: filename 467 CHARACTER(len=*), INTENT(in), OPTIONAL :: categoryappend 469 INTEGER :: i, category 470 CHARACTER(len=512) :: a_name 471 TYPE(grid_file_id) :: output_file 472 TYPE(grid_id) :: valid_grid_id 474 IF ( PRESENT(categoryappend)) THEN 475 CALL l4f_launcher(a_name,a_name_append= & 476 trim(subcategory)// "."//trim(categoryappend)) 478 CALL l4f_launcher(a_name,a_name_append=trim(subcategory)) 480 category=l4f_category_get(a_name) 483 CALL l4f_category_log(category,l4f_debug, & 484 "exporting to file "//trim(filename)// " "//t2c(this%arraysize)// " fields")
|