Safe Haskell | Safe |
---|---|
Language | Haskell98 |
NetCDF file metadata handling: when a NetCDF file is opened,
metadata defining the dimensions, variables and attributes in the
file are read all at once to create a value of type NcInfo
.
Synopsis
- type Name = String
- data NcDim = NcDim {
- ncDimName :: Name
- ncDimLength :: Int
- ncDimUnlimited :: Bool
- data NcAttr
- = NcAttrByte [Word8]
- | NcAttrChar [Char]
- | NcAttrShort [CShort]
- | NcAttrInt [CInt]
- | NcAttrFloat [CFloat]
- | NcAttrDouble [CDouble]
- class ToNcAttr a where
- class FromNcAttr a where
- data NcVar = NcVar {}
- data NcInfo a = NcInfo {}
- data NcRead
- data NcWrite
- ncDim :: NcInfo a -> Name -> Maybe NcDim
- ncAttr :: NcInfo a -> Name -> Maybe NcAttr
- ncVar :: NcInfo a -> Name -> Maybe NcVar
- ncVarAttr :: NcVar -> Name -> Maybe NcAttr
- emptyNcInfo :: FilePath -> NcInfo NcWrite
- addNcDim :: NcDim -> NcInfo NcWrite -> NcInfo NcWrite
- addNcVar :: NcVar -> NcInfo NcWrite -> NcInfo NcWrite
- addNcAttr :: Name -> NcAttr -> NcInfo NcWrite -> NcInfo NcWrite
- addNcVarAttr :: Name -> NcAttr -> NcVar -> NcVar
- (#) :: a -> (a -> b) -> b
Documentation
Information about a dimension: name, number of entries and whether unlimited.
NcDim | |
|
Attribute value.
class FromNcAttr a where Source #
Conversion from attribute values to Haskell types.
Instances
Information about a variable: name, type, dimensions and attributes.
Metadata information for a whole NetCDF file.
ncVarAttr :: NcVar -> Name -> Maybe NcAttr Source #
Extract an attribute for a given variable by name.
addNcDim :: NcDim -> NcInfo NcWrite -> NcInfo NcWrite Source #
Add a new dimension to an NcInfo value.
addNcVar :: NcVar -> NcInfo NcWrite -> NcInfo NcWrite Source #
Add a new variable to an NcInfo value.