0.6.2-dev0
FORCES
FORtran lib for Comp. Env. Sys.
Loading...
Searching...
No Matches
mo_netcdf.f90 File Reference

NetCDF Fortran 90 interface wrapper. More...

Go to the source code of this file.

Data Types

type  mo_netcdf::ncbase
 NetCDF base class. More...
 
type  mo_netcdf::ncattributable
 NetCDF attributable class. More...
 
interface  mo_netcdf::ncgroup
 NetCDF Group class. More...
 
interface  mo_netcdf::ncdataset
 NetCDF Dataset class. More...
 
interface  mo_netcdf::ncdimension
 NetCDF Dimension class. More...
 
interface  mo_netcdf::ncvariable
 NetCDF Variable class. More...
 
interface  mo_netcdf::getnameinterface
 get name abstract interface More...
 
interface  mo_netcdf::getparentinterface
 get parent abstract interface More...
 
interface  mo_netcdf::operator(==)
 NetCDF comparison operator. More...
 

Modules

module  mo_netcdf
 NetCDF Fortran 90 interface wrapper.
 

Functions/Subroutines

type(ncdataset) function mo_netcdf::newncdataset (fname, fmode, cmode)
 
type(ncvariable) function mo_netcdf::newncvariable (id, parent)
 
type(ncdimension) function mo_netcdf::newncdimension (id, parent)
 
type(ncgroup) function mo_netcdf::newncgroup (id)
 
subroutine mo_netcdf::sync (self)
 
subroutine mo_netcdf::close (self)
 
type(ncgroup) function mo_netcdf::setgroup (self, name)
 
type(ncgroup) function mo_netcdf::getgroupparent (self)
 
character(256) function mo_netcdf::getgroupname (self)
 
integer(i4) function mo_netcdf::getnovariables (self)
 
type(ncgroup) function mo_netcdf::getdimensionparent (self)
 
type(ncgroup) function mo_netcdf::getvariableparent (self)
 
integer(i4) function, dimension(:), allocatable mo_netcdf::getvariableids (self)
 
type(ncvariable) function, dimension(:), allocatable mo_netcdf::getvariables (self)
 
character(len=256) function mo_netcdf::getdimensionname (self)
 
integer(i4) function mo_netcdf::getdimensionlength (self)
 
logical function mo_netcdf::isdatasetunlimited (self)
 
type(ncdimension) function mo_netcdf::getunlimiteddimension (self)
 
logical function mo_netcdf::equalncbases (left, right)
 
logical function mo_netcdf::isunlimiteddimension (self)
 
type(ncdimension) function mo_netcdf::set_scrip_dimension (self, centersdim1, centersdim2, cornersdim1, cornersdim2, subdimsizes, units)
 
subroutine mo_netcdf::set_1d_coordinate_variable (self, name, ncdim, bounds, referencearg, ncvar)
 
type(ncdimension) function mo_netcdf::setdimension (self, name, length)
 
type(ncdimension) function mo_netcdf::setcoordinate (self, name, length, bounds, reference, attribute_names, attribute_values, centersdim1, centersdim2, cornersdim1, cornersdim2, subdimsizes, units)
 
logical function mo_netcdf::hasvariable (self, name)
 
logical function mo_netcdf::hasdimension (self, name)
 
logical function mo_netcdf::hasgroup (self, name)
 
type(ncvariable) function mo_netcdf::setvariablewithids (self, name, dtype, dimensions, contiguous, chunksizes, deflate_level, shuffle, fletcher32, endianness, cache_size, cache_nelems, cache_preemption)
 
type(ncvariable) function mo_netcdf::setvariablewithnames (self, name, dtype, dimensions, contiguous, chunksizes, deflate_level, shuffle, fletcher32, endianness, cache_size, cache_nelems, cache_preemption)
 
type(ncvariable) function mo_netcdf::setvariablewithtypes (self, name, dtype, dimensions, contiguous, chunksizes, deflate_level, shuffle, fletcher32, endianness, cache_size, cache_nelems, cache_preemption)
 
type(ncdimension) function mo_netcdf::getdimensionbyid (self, id)
 
type(ncdimension) function mo_netcdf::getdimensionbyname (self, name)
 
type(ncgroup) function mo_netcdf::getgroupbyname (self, name)
 
type(ncvariable) function mo_netcdf::getvariablebyname (self, name)
 
character(len=256) function mo_netcdf::getvariablename (self)
 
integer(i4) function mo_netcdf::getnodimensions (self)
 
