pytesmo.io.sat package

Submodules

pytesmo.io.sat.ers module

Module for reading ERS data from TU Wien

class pytesmo.io.sat.ers.ERS_SSM(path, grid_path, grid_filename='TUW_WARP5_grid_info_2_1.nc', static_layer_path=None, **kwargs)[source]

Bases: ascat.read_native.cdr.AscatNc

Class reading ERS data from TU Wien

Parameters
  • path (string) – path to data folder which contains the netCDF files from the FTP server

  • grid_path (string) – path to grid_info folder which contains txt files with information about grid point index,latitude, longitude and cell

  • grid_filename (str) – Grid filename.

  • static_layer_path (str) – Path to static layer files from H-SAF

  • thresholds (dict, optional) – Thresholds for topographic complexity (default 50) and wetland fraction (default 50). {‘topo_complex’: 50, ‘wetland_frac’: 50}

close()

Close file.

flush()

Flush data.

get_spatial_subset(gpis=None, cells=None, ll_bbox=None, grid=None)

Select spatial subset and return data set with new grid.

Parameters
  • gpis (numpy.ndarray) – Grid point indices.

  • cells (numpy.ndarray) – Cell number.

  • ll_bbox (tuple (latmin, latmax, lonmin, lonmax)) – Lat/Lon bounding box

  • grid (pygeogrids.CellGrid) – Grid object.

Returns

dataset – New data set with for spatial subset.

Return type

GriddedBase or child

iter_gp(**kwargs)

Yield all values for all grid points.

Yields
  • data (pandas.DataFrame) – Data set.

  • gp (int) – Grid point.

iter_ts(**kwargs)

Yield time series for all grid points. :Yields: * data (object) – pygeobase.object_base.TS object

  • gp (int) – Grid point.

read(*args, **kwargs)

Takes either 1 or 2 arguments and calls the correct function which is either reading the gpi directly or finding the nearest gpi from given lat,lon coordinates and then reading it

read_ts(*args, **kwargs)

Takes either 1 or 2 arguments and calls the correct function which is either reading the gpi directly or finding the nearest gpi from given lat,lon coordinates and then reading it

write(*args, **kwargs)

Takes either 1 or 2 arguments and calls the correct function which is either writing the gpi directly or finding the nearest gpi from given lat,lon coordinates and then writing it.

write_ts(*args, **kwargs)

Takes either 1, 2 or 3 arguments (the last one always needs to be the data to be written) and calls the correct function which is either writing the gp directly or finding the nearest gp from given lon, lat coordinates and then reading it.

Module contents