galileoQC.gridFiles.grid_to_xarray

Reads a grid file into xarray DataSet.

Author: Mark Helm Dransfield

Created: Sat Jul 18 16:43:31 2020

License: CC BY-SA

Module Contents

Functions

gridfile_to_xr

Returns an xarray Dataset containing the geographically located data from a gridfile in either ERS or NC format.

gridfile_to_xa

Returns an xarray DataArray containing the geographically located data from a gridfile in either ERS or NC format.

Data

groupName

projectName

API

galileoQC.gridFiles.grid_to_xarray.groupName

None

galileoQC.gridFiles.grid_to_xarray.projectName

None

galileoQC.gridFiles.grid_to_xarray.gridfile_to_xr(whizzFile='', bandout=0)

Returns an xarray Dataset containing the geographically located data from a gridfile in either ERS or NC format.

Parameters

whizzFile : Path

The Path to the grid file, must have extension `ers` or `nc`.

bandout : Int, optional

The band to be read if the grid file is `ERS`. The default is 0.

Returns

xd : xarray Dataset

The data from `whizzFile`.
galileoQC.gridFiles.grid_to_xarray.gridfile_to_xa(whizzFile='', bandout=0)

Returns an xarray DataArray containing the geographically located data from a gridfile in either ERS or NC format.

Parameters

whizzFile : Path

The Path to the grid file, must have extension `ers` or `nc`.

bandout : Int, optional

The band to be read if the grid file is `ERS`. The default is 0.

Returns

xd : xarray Dataset

The data from `whizzFile`.