type(ncdimension) function, dimension(:), allocatable mo_netcdf::getvariabledimensions (self)
 
integer(i4) function, dimension(:), allocatable mo_netcdf::getvariableshape (self)
 
integer(i4) function mo_netcdf::getvariablerank (self)
 
character(4) function mo_netcdf::getvariabledtype (self)
 
logical function mo_netcdf::isunlimitedvariable (self)
 
logical function mo_netcdf::hasattribute (self, name, xtype, len, attnum)
 
character(256) function, dimension(:), allocatable mo_netcdf::getattributenames (self)
 
subroutine mo_netcdf::setattribute_0d_sp (self, name, data)
 
subroutine mo_netcdf::getattribute_0d_sp (self, name, avalue)
 
subroutine mo_netcdf::setattribute_1d_sp (self, name, data)
 
subroutine mo_netcdf::getattribute_1d_sp (self, name, avalue)
 
subroutine mo_netcdf::setattribute_0d_dp (self, name, data)
 
subroutine mo_netcdf::getattribute_0d_dp (self, name, avalue)
 
subroutine mo_netcdf::setattribute_1d_dp (self, name, data)
 
subroutine mo_netcdf::getattribute_1d_dp (self, name, avalue)
 
subroutine mo_netcdf::setattribute_0d_i1 (self, name, data)
 
subroutine mo_netcdf::getattribute_0d_i1 (self, name, avalue)
 
subroutine mo_netcdf::setattribute_1d_i1 (self, name, data)
 
subroutine mo_netcdf::getattribute_1d_i1 (self, name, avalue)
 
subroutine mo_netcdf::setattribute_0d_i2 (self, name, data)
 
subroutine mo_netcdf::getattribute_0d_i2 (self, name, avalue)
 
subroutine mo_netcdf::setattribute_1d_i2 (self, name, data)
 
subroutine mo_netcdf::getattribute_1d_i2 (self, name, avalue)
 
subroutine mo_netcdf::setattribute_0d_i4 (self, name, data)
 
subroutine mo_netcdf::getattribute_0d_i4 (self, name, avalue)
 
subroutine mo_netcdf::setattribute_1d_i4 (self, name, data)
 
subroutine mo_netcdf::getattribute_1d_i4 (self, name, avalue)
 
subroutine mo_netcdf::setattribute_0d_i8 (self, name, data)
 
subroutine mo_netcdf::getattribute_0d_i8 (self, name, avalue)
 
subroutine mo_netcdf::setattribute_1d_i8 (self, name, data)
 
subroutine mo_netcdf::getattribute_1d_i8 (self, name, avalue)
 
subroutine mo_netcdf::setattribute_0d_char (self, name, data)
 
subroutine mo_netcdf::getattribute_0d_char (self, name, avalue)
 
integer(i4) function, dimension(2) mo_netcdf::getattributableids (self)
 
subroutine mo_netcdf::renameattribute (self, oldname, newname)
 
subroutine mo_netcdf::renamevariable (self, name)
 
subroutine mo_netcdf::renamedimension (self, name)
 
