pyreshaper.iobackend module

The module containing the PyReshaper configuration specification class

This is a configuration specification class, through which the input to the PyReshaper code is specified. Currently all types of supported operations for the PyReshaper are specified with derived dypes of the Specification class.

Copyright 2020, University Corporation for Atmospheric Research See the LICENSE.txt file for details

class pyreshaper.iobackend.NCFile(filename, mode='r', ncfmt='netcdf4', compression=0)

Bases: object

Wrapper class for netCDF files/datasets

close()
create_dimension(name, value=None)
create_variable(name, datatype, dimensions, fill_value=None)
dimensions

Return the dimension sizes dictionary

getncattr(name)
ncattrs
setncattr(name, value)
unlimited(name)

Return whether the dimension named is unlimited

Parameters:
name (str): Name of dimension
variables
class pyreshaper.iobackend.NCVariable(vname, vobj, mode='r')

Bases: object

Wrapper class for NetCDF variables

assign_value(value)
datatype
dimensions
fill_value
get_value()
getncattr(name)
name
ncattrs
ndim
setncattr(name, value)
shape
size
pyreshaper.iobackend.get_backend()
pyreshaper.iobackend.is_available(name=None)
pyreshaper.iobackend.set_backend(name=None)