Gridwxcomp

Latest version: v0.2.1

Safety actively analyzes 707009 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.2.1

=============

Improve speed of download of gridded data by using the GEE high volume API.

Add (re-add) precipitation as a optional variable to evaluate and include it in all major functionalities as well as example data.

0.2.0

=============

Added new functionality to download gridded datasets from the Google Earth Engine (GEE) platform, use of configuration files (.INI) for setting GEE collection paths, specifying units and names of station and gridded data, and the ability to conduct spatial interpolation in a specified resolution and coordinate reference systems using EPSG or ERSI codes.

The command line interface was removed, it may be returned in future updates. Also, functionality to downloading gridMET data from the OpenDAP server was removed and replaced with GEE data downloads. The functionality of snapping interpolation of bias results to the gridded data resolution and transform has also been removed. The snapping of interpolated rasters to gridded data's native geotransform was removed because Google Earth Engine data assets and image collections do not provide a reliable method for accessing the necessary information. Now a user can specify the bounding coordinates and resolution to conduct spatial interpolation, and achieve the same results in that manner. Also removed were options for spatial interpolation methods provided by the `SciPy radial basis functions <https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.Rbf.html>`_.

Examples were added for new gridded data such as CONUS404, and documentation and tests were added to reflect these major changes.

0.1.4

=============

Add 10 meter wind direction as an optional gridMET variable to download, from command line as the ``'--optional-vars'`` argument or the ``optional_vars`` keyword argument to the ``download_gridmet_opendap`` function. Additional optional variables can now be easily added in the future. If downloaded, this variable will be written to the gridMET time series files with the header name 'wdir_deg'. This change is incorporated in version 0.1.4.post3.

Change calculation for maximum and minimum air temperature from station/gridMET ratios to station - gridMET (difference). The procedure for time aggregation has not changed.

Improve monthly comparison plots by pairing up data at daily frequency, dropping months where less than the newly added ``day_limit`` parameter (default 10) paired days per month exist for each variable, and show gaps in line plots.

Change default interpolation parameters (power and smooth) for inverse distance weighting algorithms to the default used by GDAL_GRID, i.e. power=2, smoothing=0.

Set default scale factor for interpolation of bias ratios to 1 which results in 4 km (snapped to gridMET) resolution GeoTIFFs as opposed to previous 400 m resolution.

0.1.3

=============

The "Filename" column in the station metadata file that is the first input to :func:`gridwxcomp.prep_input` now requires the exact full name (with or without file extension) of climate time series files to be provided. This prevents loose matching overwriting site file paths based on matching the beginning of file names only.

Add the ``method`` option/argument to the :func:`gridwxcomp.calc_bias_ratios` function and CLI script which now has two options 'long_term_mean' (new default) or 'mean_of_annual'. The 'long_term_mean' method calculates bias ratios between station and grid variables in the following manner: long-term mean of station to long-term mean of grid for each month and other time interval. For example, for June ratios this method would take all paired data (spanning the full time period) that lie in June, then take the means of both station and grid data and then take their ratio. The other option 'mean_of_annual' (previous versions' behavior) does the following: group the station and grid data first by year and then by month and longer time intervals (growing season, summer) and calculate the ratioas station sum to grid sum for each year, finally take the mean across the years to get the final ratio. The number of days of paired data in each temporal interval that ratios are calculated for are also recorded as well as the standard deviation and coefficient of variation across years (if multiple exist in the paired input). If for any month the number of paired days is below ``day_limit`` that month is excluded for both ratio calculation methods. Also the latter method will still be used to calculate the statistics count, standard deviation and coefficient of variation if ``method='long_term_mean'``, the only thing that will be altered is the calculation of the mean ratios, e.g. "Jan_mean" or generally all the columns that end with "_mean" in the resulting output files from :func:`gridwxcomp.calc_bias_ratios`.

Bug fixes related to deprecated functionality of various :mod:`pandas` tools in newer Pandas version 1+.

Add more Travis CI test coverage for spatial grid creation, point vector file creation, spatial interpolation, zonal stats, interpolation residual calculations, etc.

Add error handling and checks for cases where input data is missing all data causing unhandled crashes later in the workflow.

0.1.2

=============

Added the ``gridwxcomp.plot.daily_comparison`` and ``gridwxcomp.plot.monthly_comparsion`` functions back into the package namespace, fixed bugs with file i/o for plotting and remove gaps in per-month daily time series comparison plots.

0.1.1

=============

Added automatic testing with travix.ci, other bug fixes.

Page 1 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.