pyrad.util#
Description
Utilities (pyrad.util
)#
Functions to read and write data and configuration files.
Radar Utilities#
|
finds the new start and end time of an averaging |
|
finds the solar flux measurement closest to the sun hit |
|
creates a sun hits field from the position and power of the sun hits |
|
creates a sun retrieval field from the retrieval parameters |
|
computes histogram of the data |
|
computes histogram of the data in a particular sweep |
|
computes quantiles |
|
computes quantiles of a particular sweep |
|
computes quantiles from histograms |
|
Compares the resolution of two radars and determines if and which radar has to be averaged and the length of the averaging window |
|
Find the ray index corresponding to a particular elevation and azimuth |
|
Find the range index corresponding to a particular range |
|
Find the radar gate closest to a lat,lon point |
|
Given the theoretical elevation, azimuth and range of the co-located gates of two radars and a given tolerance returns the indices of the gates for the current radars |
|
Given and array of ordered times, find those contiguous according to a maximum time step |
|
computes a 2D histogram of the data |
|
returns statistics of data |
|
computes a 2D histogram and statistics of the data |
|
Computes statistics over a time-averaged series. |
|
joins time_series. |
|
Computes the rainfall accumulation of a time series over a given period |
|
filter out any data outside the region of interest defined by sector |
|
Get the indices of points that belong to roi in a list of points |
|
Projects radar data to a regular vertical grid |
|
Get data at particular (azimuths, elevations) |
|
Get data at particular (ranges, elevations) |
|
Get data at particular (ranges, azimuths) |
|
Creates a 2D-grid with (azi, ele) data at a fixed range |
|
Get the points defining a cercle from the position of its centre and the radius |
|
Get the points defining a rectangle from the position of its centre and the radius |
|
Compute statistics of vertical profile |
|
Computes a profile of horizontal wind by averaging the VAD profiles of multiple radars |
Statistical Utilities#
|
Given a set of values and weights, compute the weighted quantile(s) and average. |
|
Computes a set of samples obtained as sum(nominator)/sum(denominator) where the nominator and the denominator are randomly sampled with replacement. |
Data Retrieval Utilities#
|
Retrieves the preprocessed HZT products from the CSCS repository for a specified time range, unzips them and places them in a specified folder |
|
Retrieves the preprocessed HZT products |
|
Retrieves radar data from the CSCS repository for a specified time range, unzips them and places them in a specified folder |
|
Adapted function from rainforest.common.retrieve_data |
|
Retrieves cross-validation CPC data for a set of stations from the xls files prepared by Yanni |
|
Retrieves cross-validation CPC data for a set of stations from the xls files prepared by Yanni |
Functions
|
Get the indices of points that belong to roi in a list of points |
|
returns statistics of data |
|
computes a 2D histogram of the data |
|
computes a 2D histogram and statistics of the data |
|
Computes a profile of horizontal wind by averaging the VAD profiles of multiple radars |
|
computes histogram of the data |
|
computes histogram of the data in a particular sweep |
|
Compute statistics of vertical profile |
|
computes quantiles |
|
computes quantiles from histograms |
|
computes quantiles of a particular sweep |
|
creates a sun hits field from the position and power of the sun hits |
|
creates a sun retrieval field from the retrieval parameters |
|
Given the theoretical elevation, azimuth and range of the co-located gates of two radars and a given tolerance returns the indices of the gates for the current radars |
|
Given and array of ordered times, find those contiguous according to a maximum time step |
|
Find the radar gate closest to a lat,lon point |
|
Find the ray index corresponding to a particular elevation and azimuth |
|
Find the range index corresponding to a particular range |
|
filter out any data outside the region of interest defined by sector |
|
Get the points defining a rectangle from the position of its centre and the radius |
|
Get the points defining a cercle from the position of its centre and the radius |
|
finds the solar flux measurement closest to the sun hit |
|
Get data at particular (ranges, elevations) |
|
Get data at particular (ranges, azimuths) |
|
Get data at particular (azimuths, elevations) |
|
Creates a 2D-grid with (azi, ele) data at a fixed range |
|
Compares the resolution of two radars and determines if and which radar has to be averaged and the length of the averaging window |
|
joins time_series. |
|
Projects radar data to a regular vertical grid |
|
Given a set of values and weights, compute the weighted quantile(s) and average. |
|
Computes the rainfall accumulation of a time series over a given period |
|
Computes a set of samples obtained as sum(nominator)/sum(denominator) where the nominator and the denominator are randomly sampled with replacement. |
|
Retrieves cross-validation CPC data for a set of stations from the xls files prepared by Yanni |
|
Retrieves cross-validation CPC data for a set of stations from the xls files prepared by Yanni |
|
Retrieves the preprocessed HZT products |
|
Retrieves the preprocessed HZT products from the CSCS repository for a specified time range, unzips them and places them in a specified folder |
|
Retrieves radar data from the CSCS repository for a specified time range, unzips them and places them in a specified folder |
|
Adapted function from rainforest.common.retrieve_data |
|
finds the new start and end time of an averaging |
|
Computes statistics over a time-averaged series. |