libsim Versione 7.2.6
|
Module for describing geographically referenced regular grids. Continua...
Tipi di dato | |
interface | copy |
Copy an object, creating a fully new instance. Continua... | |
interface | delete |
Destructors of the corresponding objects. Continua... | |
interface | display |
Print a brief description on stdout. Continua... | |
interface | export |
Export griddim object to grid_id. Continua... | |
interface | get_val |
Method for returning the contents of the object. Continua... | |
type | grid_def |
This object, mainly for internal use, describes a grid on a geographical projection, except the grid dimensions. Continua... | |
type | griddim_def |
This object completely describes a grid on a geographic projection. Continua... | |
interface | import |
Import griddim object from grid_id. Continua... | |
interface | index |
Index method. Continua... | |
interface | init |
Constructors of the corresponding objects. Continua... | |
interface | operator(/=) |
Logical inequality operators for objects of the classes grid_def, and griddim_def. Continua... | |
interface | operator(==) |
Logical equality operators for objects of the classes grid_def, and griddim_def. Continua... | |
interface | proj |
Compute forward coordinate transformation from geographical system to projected system. Continua... | |
interface | read_unit |
Read the object from a formatted or unformatted file. Continua... | |
interface | set_val |
Method for setting the contents of the object. Continua... | |
interface | unproj |
Compute backward coordinate transformation from projected system to geographical system. Continua... | |
interface | write_unit |
Write the object on a formatted or unformatted file. Continua... | |
Funzioni/Subroutine | |
subroutine | griddim_init (this, nx, ny, xmin, xmax, ymin, ymax, dx, dy, component_flag, proj_type, lov, zone, xoff, yoff, longitude_south_pole, latitude_south_pole, angle_rotation, longitude_stretch_pole, latitude_stretch_pole, stretch_factor, latin1, latin2, lad, projection_center_flag, ellips_smaj_axis, ellips_flatt, ellips_type, categoryappend) |
Constructor for a griddim_def object. | |
subroutine | griddim_delete (this) |
Destroy a griddim_def object. | |
subroutine | griddim_copy (this, that, categoryappend) |
Create an independent copy of a griddim_def object. | |
elemental subroutine | griddim_coord_proj (this, lon, lat, x, y) |
Computes and returns coordinates in the projected system given the geographical coordinates. | |
elemental subroutine | griddim_coord_unproj (this, x, y, lon, lat) |
Computes and returns geographical coordinates given the coordinates in the projected system. | |
subroutine, public | griddim_unproj (this) |
Computes the geographical coordinates of all the grid points in the griddim_def object and stores them in the object itself. | |
subroutine | griddim_get_val (this, nx, ny, xmin, xmax, ymin, ymax, dx, dy, component_flag, proj, proj_type, lov, zone, xoff, yoff, longitude_south_pole, latitude_south_pole, angle_rotation, longitude_stretch_pole, latitude_stretch_pole, stretch_factor, latin1, latin2, lad, projection_center_flag, ellips_smaj_axis, ellips_flatt, ellips_type) |
Query the object content. | |
subroutine | griddim_set_val (this, nx, ny, xmin, xmax, ymin, ymax, dx, dy, component_flag, proj_type, lov, zone, xoff, yoff, longitude_south_pole, latitude_south_pole, angle_rotation, longitude_stretch_pole, latitude_stretch_pole, stretch_factor, latin1, latin2, lad, projection_center_flag, ellips_smaj_axis, ellips_flatt, ellips_type) |
Set the object content. | |
subroutine | griddim_read_unit (this, unit) |
This method reads from a Fortran file unit the contents of the object this. | |
subroutine | griddim_write_unit (this, unit) |
This method writes on a Fortran file unit the contents of the object this. | |
double precision function, public | griddim_central_lon (this) |
Euristically determine the approximate central longitude of the grid in degrees. | |
subroutine, public | griddim_set_central_lon (this, lonref) |
Euristically reset the approximate central longitude of the grid to a value compatible to the provided longitude lonref. | |
subroutine, public | griddim_gen_coord (this, x, y) |
Generates coordinates of every point of a generic grid from the grid description. | |
subroutine | griddim_steps (this, nx, ny, dx, dy) |
Compute and return grid steps. | |
subroutine, public | griddim_setsteps (this) |
Compute and set grid steps. | |
subroutine | griddim_import_grid_id (this, ingrid_id) |
Import a griddim object from a grid_id object associated to a supported gridded dataset driver (typically a grib message from grib_api or a raster band from gdal). | |
subroutine | griddim_export_grid_id (this, outgrid_id) |
Export a griddim object to a grid_id object associated to a supported gridded dataset driver (typically a grib message from grib_api). | |
subroutine | griddim_display (this) |
Display on the screen a brief content of the object. | |
integer function | count_distinct_grid (vect, mask, back) |
conta gli elementi distinti in vect | |
type(grid_def) function, dimension(dim) | pack_distinct_grid (vect, dim, mask, back) |
compatta gli elementi distinti di vect in un array | |
integer function, dimension(size(vect)) | map_distinct_grid (vect, mask, back) |
map distinct | |
integer function, dimension(dim) | map_inv_distinct_grid (vect, dim, mask, back) |
map inv distinct | |
integer function | index_grid (vect, search, mask, back, cache) |
Cerca l'indice del primo o ultimo elemento di vect uguale a search. | |
integer function | count_distinct_griddim (vect, mask, back) |
conta gli elementi distinti in vect | |
type(griddim_def) function, dimension(dim) | pack_distinct_griddim (vect, dim, mask, back) |
compatta gli elementi distinti di vect in un array | |
integer function, dimension(size(vect)) | map_distinct_griddim (vect, mask, back) |
map distinct | |
integer function, dimension(dim) | map_inv_distinct_griddim (vect, dim, mask, back) |
map inv distinct | |
integer function | index_griddim (vect, search, mask, back, cache) |
Cerca l'indice del primo o ultimo elemento di vect uguale a search. | |
subroutine | griddim_wind_unrot (this, rot_mat) |
Compute rotation matrix for wind unrotation. | |
subroutine | long_reset_0_360 (lon) |
Reset a longitude value in the interval [0-360[. | |
subroutine | long_reset_m180_360 (lon) |
Reset a longitude value in the interval [-180-360[. | |
subroutine | long_reset_m180_180 (lon) |
Reset a longitude value in the interval [-90-270[. | |
subroutine | long_reset_to_cart_closest (lon, lonref) |
Module for describing geographically referenced regular grids.
This module defines classes and methods describing rectangular georeferenced grids in different geographical projections. The grid and projection definition can be specified explicitely by the caller or they can be entirely imported from a grib file (through grib_api) or from a file format supported by gdal (through gdal fortran interface).
The projection is internally stored following the WMO grib conventions (gridType in grib_api). The projections currently supported or for which support is planned are:
See the example program