ascat.product_info package

Submodules

ascat.product_info.product_info module

class ascat.product_info.product_info.AscatH121Cell[source]

Bases: RaggedArrayCellProduct

grid_name = 'fibgrid_12.5'
class ascat.product_info.product_info.AscatH121Swath[source]

Bases: AscatSwathProduct

cell_fn_format = '{:04d}.nc'
date_field_fmt = '%Y%m%d%H%M%S'
fn_pattern = 'W_IT-HSAF-ROME,SAT,SSM-ASCAT-METOP{sat}-12.5km-H121_C_LIIB_{placeholder}_{placeholder1}_{date}____.nc'
static fn_read_fmt(timestamp, sat='[ABC]')[source]
grid_name = 'fibgrid_12.5'
sf_pattern = {'month_folder': '{month}', 'satellite_folder': 'metop_[abc]', 'year_folder': '{year}'}
static sf_read_fmt(timestamp, sat='[abc]')[source]
class ascat.product_info.product_info.AscatH122Cell[source]

Bases: RaggedArrayCellProduct

grid_name = 'fibgrid_6.25'
class ascat.product_info.product_info.AscatH122Swath[source]

Bases: AscatSwathProduct

cell_fn_format = '{:04d}.nc'
date_field_fmt = '%Y%m%d%H%M%S'
fn_pattern = 'W_IT-HSAF-ROME,SAT,SSM-ASCAT-METOP{sat}-6.25km-H122_C_LIIB_{placeholder}_{placeholder1}_{date}____.nc'
static fn_read_fmt(timestamp, sat='[ABC]')[source]
grid_name = 'fibgrid_6.25'
sf_pattern = {}
static sf_read_fmt(timestamp)[source]
class ascat.product_info.product_info.AscatH129Cell[source]

Bases: RaggedArrayCellProduct

grid_name = 'fibgrid_6.25'
class ascat.product_info.product_info.AscatH129Swath[source]

Bases: AscatSwathProduct

cell_fn_format = '{:04d}.nc'
date_field_fmt = '%Y%m%d%H%M%S'
fn_pattern = 'W_IT-HSAF-ROME,SAT,SSM-ASCAT-METOP{sat}-6.25km-H129_C_LIIB_{placeholder}_{placeholder1}_{date}____.nc'
static fn_read_fmt(timestamp, sat='[ABC]')[source]
grid_name = 'fibgrid_6.25'
sf_pattern = {'month_folder': '{month}', 'satellite_folder': 'metop_[abc]', 'year_folder': '{year}'}
static sf_read_fmt(timestamp, sat='[abc]')[source]
class ascat.product_info.product_info.AscatH130Cell[source]

Bases: RaggedArrayCellProduct

grid_name = 'fibgrid_6.25'
class ascat.product_info.product_info.AscatH130Swath[source]

Bases: AscatSwathProduct

cell_fn_format = '{:04d}.nc'
date_field_fmt = '%Y%m%d%H%M%S'
fn_pattern = 'W_IT-HSAF-ROME,SAT,SSM-ASCAT-METOP{sat}-6.25km-H130_C_LIIB_{placeholder}_{placeholder1}_{date}____.nc'
static fn_read_fmt(timestamp, sat='[ABC]')[source]
grid_name = 'fibgrid_6.25'
sf_pattern = {}
static sf_read_fmt(timestamp)[source]
class ascat.product_info.product_info.AscatH139Cell[source]

Bases: RaggedArrayCellProduct

grid_name = 'fibgrid_12.5'
class ascat.product_info.product_info.AscatH139Swath[source]

Bases: AscatSwathProduct

cell_fn_format = '{:04d}.nc'
date_field_fmt = '%Y%m%d%H%M%S'
fn_pattern = 'W_IT-HSAF-ROME,SAT,SSM-ASCAT-METOP{sat}-12.5km-H139_C_LIIB_{placeholder}_{placeholder1}_{date}____.nc'
static fn_read_fmt(timestamp, sat='[ABC]')[source]
grid_name = 'fibgrid_12.5'
sf_pattern = {}
static sf_read_fmt(timestamp)[source]
class ascat.product_info.product_info.AscatH29Cell[source]

Bases: RaggedArrayCellProduct

grid_name = 'fibgrid_12.5'
class ascat.product_info.product_info.AscatH29Swath[source]

Bases: AscatSwathProduct

