libsim Versione 7.2.6
|
Class for managing information about a single gridded georeferenced field, typically imported from an on-disk dataset like a grib file (grib_api driver) or a file in a gdal-supported format (gdal driver). Continua...
Tipi di dato | |
interface | append |
Quick method to append an element to the array. Continua... | |
type | arrayof_gridinfo |
Derived type defining a dynamically extensible array of TYPE(gridinfo_def) elements. Continua... | |
interface | clone |
Clone the object, creating a new independent instance of the object exactly equal to the starting one. Continua... | |
interface | decode_gridinfo |
Decode and return the data array from a grid_id object associated to a gridinfo object. Continua... | |
interface | delete |
Destructor, it releases every information associated with the object. Continua... | |
interface | display |
Display on standard output a description of the gridinfo object provided. Continua... | |
interface | encode_gridinfo |
Encode a data array into a grid_id object associated to a gridinfo object. Continua... | |
interface | export |
Export gridinfo descriptors information into a grid_id object. Continua... | |
type | gridinfo_def |
Object describing a single gridded message/band. Continua... | |
interface | import |
Import information from a file or grid_id object into the gridinfo descriptors. Continua... | |
interface | init |
Constructor, it creates a new instance of the object. Continua... | |
interface | insert |
Method for inserting elements of the array at a desired position. Continua... | |
interface | packarray |
Method for packing the array object reducing at a minimum the memory occupation, without destroying its contents. Continua... | |
interface | remove |
Method for removing elements of the array at a desired position. Continua... | |
Funzioni/Subroutine | |
subroutine, private | arrayof_gridinfo_insert_array (this, content, nelem, pos) |
Method for inserting a number of elements of the array at a desired position. | |
subroutine, private | arrayof_gridinfo_insert (this, content, pos) |
Method for inserting an element of the array at a desired position. | |
integer function, private | arrayof_gridinfo_append (this, content) |
Quick method to append an element to the array. | |
subroutine, private | arrayof_gridinfo_remove (this, nelem, pos, nodestroy) |
Method for removing elements of the array at a desired position. | |
subroutine, private | arrayof_gridinfo_delete (this, nodestroy, nodealloc) |
Destructor for finalizing an array object. | |
subroutine, private | arrayof_gridinfo_packarray (this) |
Method for packing the array object reducing at a minimum the memory occupation, without destroying its contents. | |
subroutine | gridinfo_init (this, gaid, griddim, time, timerange, level, var, clone, categoryappend) |
Constructor, it creates a new instance of the object. | |
subroutine | gridinfo_delete (this) |
Destructor, it releases every information associated with the object. | |
subroutine | gridinfo_display (this, namespace) |
Display on standard output a description of the gridinfo object provided. | |
subroutine | gridinfov_display (this, namespace) |
The same as gridinfo_display(), but it receives an array of gridinfo objects. | |
subroutine | gridinfo_clone (this, that, categoryappend) |
Clone the object, creating a new independent instance of the object exactly equal to the starting one. | |
subroutine | gridinfo_import (this) |
Import grid_id information into a gridinfo object. | |
subroutine | gridinfo_import_from_file (this, filename, categoryappend) |
Import an array of gridinfo from a file. | |
subroutine | gridinfo_export (this) |
Export gridinfo descriptors information into a message/band on file. | |
subroutine | gridinfo_export_to_file (this, filename, categoryappend) |
Export an arrayof_gridinfo object to a file. | |
real function, dimension(this%griddim%dim%nx, this%griddim%dim%ny) | gridinfo_decode_data (this) |
Decode and return the data array from a grid_id object associated to a gridinfo object. | |
subroutine | gridinfo_encode_data (this, field) |
Encode a data array into a grid_id object associated to a gridinfo object. | |
Class for managing information about a single gridded georeferenced field, typically imported from an on-disk dataset like a grib file (grib_api driver) or a file in a gdal-supported format (gdal driver).
This module defines a gridinfo (gridinfo_def TYPE) class which can contain information about a single field on a rectangular georeferenced grid, including:
every object contains also an identificator of the grid (grid_id object), carrying information about the driver used or which has to be used for import/export from/to file. The identificator should be associated to the gridinfo object at initialization time.
The main methods of this class allow to:
Simple example of use:
More complex example: