ascat.resample package

Submodules

ascat.resample.interface module

ascat.resample.interface.inverse_distance_resampling(filepath, outpath, sampling, suffix, k=6, radius=10000.0, grid_store=None, product_id=None)[source]

Inverse distance resampling of ASCAT swath data.

Parameters:
  • filepath (pathlib.Path) – Path to file or folder.

  • outpath (pathlib.Path) – Path to the output data.

  • sampling (float) – Target grid spacing in degrees.

  • suffix (str) – Filename suffix.

  • k (int, optional) – Number of neighbours to consider for each grid point (default: 6)

  • radius (float, optional) – Cut off distance in meters (default: 10000.)

  • grid_store (pathlib.Path, optional) – Path for storing/loading lookup tables (default: None).

  • product_id (str, optional) – Product identifier (e.g. H129, H125, H121, etc.). If not provided, an attempt is made to determine it from the file name.

ascat.resample.interface.parse_args_swath_resample(args)[source]

Parse command line arguments for resampling an ASCAT swath file to a regular grid.

Parameters:

args (list) – Command line arguments.

Returns:

parser – Argument Parser object.

Return type:

ArgumentParser

ascat.resample.interface.run_swath_resample()[source]

Run command line interface for reample ASCAT swath data.

ascat.resample.interface.swath_resample_main(cli_args)[source]

Read command line arguments and perform an inverse distance resampling procedure on a single ASCAT swath file or directory of swath files.

Parameters:

cli_args (list) – Command line arguments.

Module contents