dealloc3d (2-dimensional Dataset)¶
dealloc3d _ [vdt] _ll [cdt] _t [tdt] subroutine is used to deallocate a 3-dimensional NetCDF dataset.
Combinations can be made for the statements of this subroutine by replacing [vdt]
by one of the data types defined in the FPL library ([byte, short, int, float, double]),
[cdt] by a defined suffix for the data type of the coordinates f for float and d for double and
[tdt] by a defined suffix for the datatype of time (i for integer, f for float and d for double).
dealloc3d _ [vdt] _ll [cdt] _t [tdt] (idata)¶
| Type naming: |
|
||||||
|---|---|---|---|---|---|---|---|
| Subroutine Parameters: | |||||||
|
|||||||
| Result: | idata structure with ncdata, longitudes, latitudes and times deallocated. |
||||||
Code Example:
Deallocate a grid of type short with coordinates and time defined as float. (dealloc3d _short_llf_tf).
1 2 3 4 5 | subroutine dealloc3d_short_llf_tf(idata)
type(nc3d_short_llf_tf) :: idata
deallocate(idata%longitudes, idata%latitudes, idata%times, idata%ncdata)
deallocate(idata%dimid, idata%dimsize, idata%dimname, idata%dimunits, idata%varids)
end subroutine dealloc3d_short_llf_tf
|