Recent Releases of HuracanPy
HuracanPy - v1.4.0
Added
huracanpy.info.beaufort_categoryhuracanpy.calc.corral_radius- Load SuperBT from github file
- Load IBTrACS from a netCDF file
- Allow
huracanpy.loadto load non-ragged netCDF files. Essentially just callsxarray.loadwithout modification - Add optional keywords to
huracanpy.saveto allow them to be passed to pandasto_csvor xarrayto_netcdf - Add option to
assess.matchto only match tracks if the number of matching points needed are consecutive assess.matchnow usescalc.distancefor the separation distance, so can use geodesic distance (as well as haversine)info.timestepgives the best guess of timestep given a set of tracks- Centring options for delta-like functions (
delta,rate,azimuth,distance,translation_speed)centering="centre"- Centred difference, NaN at the start and end of trackscentering="adaptive"- Centered difference. Forward difference at the start of tracks. Backward difference at the end of tracks
- Basin definitions from Knutson et al. (2020) (
"Knutson2020") - Add
sphericaloption tocalc.density. Divides by area of gridboxes formethod="histogram"and implements haversine weighting with scikit-learn formethod="kde" - Add
info.landfall_pointswhich returns each point where a track crosses a coastline - New module
convertand functionconvert.to_geodataframeto convert tracks to a geodataframe of points or linestrings (if track_id is given) tc.pressure_wind_relationto get/apply the model for a pressure wind relation without having to usetc.pace. The return model is als wrapped so that the fitting and predicting of the model uses units.plot.pressure_wind_relationtc.saffir_simpson_categoryhas the option to use thresholds for 10-minute or 1-minute sustained winds. Previously it was only 10-minute by default- Optional mean distance (instead of default maximum distance) when matching tracks with
assess.match
Changed
- Speed up
huracanpy.savefor netCDF files - Remove NaN only variables when loading online IBTrACS data.
- Add a cyclic point when using
plot.densityso that the dateline doesn't show up as empty huracanpy.calc.apex_valsalways gives the first point when there a multiple minima/maxima with the same values. Consistent with the behaviour of argmin/argmax
Fixed
- -180 and 180 no longer treated as different longitudes. -180 is always used instead
- When a point is exactly on the boundary of basin, give the first basin in the list rather than no basin
Climate Change - Natural Hazard and Storms
- Python
Published by leosaffin about 1 month ago
HuracanPy - V1.3.0
Added
- Include missing accessor functions
get_beta_driftandadd_beta_driftplot_fancyline
plot.tracksandplot.densitycan be placed on existing axes if they are explicitly passed to the function- Load tracks from the Imperial College Storm Model (IRIS)
huracanpy.infer_track_idto generate a track ID from unique combinations of variables. e.g. "year" and "storm number in year".- Also add as an option to
huracanpy.load
- Also add as an option to
- Can use
huracanpy.loadwith a list of files huracanpy.concat_tracksto concatenate tracks while keeping the track_id as a unique identifier
Changed
- Reduced unnecessary warning messages
- Always use
var_nameas the accessor keyword for choosing a specific variable. Previously some functions usedvarname
Fixed
- Consistent use of track_id in
deltacalculations - Correctly convert units in
categoryfunctions - Always do the
beta_driftcalculation with wind speed in metres per second - Allow requesting other time components than year/month/day/hour from
add_time_components, consistent withinfo.time_components get_azimuthwas calling the wrong function- Correctly use wind in "knots" and pressure in "hPa" when using pre-calculated pressure-wind relations ("holland", "z2021") in
tc.pace - Use a lower precision
datetime64when times are outside the default representable range
Climate Change - Natural Hazard and Storms
- Python
Published by stella-bourdin 12 months ago
HuracanPy - v1.2.0
What's Changed
- V1.2-beta by @stella-bourdin in https://github.com/Huracan-project/huracanpy/pull/95
- sel_id with multiple track_ids by @leosaffin in https://github.com/Huracan-project/huracanpy/pull/96
- TRACK timestep files by @leosaffin in https://github.com/Huracan-project/huracanpy/pull/97
- Update instructions for loading IBTrACS from online by @leosaffin in https://github.com/Huracan-project/huracanpy/pull/98
- Update README.md with snippets from the user guide by @leosaffin in https://github.com/Huracan-project/huracanpy/pull/99
- V1.2 by @leosaffin in https://github.com/Huracan-project/huracanpy/pull/100
- Update version number by @leosaffin in https://github.com/Huracan-project/huracanpy/pull/101
Full Changelog: https://github.com/Huracan-project/huracanpy/compare/v1.2.0-beta1...v1.2.0
Climate Change - Natural Hazard and Storms
- Python
Published by leosaffin about 1 year ago
HuracanPy - v1.2.0-beta1
What's Changed
Manage TRACK files with timesteps instead of dates by @stella-bourdin in https://github.com/Huracan-project/huracanpy/pull/88
Add "Old HURAT"/ECMWF track data reader by @stella-bourdin in https://github.com/Huracan-project/huracanpy/pull/89
Update doc with old HURDAT/ECMWF by @stella-bourdin in https://github.com/Huracan-project/huracanpy/pull/90
Add function to compute azimuth by @stella-bourdin in https://github.com/Huracan-project/huracanpy/pull/91
Testing for v1.2 by @leosaffin in https://github.com/Huracan-project/huracanpy/pull/93
Update python version by @leosaffin in https://github.com/Huracan-project/huracanpy/pull/94
Full Changelog: https://github.com/Huracan-project/huracanpy/compare/v1.2.0-beta...v1.2.0-beta1
Climate Change - Natural Hazard and Storms
- Python
Published by stella-bourdin over 1 year ago
HuracanPy - v1.2.0-beta
What's Changed
- Manage TRACK files with timesteps instead of dates by @stella-bourdin in https://github.com/Huracan-project/huracanpy/pull/88
- Add "Old HURAT"/ECMWF track data reader by @stella-bourdin in https://github.com/Huracan-project/huracanpy/pull/89
- Update doc with old HURDAT/ECMWF by @stella-bourdin in https://github.com/Huracan-project/huracanpy/pull/90
- Add function to compute azimuth by @stella-bourdin in https://github.com/Huracan-project/huracanpy/pull/91
- Testing for v1.2 by @leosaffin in https://github.com/Huracan-project/huracanpy/pull/93
- Update python version by @leosaffin in https://github.com/Huracan-project/huracanpy/pull/94
Full Changelog: https://github.com/Huracan-project/huracanpy/compare/v1.1.0...v1.2.0-beta
Climate Change - Natural Hazard and Storms
- Python
Published by stella-bourdin over 1 year ago
HuracanPy - v1.1.0
Added
Support for WiTRACK text files in huracanpy.load
Beta-drift computation (along with RMW support within distance function)
Full documentation incuding new examples
kde option for densities
Reference track set option for matching
Basin definitions from E. Sainsbury's papers
Fixes
Accessor was not behaving in the right way when the object was modified after the accessor's first call;
Allow for ISO time to be called "isotime" in csv/parquet
Climate Change - Natural Hazard and Storms
- Python
Published by stella-bourdin over 1 year ago
HuracanPy - Version 1.0.0
Added
- xarray Dataset accessor (
hrcn) - Extra keyword arguments to
huracanpy.loadrenameunitsbaselon
sel_idfunction to select a single track by track_id from aDatasetbut faster than usinggroupby
Changed
- Simplified module namespaces
utils.{module}.{function}->info.{function}diags.{module}.{function}->calc.{function}ortc.{function}subset.trackswhere->trackswhere
- Simplified function naming
plot_prefix removed functions inplotmodule
- Modified arguments to
load- keyword
trackerrenamedsourceto reflect not all tracks are from trackers, e.g. IBTrACS or statistical-dynamical downscaling models - Use
ibtracs_subsetto determine whether the subset is online or not, removingibtracs_onlinekeyword - When
filenameis specified for an online IBTrACS dataset, save the downloaded data to that file, rather than usingibtracs_clean=Falseand a default filename
- keyword
- Use a single matching function
assess.matchfor 2 or more datasets instead ofassess.match_pairandassess.match_multiple - Remove
get_from functions ininfo. Instead this syntax is used to differentiateget_andadd_functions in thehrcnaccessor - Split
info.get_land_or_oceanintois_landandis_ocean - Renamed
tc.sshs_cattotc.saffir_simpson_categoryandtc.pres_cattotc.pressure_category - Improved support for calculations with units (using metpy style functions)
- Updated IBTrACS data
Removed
add_infoargument fromhuracanpy.loadadd_all_infofunction. Instead useadd_functions onhrcnaccessorget_time. Functionality already covered bypandas.to_datetime
Fixed
huracanpy.info.seasonnow works withcftime.datetime
Climate Change - Natural Hazard and Storms
- Python
Published by leosaffin over 1 year ago
HuracanPy - Improvements
- New loaders: CHAZ, MIT, parquet
- Climatological functions: frequency, TC days, ACE
- Rate computation
- Donut plots
- Bug fixes, new minor features, acceleration, documentation
Climate Change - Natural Hazard and Storms
- Python
Published by stella-bourdin over 1 year ago
HuracanPy - First beta with a few bug fixes
Add utils wrapper
Fix few bugs
Increase documentation
Climate Change - Natural Hazard and Storms
- Python
Published by stella-bourdin almost 2 years ago
HuracanPy - First beta release
This version of HuracanPy is meant for beta-testing of the very first version of the package. It has all the basic features, but has not been tested outside the development team.
Climate Change - Natural Hazard and Storms
- Python
Published by stella-bourdin almost 2 years ago