nc2d (2-dimensional Dataset)¶
nc2d _ [vdt]
_ll [cdt]
structure is used to declare a 2-dimensional NetCDF dataset.
Combinations can be made for the declaration of the structure by replacing [vdt]
by one of the data types defined in the FPL library ([byte, short, int, float, double]
)
and [cdt]
by a defined suffix for the data type of the coordinates f
for float and d
for double.
nc2d _ [vdt]
_ll [cdt]
¶
Type naming: |
|
||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Name parameters: | |||||||||||
|
|||||||||||
Unit parameters: | |||||||||||
|
|||||||||||
Dimension parameters: | |||||||||||
|
|||||||||||
Coordinate parameters: | |||||||||||
|
|||||||||||
Data parameters: | |||||||||||
|
Example:
Using a 2-dimensional NetCDF dataset with variable declared as double and coordinates declared as float (nc2d _ double
_ll f
).
1 2 3 4 5 6 7 8 9 10 11 12 | type :: nc2d_double_llf
sequence
character(len=100) :: varname, lonname, latname, long_name, varunits, &
lonunits, latunits
character(len=100), dimension(:), allocatable :: dimname, dimunits
integer(kind=intgr) :: nlons, nlats, ndims, vartype
integer(kind=intgr), dimension(:), allocatable :: dimid, dimsize, varids
integer(kind=intgr), dimension(2) :: dims
real(kind=double) :: FillValue
real(kind=float), dimension(:), allocatable :: longitudes, latitudes
real(kind=double), dimension(:,:), allocatable :: ncdata
end type nc2d_double_llf
|