libsim
Versione 7.1.8
|
Module for describing geographically referenced regular grids. Continua...
Tipi di dato | |
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 | operator(==) |
Logical equality operators for objects of the classes grid_def, and griddim_def. Continua... | |
interface | operator(/=) |
Logical inequality operators for objects of the classes grid_def, and griddim_def. Continua... | |
interface | init |
Constructors of the corresponding objects. Continua... | |
interface | delete |
Destructors of the corresponding objects. Continua... | |
interface | copy |
Copy an object, creating a fully new instance. Continua... | |
interface | proj |
Compute forward coordinate transformation from geographical system to projected system. Continua... | |
interface | unproj |
Compute backward coordinate transformation from projected system to geographical system. Continua... | |
interface | get_val |
Method for returning the contents of the object. Continua... | |
interface | set_val |
Method for setting the contents of the object. Continua... | |
interface | write_unit |
Write the object on a formatted or unformatted file. Continua... | |
interface | read_unit |
Read the object from a formatted or unformatted file. Continua... | |
interface | import |
Import griddim object from grid_id. Continua... | |
interface | export |
Export griddim object to grid_id. Continua... | |
interface | display |
Print a brief description on stdout. Continua... | |
interface | index |
Index method. 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. Continua... | |
subroutine | griddim_delete (this) |
Destroy a griddim_def object. Continua... | |
subroutine | griddim_copy (this, that, categoryappend) |
Create an independent copy of a griddim_def object. Continua... | |
elemental subroutine | griddim_coord_proj (this, lon, lat, x, y) |
Computes and returns coordinates in the projected system given the geographical coordinates. Continua... | |
elemental subroutine | griddim_coord_unproj (this, x, y, lon, lat) |
Computes and returns geographical coordinates given the coordinates in the projected system. Continua... | |
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. Continua... | |
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. Continua... | |
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. Continua... | |
subroutine | griddim_read_unit (this, unit) |
This method reads from a Fortran file unit the contents of the object this. Continua... | |
subroutine | griddim_write_unit (this, unit) |
This method writes on a Fortran file unit the contents of the object this. Continua... | |
double precision function, public | griddim_central_lon (this) |
Euristically determine the approximate central longitude of the grid in degrees. Continua... | |
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. Continua... | |
subroutine, public | griddim_gen_coord (this, x, y) |
Generates coordinates of every point of a generic grid from the grid description. Continua... | |
subroutine | griddim_steps (this, nx, ny, dx, dy) |
Compute and return grid steps. Continua... | |
subroutine, public | griddim_setsteps (this) |
Compute and set grid steps. Continua... | |
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). Continua... | |
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). Continua... | |
subroutine | griddim_display (this) |
Display on the screen a brief content of the object. Continua... | |
integer function | count_distinct_grid (vect, mask, back) |
conta gli elementi distinti in vect Continua... | |
type(grid_def) function, dimension(dim) | pack_distinct_grid (vect, dim, mask, back) |
compatta gli elementi distinti di vect in un array Continua... | |
integer function, dimension(size(vect)) | map_distinct_grid (vect, mask, back) |
map distinct Continua... | |
integer function, dimension(dim) | map_inv_distinct_grid (vect, dim, mask, back) |
map inv distinct Continua... | |
integer function | index_grid (vect, search, mask, back, cache) |
Cerca l'indice del primo o ultimo elemento di vect uguale a search. Continua... | |
integer function | count_distinct_griddim (vect, mask, back) |
conta gli elementi distinti in vect Continua... | |
type(griddim_def) function, dimension(dim) | pack_distinct_griddim (vect, dim, mask, back) |
compatta gli elementi distinti di vect in un array Continua... | |
integer function, dimension(size(vect)) | map_distinct_griddim (vect, mask, back) |
map distinct Continua... | |
integer function, dimension(dim) | map_inv_distinct_griddim (vect, dim, mask, back) |
map inv distinct Continua... | |
integer function | index_griddim (vect, search, mask, back, cache) |
Cerca l'indice del primo o ultimo elemento di vect uguale a search. Continua... | |
subroutine | griddim_wind_unrot (this, rot_mat) |
Compute rotation matrix for wind unrotation. Continua... | |
subroutine | long_reset_0_360 (lon) |
Reset a longitude value in the interval [0-360[. Continua... | |
subroutine | long_reset_m180_360 (lon) |
Reset a longitude value in the interval [-180-360[. Continua... | |
subroutine | long_reset_m180_180 (lon) |
Reset a longitude value in the interval [-90-270[. Continua... | |
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