Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v1.6.0 #133

Merged
merged 34 commits into from
Aug 15, 2024
Merged

Release v1.6.0 #133

merged 34 commits into from
Aug 15, 2024

Conversation

dbrakenhoff
Copy link
Member

@dbrakenhoff dbrakenhoff commented Aug 6, 2024

Add extensions to PastaStore class

Currently only hydropandas extension for quickly downloading/updating data from Dutch online data sources.

import pastastore as pst
from pastastore.extensions import activate_hydropandas_extension


activate_hydropandas_extension()

pstore = pst.PastaStore()
pstore.hpd.download_knmi_precipitation(stn=[260], tmin="2024")  # download precipitation time series for 2024
pstore.hpd.download_bro_gmw(extent=(117850, 118180, 439550, 439900), tmin="2024")  # download groundwater levels

Update methods are available to update time series that are already contained in store. If no tmin is provided, the time series are updated from the last stored measurement until tmax.

pstore.hpd.update_knmi_meteo(tmax="2024-06-30")  # update knmi time series to june 30, 2024
pstore.hpd.update_bro_gmw(tmin="2024-06-30")  # update groundwater levels

Make it even easier to build Pastas models!

As suggested by @FransSchaars.

Build stressmodels from stored stress time series with pstore.get_stressmodels()

sm = pstore.get_stressmodel("well1", rfunc=ps.Hantush, up=False)

Methods support nearest option when x and y-coordinates are stored for all stresses and oseries! Add them directly to pastas models with pstore.add_stressmodel()

ml = ps.Model(oseries)  # or use `pstore.create_model(oseries_name)`
pstore.add_stressmodel(ml, stresses=["nearest prec", "nearest evap"], stressmodel=ps.RechargeModel)

@dbrakenhoff dbrakenhoff self-assigned this Aug 6, 2024
@dbrakenhoff dbrakenhoff requested a review from martinvonk August 6, 2024 15:55
martinvonk
martinvonk previously approved these changes Aug 9, 2024
@martinvonk
Copy link
Contributor

Do we know why the tests are failing? Didn't do a thorough review, but I think it is all good :)

martinvonk
martinvonk previously approved these changes Aug 14, 2024
@dbrakenhoff dbrakenhoff merged commit 20a579d into master Aug 15, 2024
36 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants