stilt.observations.select_observations_spatial#
- stilt.observations.select_observations_spatial(longitudes, latitudes, *, site_longitude, site_latitude, near_field_dlon, near_field_dlat, near_field_cols, near_field_rows, background_cols, background_rows, domain_lon_range, domain_lat_range)[source]#
Select soundings on a near-field plus background grid.
Ports X-STILT’s
sel.obs4recpv2: lay a dense grid ofnear_field_cols × near_field_rowspoints oversite ± near_field_dlon/dlatand a sparse grid ofbackground_cols × background_rowspoints over the full domain, and keep the sounding nearest (great-circle) to each grid point. Dense coverage near the site is where the footprints matter most; the background soundings support a concentration-difference analysis.Returns the positional indices of the selected soundings, each once, in ascending latitude. Use them as
df.iloc[selected].- Return type:
- Parameters:
longitudes (_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes])
latitudes (_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes])
site_longitude (float)
site_latitude (float)
near_field_dlon (float)
near_field_dlat (float)
near_field_cols (int)
near_field_rows (int)
background_cols (int)
background_rows (int)