cell_fn_format = '{:04d}.nc'
date_field_fmt = '%Y%m%d%H%M%S'
fn_pattern = 'W_IT-HSAF-ROME,SAT,SSM-ASCAT-METOP{sat}-12.5km-H29_C_LIIB_{placeholder}_{placeholder1}_{date}____.nc'
static fn_read_fmt(timestamp, sat='[ABC]')[source]
grid_name = 'fibgrid_12.5'
sf_pattern = {}
static sf_read_fmt(timestamp)[source]
class ascat.product_info.product_info.AscatSIG0Cell12500m[source]

Bases: RaggedArrayCellProduct

grid_name = 'fibgrid_12.5'
class ascat.product_info.product_info.AscatSIG0Cell6250m[source]

Bases: RaggedArrayCellProduct

grid_name = 'fibgrid_6.25'
class ascat.product_info.product_info.AscatSIG0Swath12500m[source]

Bases: AscatSwathProduct

Class for reading and writing ASCAT sigma0 swath data.

cell_fn_format = '{:04d}.nc'
date_field_fmt = '%Y%m%d%H%M%S'
fn_pattern = 'W_IT-HSAF-ROME,SAT,SIG0-ASCAT-METOP{sat}-12.5_C_LIIB_{placeholder}_{placeholder1}_{date}____.nc'
static fn_read_fmt(timestamp, sat='[ABC]')[source]

Format a timestamp to search as YYYYMMDD*, for use in a regex that will match all files covering a single given date.

Parameters:

timestamp (datetime.datetime) – Timestamp to format

Returns:

Dictionary of formatted strings

Return type:

dict

grid_name = 'fibgrid_12.5'
sf_pattern = {'satellite_folder': 'metop_[abc]', 'year_folder': '{year}'}
static sf_read_fmt(timestamp, sat='[abc]')[source]
class ascat.product_info.product_info.AscatSIG0Swath6250m[source]

Bases: AscatSwathProduct

Class for reading ASCAT sigma0 swath data and writing it to cells.

cell_fn_format = '{:04d}.nc'
date_field_fmt = '%Y%m%d%H%M%S'
fn_pattern = 'W_IT-HSAF-ROME,SAT,SIG0-ASCAT-METOP{sat}-6.25_C_LIIB_{placeholder}_{placeholder1}_{date}____.nc'
static fn_read_fmt(timestamp, sat='[ABC]')[source]

Format a timestamp to search as YYYYMMDD*, for use in a regex that will match all files covering a single given date.

Parameters:

timestamp (datetime.datetime) – Timestamp to format

Returns:

Dictionary of formatted strings

Return type:

dict

grid_name = 'fibgrid_6.25'
sf_pattern = {'satellite_folder': 'metop_[abc]', 'year_folder': '{year}'}
static sf_read_fmt(timestamp, sat='[abc]')[source]
class ascat.product_info.product_info.AscatSwathProduct[source]

Bases: SwathProduct

grid_name = None
static postprocess_(ds)[source]
classmethod preprocess_(ds)[source]
class ascat.product_info.product_info.BaseCellProduct[source]

Bases: object

fn_format = '{:04d}.nc'
classmethod preprocessor(ds)[source]
class ascat.product_info.product_info.ErsCell[source]

Bases: RaggedArrayCellProduct

classmethod preprocessor(ds)[source]
class ascat.product_info.product_info.ErsHCell[source]

Bases: ErsCell

grid_name = 'fibgrid_12.5'
class ascat.product_info.product_info.ErsNCell[source]

Bases: ErsCell

grid_name = 'fibgrid_25'
class ascat.product_info.product_info.OrthoMultiArrayCellProduct[source]

Bases: BaseCellProduct

file_class

alias of OrthoMultiTimeseriesCell

instance_dim = 'locations'
classmethod preprocessor(ds)[source]
sample_dim = 'obs'
class ascat.product_info.product_info.RaggedArrayCellProduct[source]

Bases: BaseCellProduct

file_class

alias of RaggedArrayTs

instance_dim = 'locations'
classmethod preprocessor(ds)[source]
sample_dim = 'obs'
class ascat.product_info.product_info.SwathProduct[source]

Bases: object

class Swath(filenames)

Bases: Filenames

Class to read and merge swath files given one or more file paths.

static combine_attributes(attrs_list, context)

Decides which attributes to keep when merging swath files.

Parameters:
read(parallel=False, mask_and_scale=True, **kwargs)

Read the file or a subset of it.

Parameters:
  • parallel (bool, optional) – If True, read files in parallel.

  • mask_and_scale (bool, optional) – If True, mask and scale the data.

  • kwargs (dict) – Additional keyword arguments passed to Filenames.read.

Returns:

ds – Dataset.

Return type:

xarray.Dataset

file_class

alias of Swath

ascat.product_info.product_info.get_swath_product_id(filename)[source]

Module contents