dealloc4d (2-dimensional Dataset)¶
dealloc4d _ [vdt] _ll [cdt] _t [tdt] _l [ldt] subroutine is used to deallocate a 3-dimensional NetCDF dataset.
Combinations can be made for the statements of this structure 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), [tdt] by a defined suffix
for the datatype of time (i for integer, f for float and d for double) and [ldt] for a level suffix ((f for float and d for double).
dealloc4d _ [vdt] _ll [cdt] _t [tdt] _l [ldt] (idata)¶
| Type naming: |
|
||||||||
|---|---|---|---|---|---|---|---|---|---|
| Subroutine Parameters: | |||||||||
|
|||||||||
| Result: | idata structure with ncdata, longitudes, latitudes and times deallocated. |
||||||||
Code Example:
Deallocate a grid of type double with latitude and longitude defined as float, time and level defined as integer. (dealloc4d _double_llf_ti_li).
1 2 3 4 5 | subroutine dealloc4d_double_llf_ti_li(idata)
type(nc4d_double_llf_ti_li) :: idata
deallocate(idata%longitudes, idata%latitudes, idata%times, idata%levels, idata%ncdata)
deallocate(idata%dimid, idata%dimsize, idata%dimname, idata%dimunits, idata%varids)
end subroutine dealloc4d_double_llf_ti_li
|