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
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
-
class
pyreshaper.iobackend.
NCFile
(filename, mode='r', ncfmt='netcdf4', compression=0, least_significant_digit=None)¶ Bases:
object
Wrapper class for netCDF files/datasets
-
close
()¶
-
create_dimension
(name, value=None)¶
-
create_variable
(name, datatype, dimensions, fill_value=None, chunksizes=None)¶
-
property
dimensions
¶ Return the dimension sizes dictionary
-
getncattr
(name)¶
-
property
ncattrs
¶
-
setncattr
(name, value)¶
-
unlimited
(name)¶ Return whether the dimension named is unlimited
- Parameters:
name (str): Name of dimension
-
property
variables
¶
-
-
class
pyreshaper.iobackend.
NCVariable
(vname, vobj, mode='r')¶ Bases:
object
Wrapper class for NetCDF variables
-
assign_value
(value)¶
-
property
chunk_sizes
¶
-
property
datatype
¶
-
property
dimensions
¶
-
property
fill_value
¶
-
get_value
()¶
-
getncattr
(name)¶
-
property
name
¶
-
property
ncattrs
¶
-
property
ndim
¶
-
setncattr
(name, value)¶
-
property
shape
¶
-
property
size
¶
-
-
pyreshaper.iobackend.
get_backend
()¶
-
pyreshaper.iobackend.
get_backend_version
(name=None)¶
-
pyreshaper.iobackend.
is_available
(name=None)¶
-
pyreshaper.iobackend.
set_backend
(name=None)¶