pvdeg.geospatial#

Collection of classes and functions for geospatial analysis.

Function Overview#

pvdeg.geospatial.analysis

Applies a function to each gid of a weather dataset.

pvdeg.geospatial.apply_bounding_box

Apply latitude-longitude rectangular bounding box to geospatial metadata.

pvdeg.geospatial.auto_template

Automatically create a template for a target function: func.

pvdeg.geospatial.calc_block

Calculate a block of gids for a given function.

pvdeg.geospatial.calc_gid

Calculate a single grid for a given function.

pvdeg.geospatial.can_auto_template

Check if we can use `geospatial.auto_template on a given function.

pvdeg.geospatial.elevation_stochastic_downselect

Downsample function.

pvdeg.geospatial.feature_downselect

Downselect function.

pvdeg.geospatial.identify_mountains_radii

Find mountains from elevation metadata using sklearn kdtree for fast lookup.

pvdeg.geospatial.identify_mountains_weights

Find mountains using weights calculated via changes in nearest neighbors.

pvdeg.geospatial.interpolate_analysis

Interpolate sparse spatial result data against DataArray coordinates.

pvdeg.geospatial.meta_KDtree

Create an sklearn.neighbors.KDTree for fast geospatial lookup operations.

pvdeg.geospatial.output_template

Generate xarray template for output data.

pvdeg.geospatial.plot_Europe

pvdeg.geospatial.plot_USA

pvdeg.geospatial.plot_sparse_analysis

pvdeg.geospatial.start_dask

Start a dask cluster for parallel processing.

pvdeg.geospatial.zero_template

Create zero-filled xarray.Dataset based on provided grids and shapes.