subroutine mo_netcdf::getdata_0d_sp (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_0d_sp (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_1d_sp (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_1d_sp (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_2d_sp (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_2d_sp (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_3d_sp (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_3d_sp (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_4d_sp (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_4d_sp (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_5d_sp (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_5d_sp (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_6d_sp (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_6d_sp (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getvariablefillvalue_sp (self, fvalue)
 
subroutine mo_netcdf::getcfattributes_sp (self, minvalue, maxvalue, fillvalue, flagmissing)
 
subroutine mo_netcdf::setvariablefillvalue_sp (self, fvalue)
 
subroutine mo_netcdf::getdata_0d_dp (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_0d_dp (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_1d_dp (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_1d_dp (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_2d_dp (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_2d_dp (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_3d_dp (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_3d_dp (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_4d_dp (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_4d_dp (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_5d_dp (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_5d_dp (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_6d_dp (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_6d_dp (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getvariablefillvalue_dp (self, fvalue)
 
subroutine mo_netcdf::getcfattributes_dp (self, minvalue, maxvalue, fillvalue, flagmissing)
 
subroutine mo_netcdf::setvariablefillvalue_dp (self, fvalue)
 
subroutine mo_netcdf::getdata_0d_i1 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_0d_i1 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_1d_i1 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_1d_i1 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_2d_i1 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_2d_i1 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_3d_i1 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_3d_i1 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_4d_i1 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_4d_i1 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_5d_i1 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_5d_i1 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_6d_i1 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_6d_i1 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getvariablefillvalue_i1 (self, fvalue)
 
subroutine mo_netcdf::getcfattributes_i1 (self, minvalue, maxvalue, fillvalue, flagmissing)
 
subroutine mo_netcdf::setvariablefillvalue_i1 (self, fvalue)
 
subroutine mo_netcdf::getdata_0d_i2 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_0d_i2 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_1d_i2 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_1d_i2 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_2d_i2 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_2d_i2 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_3d_i2 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_3d_i2 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_4d_i2 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_4d_i2 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_5d_i2 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_5d_i2 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_6d_i2 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_6d_i2 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getvariablefillvalue_i2 (self, fvalue)
 
subroutine mo_netcdf::getcfattributes_i2 (self, minvalue, maxvalue, fillvalue, flagmissing)
 
subroutine mo_netcdf::setvariablefillvalue_i2 (self, fvalue)
 
subroutine mo_netcdf::getdata_0d_i4 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_0d_i4 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_1d_i4 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_1d_i4 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_2d_i4 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_2d_i4 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_3d_i4 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_3d_i4 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_4d_i4 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_4d_i4 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_5d_i4 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_5d_i4 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_6d_i4 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_6d_i4 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getvariablefillvalue_i4 (self, fvalue)
 
subroutine mo_netcdf::getcfattributes_i4 (self, minvalue, maxvalue, fillvalue, flagmissing)
 
subroutine mo_netcdf::setvariablefillvalue_i4 (self, fvalue)
 
subroutine mo_netcdf::getdata_0d_i8 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_0d_i8 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_1d_i8 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_1d_i8 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_2d_i8 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_2d_i8 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_3d_i8 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_3d_i8 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_4d_i8 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_4d_i8 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_5d_i8 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_5d_i8 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getdata_6d_i8 (self, data, start, cnt, stride, map, mask)
 
subroutine mo_netcdf::setdata_6d_i8 (self, values, start, cnt, stride, map)
 
subroutine mo_netcdf::getvariablefillvalue_i8 (self, fvalue)
 
subroutine mo_netcdf::getcfattributes_i8 (self, minvalue, maxvalue, fillvalue, flagmissing)
 
subroutine mo_netcdf::setvariablefillvalue_i8 (self, fvalue)
 
integer(i4) function, dimension(:), allocatable mo_netcdf::getslicingshape (self, instart, incnt, instride)
 
integer(i4) function, dimension(:), allocatable mo_netcdf::getreadshape (slcshape, outrank)
 
integer(i4) function mo_netcdf::getdtypefromstring (dtype)
 
character(4) function mo_netcdf::getdtypefrominteger (dtype)
 
integer(i4) function mo_netcdf::getcreationmode (cmode)
 
subroutine mo_netcdf::check (status, msg)
 

Variables

character(10), parameter mo_netcdf::cf_fill_value = '_FillValue'
 CF fill value.
 
character(11), parameter mo_netcdf::cf_valid_range = 'valid_range'
 CF valid range.
 
character(9), parameter mo_netcdf::cf_valid_min = 'valid_min'
 CF valid min.
 
character(9), parameter mo_netcdf::cf_valid_max = 'valid_max'
 CF valid max.
 
integer(i4), parameter mo_netcdf::cf_use_fill_value = 1_i4
 CF use fill value.
 
integer(i4), parameter mo_netcdf::cf_use_valid_min = 2_i4
 CF use valid min.
 
integer(i4), parameter mo_netcdf::cf_use_valid_max = 3_i4
 CF use valid max.
 
integer(i4), parameter mo_netcdf::cf_use_valid_range = 4_i4
 CF use valid range.
 
integer(i4), parameter mo_netcdf::cf_use_nan = 5_i4
 CF use nan.
 

Detailed Description

NetCDF Fortran 90 interface wrapper.

A wrapper around the NetCDF Fortran 90 interface.

Changelog
  • David Schaefer, Jun 2015
    • written
  • Matthias Cuntz, Jan 2016
    • compiled with PGI Fortran rev 15.9
    • no automatic allocation of left-hand-side
  • Ricardo Torres, Feb 2017
    • add derived type NcGroup and NcAttributable. NcAttributable is the base derived type, NcGroup and NcVariable are extended from it. NcDataset is extended from NcGroup. No more duplicated routines to set attributes.
Authors
David Schaefer
Date
Jun 2015

Definition in file mo_netcdf.f90.