radtraq.proc.extract_profile_at_lat_lon
- radtraq.proc.extract_profile_at_lat_lon(obj, desired_lat, desired_lon, append_obj=None, azimuth_name='azimuth', range_name='range', elevation_name='elevation', azimuth_range=None, ground_dist_range=200, variables=None, lat_name_in_obj='lat', lon_name_in_obj='lon')[source]
Function for extracting vertical profile over a location defined by latitude and longitude from a PPI scan
- Parameters:
obj (Xarray.Dataset) – Xarray object with all the data
desired_lat (float) – Latitude of desired profile in same units as latitued in obj
desired_lon (float) – Longitude of desired profile in same units as longitude in obj
append_obj (Xarray.Dataset) – Xarray Dataset to return with new profile appened.
azimuth_name (str) – Name of azimuth variable in obj
range_name (str) – Name of range variable in obj
elevation_name (str) – Name of elevation variable in obj
azimuth_range (float or None) – Range to use for tollerance in selecting azimuth to extract profile. If set to None will use the mode of azimuth differences. Assumed to be in degrees.
ground_dist_range (float) – Distance range window size allowed to extract profile. If the profile location is off from lat/lon location by more than this distance, will not extract a profile and will return None.
variables (str, list, None) – List of variables to extract profile
lat_name_in_obj (str) – Name of latitude varible in object
lon_name_in_obj (str) – Name of longitude varible in object
- Returns:
obj – Xarray Dataset with profile extracted at desired latitued and longitude location, and new coordinate variable height added.
- Return type:
Xarray.Dataset