pvdeg.geospatial.feature_downselect#
- pvdeg.geospatial.feature_downselect(meta_df, kdtree=None, feature_name=None, resolution='10m', radius=None, bbox_kwarg={}) array[source]#
Downselect function.
- Parameters:
meta_df (pd.DataFrame) – Dataframe of metadata as generated by pvdeg.weather.get for geospatial
kdtree (sklearn.neighbors.KDTree or str) – kdtree containing latitude-longitude pairs for quick lookups Generate using
pvdeg.geospatial.meta_KDTree. Can take a pickled kdtree as a path to the .pkl file.feature_name (str) – cartopy.feature.NaturalEarthFeature feature key. Options:
'lakes','rivers_lake_centerlines','coastline'resolution (str) – cartopy.feature.NaturalEarthFeature resolution. Options:
'10m','50m','110m'radius (float) – Area around feature coordinates to include in the downsampled result. Bigger area means larger radius and more samples included.
Returns
--------
gids (np.ndarray)