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 of near_field_cols × near_field_rows points over site ± near_field_dlon/dlat and a sparse grid of background_cols × background_rows points 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:

ndarray

Parameters: