warsa.precipitation.satellite.chirps package

Submodules

warsa.precipitation.satellite.chirps.download module

class Chirps20GlobalDaily05TifFTP(local_dir)

Bases: warsa.precipitation.satellite.download.SatelliteBasedPrecipitationDownloadFTP

Download data from:
ftp://ftp.chg.ucsb.edu/pub/org/chg/products/CHIRPS-2.0/global_daily/tifs/p05/1981/
File format:
chirps-v2.0.1981.01.01.tif.gz
static get_datetime_from_file_name(filename)
class Chirps20GlobalDaily25TifFTP(local_dir)

Bases: warsa.precipitation.satellite.download.SatelliteBasedPrecipitationDownloadFTP

Download data from:
ftp://ftp.chg.ucsb.edu/pub/org/chg/products/CHIRPS-2.0/global_daily/tifs/p25
File format:
chirps-v2.0.1981.01.01.tif.gz
static get_datetime_from_file_name(filename)
class Chirps20GlobalMonthly05TifFTP(local_dir)

Bases: warsa.precipitation.satellite.download.SatelliteBasedPrecipitationDownloadFTP

Download data from:
ftp://ftp.chg.ucsb.edu/pub/org/chg/products/CHIRPS-2.0/global_daily/tifs/p05/1981/
File format:
chirps-v2.0.1981.01.tif.gz
static get_datetime_from_file_name(filename)

warsa.precipitation.satellite.chirps.rasterize module

class Chirps20GlobalDaily05TifRasterize(product_dir, output_raster_dir, **kwargs)

Bases: warsa.precipitation.satellite.rasterize.Rasterizer

get_rasters(product_filename)

A product file contains one or more rasters. For instance, a 30-minute product delivered once per hour contains two half-hour rasters per file

This is the default method, which should be overloaded if the product_filename is not a tif file. It creates just a dataset copy of the product_filename.

Parameters:product_filename – full path name of th product file
Returns:list tuples [output_filename, RasterRead] objects output_filename is obtained from the product_filename by substituting product_dir by output_raster_dir output_dataset in in the memory (driver=’MEM’)
class Chirps20GlobalDaily25TifRasterize(product_dir, output_raster_dir, **kwargs)

Bases: warsa.precipitation.satellite.rasterize.Rasterizer

get_rasters(product_filename)

A product file contains one or more rasters. For instance, a 30-minute product delivered once per hour contains two half-hour rasters per file

This is the default method, which should be overloaded if the product_filename is not a tif file. It creates just a dataset copy of the product_filename.

Parameters:product_filename – full path name of th product file
Returns:list tuples [output_filename, RasterRead] objects output_filename is obtained from the product_filename by substituting product_dir by output_raster_dir output_dataset in in the memory (driver=’MEM’)
class Chirps20GlobalMonthly05TifRasterize(product_dir, output_raster_dir, **kwargs)

Bases: warsa.precipitation.satellite.rasterize.Rasterizer

get_rasters(product_filename)

A product file contains one or more rasters. For instance, a 30-minute product delivered once per hour contains two half-hour rasters per file

This is the default method, which should be overloaded if the product_filename is not a tif file. It creates just a dataset copy of the product_filename.

Parameters:product_filename – full path name of th product file
Returns:list tuples [output_filename, RasterRead] objects output_filename is obtained from the product_filename by substituting product_dir by output_raster_dir output_dataset in in the memory (driver=’MEM’)

Module contents