Recent Releases of hydromt_wflow

hydromt_wflow - v1.0.0rc1

This is a pre-release version to start testing support for Wflow.jl version 1.0.0. The main changes are linked to the TOML file options. We have dropped support for Wflow.jl < 1.0.0, but we allow users to upgrade their models to the new version using the upgrade_to_v1_wflow function. If you do not want to upgrade your model, you can use an older release of hydromt_wflow.

In addition, we have updated the default grid names (staticmaps.nc) and states names to be more consistent and closer to the Wflow.jl names. We also added the possibility to choose the names of the variables in staticmaps.nc files in each of the setup methods. This allows users to have several versions of the same variable in the staticmaps.nc file using different options (eg. landusecorine, landusevito, etc.).

Finally, some of the staticgeoms names have changed, in particular gauges is now outlets and has been replaced in the input section of the TOML as well in order to save outputs for these locations.

Added

  • upgradetov1_wflow: convert models for Wflow.jl version < 1.0.0 to Wflow.jl version 1. PR #364
  • Allow users to choose the names of each variables in staticmaps.nc files or the same of some of the staticgeoms (eg lakes, reservoirs). PR #364
  • setup_areamap: if the map is linked to a Wflow variable, the TOML file can now be updated to link the new created map to the right Wflow.jl variable. PR #364

Changed

  • Support for Wflow.jl >= 1.0.0 kernel. The main implication is for the generation of the TOML file. Consequently support for Wflow.jl < 1.0.0 has been dropped (see below). PR #364
  • All default names in staticmpas.nc and states have been redefined and harmonized. PR #422
  • Some of the geoms names have changed: gauges to outlets and subcatch to subcatchment. PR #422
  • setupconstantpars: add the constant value to the TOML rather than creating an extra map in staticmaps.nc. The values should then be linked to the Wflow.jl variable name. PR #364
  • setup_lulcmaps and equivalents: parameters to prepare from the mapping table are now linked to Wflow.jl variable names (dictionary and not list) to allow for renaming. PR #364
  • setupoutputconfig_timeseries, setup_outlets, setup_gauges: the option to save parameters to netcdf scalar file as been renamed from netcdf to netcdf_scalar to better match the TOML file structure. PR #364
  • Changed name of g_tt parameter to g_ttm, to align with the changes in https://github.com/Deltares/Wflow.jl/pull/512
  • setup_soilmaps [sediment]: add small and large aggregates to soil composition (additional to clay/silt/sand). Composition is now in fraction and not percentage. {R #331
  • setup_soilmaps [sediment]: additional parameters are prepared by the method (e.g. soil mean diameter, Govers transport capacity parameters). PR #331
  • setupconstantpars [sediment]: added additional default values for sediment density and particle diameters. PR #331
  • setup_riverbedsed [sediment]: added option to derive Kodatie transport capacity parameters based on streamorder mapping. PR #331
  • setup_rivers, setup_lakes, setup_reservoirs [sediment]: only create wflow sediment variables and not a mix of sbm and sediment ones. PR #364
  • Grid data is masked to subcatchment on set_grid now instead of on write_grid (#349)
  • Signature of the standalone set_config and get_config functions, config is now first argument
  • TOML file options are added on the fly by each setup method rather than starting from a complete template.

Fixed

  • Updated installation guide (#376)

Deprecated

  • Support for building/updating models for Wflow.jl version < 1.0.0. We encourage you to upgrade your model to the new version using upgrade_to_v1_wflow or use an older release of hydromt_wflow if you do not want to upgrade your model. PR #364
  • setup_soilmaps: drop possibility to derive parameters based on soil texture as InfiltCapSoil parameter is no longer supported in Wflow.jl 1.0.0 (duplicate of ksat_vertical). PR #334

Removed

  • Dropped support for pcraster and removed deprecated pcrm module. PR #408

Full Changelog: https://github.com/Deltares/hydromt_wflow/compare/v0.8.0...v1.0.0rc1

- Python
Published by Tjalling-dejong about 1 year ago

hydromt_wflow - v0.8.0

Precipitation from point data and other new features.

Added

  • setupprecipfrompointtimeseries: method to interpolate rainfall station data as model forcing. PR #315
  • Added support for inverse clipping by using the inverse_clip=True flag in the clip_grid method. PR #336
  • setupdomesticdemandfrompopulation: method to compute domestic demand from population and water use per capita. PR #334
  • setupirrigationfrom_vector: method to add irrigation areas from a vector file. PR #334
  • setup_soilmaps: possibility to derive parameters based on soil texture. Added defaults for InfiltCapSoil. PR #334

Changed

  • setupallocationareas: added a minimum area threshold (50 km2) to filter too small allocation areas. PR #334

Fixed

  • setup_rivers: fixed bug if manning or gvf methods are used to compute river depth. PR #334
  • setuplulcmapswith_paddy: input.vertical.kvfrac is set to kvfrac in config. PR #362
  • createlulclaimappingtable: hardcoded x and y dim names are now set to raster.ydim and raster.xdim. PR #362

Full Changelog: https://github.com/Deltares/hydromt_wflow/compare/v0.7.1...v0.8.0

- Python
Published by dalmijn over 1 year ago

hydromt_wflow - v0.7.1

Officially drop support for python 3.9.

Added

  • setupksatvervegetation: method to calculate KsatVer_vegetation to account for biologically-enhanced soil structure in KsatVer. PR #313
  • setuplulcmapsfrom_vector: method to prepare LULC map and params from a vector input rather than raster. PR #320

Deprecated

  • Support for python 3.9 (already not supported in previous releases).

- Python
Published by hboisgon over 1 year ago

hydromt_wflow - v0.7.0

This release adds support to create water demand and allocation related data (available since Wflow.jl version 0.8.0). For now, the new methods for demands support is limited to already gridded input datasets. The release also includes support for the paddy land use type and additional landuse parameters (crop coefficient and root uptake).

Added

  • setuplulcmapswith_paddy: method to add paddy to the model. Adding paddies leads to changes in landuse and soil parameters. PR #226
  • setupdomesticdemand and setupotherdemand: methods to prepare water demands for different sectors using gridded datasets. PR #226
  • setup_irrigation: method to prepare irrigation areas and parameters. PR #226
  • setupallocationareas: method to prepare allocation areas for water allocation. PR #226
  • setupallocationsurfacewaterfrac: method to prepare surface water fraction for water allocation. PR #226

Changed

  • setup_lulcmaps prepares new vegetation parameters (crop coefficient kc and h values). PR #226
  • set_grid supports several cyclic time dimensions. PR #226

Fixed

  • Error in computation of LAI values from mapping to landuse in setup_laimaps. PR #297
  • IO error for write_states in write. PR #297
  • Creating the staticgeoms folder if it does not already exist (eg when dir_input is provided). PR #297
  • Pedo-transfer function for estimation of residual water content. PR #300

- Python
Published by JoostBuitink over 1 year ago

hydromt_wflow - v0.6.1

This release mainly contains small bugfixes and limits xarray version to 2024.03.0

Added

  • Added "fillnamethod" option for **setuptemppetforcing** by @tnlim
  • Output filenames can now be specified in the model.write function. More detailed arguments should still be specified in each individual write* methods. PR #286

Changed

  • Individual methods like writeforcing will not longer write the config file if config settings get updated. Always call writeconfig as the last write method. PR #286
  • More uniform handling of the date typing when reading/writing dates from the wflow toml files. PR #286

Fixed

  • Wrong dtype for columns when reading a mapping table in setuplaimapsfromlulcmapping . PR #290
  • Read/write staticgeoms if dir_input folder is present in the wflow toml file. PR #286
  • Creating subfolders for the config file of wflow in write_config. PR #286
  • Fixed access to functions in the pcrm module (readstaticmapspcr, writestaticmapspcr). PR #293
  • Bug in setuppetforcing when doing time resampling. PR #294

- Python
Published by hboisgon almost 2 years ago

hydromt_wflow - v0.6.0

Added

  • If applicable, basins geometry based on the higher resolution DEM is stored seperately under basins_highres PR #266
  • New function setup1dmodelconnection to connect wflow to 1D river model (eg Delft3D FM 1D, HEC-RAS, etc.) PR #210
  • New setup method for the KsatHorFrac parameter setup_ksathorfarc to up-downscale existing ksathorfrac maps. PR #255
  • new function setuppetforcing to reproject existing pet data rather than computing from other meteo data. PR #257
  • Workflow to compute brooks corey c for the wflow layers based on soilgrids data, soilgridsbrookscorey. PR #242
  • setup_lulcmaps for wflow_sediment: if planted forest data is available, it can be used to update the values of the USLE C parameter. PR #234
  • better support for WflowModel states with new methods: read_states, write_states and clip_states. PR #252
  • new function setupcoldstates to prepare cold states for WflowModel. PR #252
  • new utils method getgridfrom_config to get the right wflow staticmaps variable based on the TOML configuration (e.g. detects name in netcdf, value, scale and offset). Only applied now to prepare cold states (e.g. not yet in read_grid). PR #252
  • Added support for the "GLCNMO" land-use dataset, with a default parameter mapping table (similar to the existing tables). PR #272
  • Added the alpha_h1 parameter (based on land use maps). This parameter represents whether root water uptake reduction at soil water pressure head h1 occurs or not. By default, it is set to 0.0 for all "non-natural" vegetation (crops) and to 1.0 for all "natural vegetation" PR #272
  • Parameter for output filename in write_grid (fn_out). PR #278
  • New function setuplaimapsfromlulcmapping to set leaf area index (LAI) climatology maps per month based on landuse mapping. PR #273

Changed

  • Basins geometry (basins) is now based on the actual wflow model resolution basins, instead of based on the supplied DEM PR #266
  • setup_soilmaps: the user can now supply variable sbm soil layer thicknesses. The Brooks Corey coefficient is then computed as weighted average over the sbm layers. PR #242
  • setup_outlets: the IDs of wflow_subcatch are used to define the outlets IDs rather than [1:n]. PR #247
  • wflow forcing data type should always be float32. PR #268
  • setup_laimaps: if a landuse map if provided, setup_laimaps can also prepare landuse mapping tables for LAI. PR #273

Fixed

  • Wrong dtype for wflow_subcatch map. PR #247
  • setup_gauges: Allow snapping to river/mask for snap_uparea method. PR #248
  • Removed building a wflow model without a config file in the build notebook.
  • Deprecated np.bool and earlier error message for subbasin delination. PR #263

Deprecated

  • clip_staticmaps in favour of clip_grid
  • read_staticmaps and write_staticmaps, superseded by read_grid and write_grid
  • read_staticgeoms and write_staticgeoms, superseded by read_geoms and write_geoms

PR's

  • Release v0.5.0 by @dalmijn in https://github.com/Deltares/hydromt_wflow/pull/240
  • post release commit by @hboisgon in https://github.com/Deltares/hydromt_wflow/pull/241
  • Several basin related fixes by @hboisgon in https://github.com/Deltares/hydromt_wflow/pull/247
  • Connect wflow to 1D model by @hboisgon in https://github.com/Deltares/hydromt_wflow/pull/210
  • Soilgrids c by @hboisgon in https://github.com/Deltares/hydromt_wflow/pull/242
  • Setup KsatHorFrac by @dalmijn in https://github.com/Deltares/hydromt_wflow/pull/255
  • update wflow build notebook by @hboisgon in https://github.com/Deltares/hydromt_wflow/pull/258
  • add setuppetforcing method by @hboisgon in https://github.com/Deltares/hydromt_wflow/pull/257
  • States by @hboisgon in https://github.com/Deltares/hydromt_wflow/pull/252
  • Snapping to river with uparea method by @hboisgon in https://github.com/Deltares/hydromt_wflow/pull/248
  • update ldd example with updates in core by @DirkEilander in https://github.com/Deltares/hydromt_wflow/pull/265
  • Update order in installation guide by @hboisgon in https://github.com/Deltares/hydromt_wflow/pull/264
  • enforce float32 type for forcing by @hboisgon in https://github.com/Deltares/hydromt_wflow/pull/268
  • Bugfix subbasin by @hboisgon in https://github.com/Deltares/hydromt_wflow/pull/263
  • Update USLE C parameter with planted forest and orchard values by @hboisgon in https://github.com/Deltares/hydromt_wflow/pull/234
  • Real wflow basins by @dalmijn in https://github.com/Deltares/hydromt_wflow/pull/266
  • Add support for alpha_h1 parameter and the GLCNMO dataset by @JoostBuitink in https://github.com/Deltares/hydromt_wflow/pull/272
  • Bugfix 1dconnect by @hboisgon in https://github.com/Deltares/hydromt_wflow/pull/269
  • Link LAI and landuse classes by @hboisgon in https://github.com/Deltares/hydromt_wflow/pull/273
  • Able to set outgoing grid name by @dalmijn in https://github.com/Deltares/hydromt_wflow/pull/278
  • Release/v0.6.0 by @dalmijn in https://github.com/Deltares/hydromt_wflow/pull/279

Full Changelog: https://github.com/Deltares/hydromt_wflow/compare/v0.5.0...v0.6.0

- Python
Published by dalmijn about 2 years ago

hydromt_wflow - v0.5.0

Added

  • setup_rivers: Add river depth based on rivdph columns in rivergeomfn rather than only computed from qbankfull column.

Changed

  • Remove default values for data sources in the different setup methods. (PR #227)

Fixed

  • setup_reservoirs: Fix error if optional columns 'Capacitynorm', 'Capacitymin', 'xout', 'yout' are not in reservoirfn. Allow to pass kwargs to the getdata method.
  • setup_lulcmaps: Fix error when looking for mappingfn in self.datacatalog
  • setupconfigoutput_timeseries: bugfix for reducer.
  • update hydromt configuration files from ini to yml format. PR #230
  • remove or update calls to check if source in self.datacatalog Issue #501 <https://github.com/Deltares/hydromt/issues/501>
  • Included NoDataStrategy from hydromt-core: setup functions for lakes, reservoirs, glaciers, and gauges are skipped when no data is found withing the model region (same behavior as before) PR #229

Deprecated

  • readstaticmapspcr in favour of same method in pcrm submodule
  • writestaticmapspcr in favour of same method in pcrm submodule

Documentation

  • Extra information for most of the setup methods of WflowModel and WWflowSedimentModel

PR's

  • Release/v0.4.1 by @dalmijn in https://github.com/Deltares/hydromt_wflow/pull/221
  • bump versions; prep changelog by @JoostBuitink in https://github.com/Deltares/hydromt_wflow/pull/222
  • Marina pilot by @hboisgon in https://github.com/Deltares/hydromt_wflow/pull/209
  • Update examples installation by @hboisgon in https://github.com/Deltares/hydromt_wflow/pull/223
  • update config from ini to yml by @hboisgon in https://github.com/Deltares/hydromt_wflow/pull/230
  • small doc update by @hboisgon in https://github.com/Deltares/hydromt_wflow/pull/238
  • Implement NoDataStrategy to deal with optional setupfunctions by @JoostBuitink in https://github.com/Deltares/hydromtwflow/pull/229
  • Update setup docstings by @hboisgon in https://github.com/Deltares/hydromt_wflow/pull/227
  • Notebook progressbar fix by @dalmijn in https://github.com/Deltares/hydromt_wflow/pull/239

Full Changelog: https://github.com/Deltares/hydromt_wflow/compare/v0.4.1...v0.5.0

- Python
Published by dalmijn over 2 years ago

hydromt_wflow - v0.4.1

Small update

Fixed

  • Make HydroMT-Wflow v0.4.0 conda installable

- Python
Published by dalmijn over 2 years ago

hydromt_wflow - v0.4.0

Small overhaul of internal methods and stability fixes. This version works with HydroMT v0.9.1 onwards.

Changed

  • WflowModel and WflowSedimentModel now rely on GridModel from HydroMT
  • PCRaster methods are moved to pcrm submodule and are deprecated as methods for the WflowModel class
  • read_staticgeoms, write_staticgeoms and staticgeoms are now deprecated
  • Staticgeoms methods are superseded by read_geoms, write_geoms and geoms
  • read_staticmaps, write_staticmaps and staticmaps are now deprecated
  • Staticmaps methods are superseded by read_grid, write_grid and grid

Fixed

  • Mainly stability fixes

PR's

  • Release/v0.3.0 by @JoostBuitink in https://github.com/Deltares/hydromt_wflow/pull/192
  • bump version post release v0.3.0 by @JoostBuitink in https://github.com/Deltares/hydromt_wflow/pull/193
  • Fix links to new prepareldd notebook by @JoostBuitink in https://github.com/Deltares/hydromtwflow/pull/194
  • Workflows by @dalmijn in https://github.com/Deltares/hydromt_wflow/pull/197
  • Lower case for labels in issue templates by @dalmijn in https://github.com/Deltares/hydromt_wflow/pull/204
  • GridModel; HydroMT 0.9 compliant; Deprecated PCR; Ubuntu testing by @dalmijn in https://github.com/Deltares/hydromt_wflow/pull/211
  • Bump version; floodplain data update; pin core 'v0.9.1' by @dalmijn in https://github.com/Deltares/hydromt_wflow/pull/217
  • Better publishing by @dalmijn in https://github.com/Deltares/hydromt_wflow/pull/218

New Contributors

  • @dalmijn made their first contribution in https://github.com/Deltares/hydromt_wflow/pull/197

Full Changelog: https://github.com/Deltares/hydromt_wflow/compare/v0.3.0...v0.4.0

- Python
Published by dalmijn over 2 years ago

hydromt_wflow - v0.3.0

Various new features and bugfixes in support of Wflow.jl v0.7.1. This version works with HydroMT v0.8.0.

Added

  • Support for models in CRS other than 4326. PR #161 <https://github.com/Deltares/hydromt_wflow/pull/161>_
  • Support for elevation data other than MERIT Hydro in setup_basemaps.
  • Add options to calculate daily Penman-Monteith potential evaporation using the pyet package. Depending on the available variables, two options are defined penman-monteith_tdew (inputs: ['temp', 'tempmin', 'tempmax', 'windu', 'windv', 'tempdew', 'kin', 'pressmsl']) and penman-monteith_rh_simple (inputs: ['temp', 'tempmin', 'tempmax', 'wind', 'rh', 'kin']).
  • Support in toml for dirinput and diroutput options. PR #140 <https://github.com/Deltares/hydromt_wflow/pull/140>_
  • Add options to calculate daily Penman-Monteith potential evaporation using the pyet package. Depending on the available variables, two options are defined penman-monteith_tdew (inputs: ['temp', 'tempmin', 'tempmax', 'windu', 'windv', 'tempdew', 'kin', 'pressmsl']) and penman-monteith_rh_simple (inputs: ['temp', 'tempmin', 'tempmax', 'wind', 'rh', 'kin']).
  • In setup_reservoirs: Global Water Watch compatibility for determining reservoir parameters.
  • In setup_reservoirs: All downloaded reservoir timeseries are saved to root in 1 csv file. Column headers indicate reservoir id.
  • setup_oulets: Add map/geom of basin outlets (on river or all) and optionally updates outputs in toml file.
  • setupconfigoutput_timeseries: add new variable/column to the netcf/csv output section of the toml based on a selected gauge/area map.
  • setup_gauges: support for snapping based on a user defined max distance and snapping based on upstream area attribute.
  • setup_gauges: gaugesfn can be both GeoDataFrame or GeoDataset (new) datatype.
  • New setup_floodplains method, that allows the user the choose either 1D or 2D floodplains. Note: requires pyflwdir v0.5.7. PR #123 <https://github.com/Deltares/hydromt_wflow/pull/123>_
  • In setup_lakes: Add option to prepare rating curve tables for lake Q-V and Q-H curves. Also updated LakeOutFlowFunc and LakeStorFunc accordingly. PR #158 <https://github.com/Deltares/hydromt_wflow/pull/158>_
  • In setup_lakes: Support setting lake parameters from direct value in the lakefn columns. `PR #158 <https://github.com/Deltares/hydromtwflow/pull/158>`_
  • In setup_lakes: Option to prepare controlled lake parameter maxstorage (new in Wflow.jl 0.7.0).
  • New workflow waterbodies.lakeattrs to prepare lake parameters from lake_fn attribute and rating curve data.
  • New tables model property including read/write: dictionnary of pandas.DataFrame with model tables (e.g. rating curves of lakes, etc.). PR #158 <https://github.com/Deltares/hydromt_wflow/pull/158>_
  • Removed hardcoded mapping tables, and added those files an additional .yml file, which is by default read when creating a WflowModel. PR #168 <https://github.com/Deltares/hydromt_wflow/pull/168>_

Changed

  • Default tomls are now using the diroutput option to specify *rundefault* folder.
  • in setup_reservoirs: options 'usehe' and 'priorityjrc' are removed and replaced with 'timeseriesfn'. Options are ['jrc', 'gww']. By default None to use reservoirfn data directly.
  • in setup_areamap: name of the added map is based on column name of the vector data (col2raster) instead of name of the vector data file (area_fn). Allows to add several maps from one vector data file.

Fixed

  • Bugfix with wrong nodata value in the hydrography method which caused errors for model which where not based on (sub)basins PR #144 <https://github.com/Deltares/hydromt_wflow/pull/144>_
  • Bugfix with wrong indexing in the river method that could cause memory issues PR #147 <https://github.com/Deltares/hydromt_wflow/pull/147>_
  • fix error in setup_reservoirs when gdf contains no data in np.nanmax calculation for i.e. damheight #35
  • write_forcing with time cftime.DatetimeNoLeap #138 by removing slicing forcing if missings (not needed)
  • write_forcing automatic adjustment of starttime and endtime based on forcing content
  • When clipping a model from a model with multiple forcing files, a single netcdf is made in write_forcing and the * is removed from the filename.
  • Remove deprecated basinshape method `PR #183 <https://github.com/Deltares/hydromtwflow/pull/183>`_
  • Remove FillValue Nan for lat/lon in staticmaps and forcing PR #183 <https://github.com/Deltares/hydromt_wflow/pull/183>_
  • Fix compatibility with HydroMT v0.8.0, with updated clip_geom/mask functionality PR #189 <https://github.com/Deltares/hydromt_wflow/pull/189>_

Deprecated

  • The setup_hydrodem function has been removed, and the functionality are moved to setup_rivers and setup_floodplains

Documentation

  • New prepare_ldd example notebook to demonstrate how to prepare flow directions and other elevation related data.

- Python
Published by JoostBuitink almost 3 years ago

hydromt_wflow - v0.2.1

New setupstaticmapsfrom_raster method and river smoothing algorithm. Correct some bugs linked to soon deprecated staticmaps and staticgeoms objects in hydromt core to work with the new 0.6.0 release.

Added

  • Parameters for landuse esa_worlcover. #11
  • New setupstaticmapsfrom_raster method. #128

Changed

  • update forcing example with multiple forcing files #122
  • New window smoothing algorithm in setup_rivers to avoid cells with small river length. Set the minrivlenratio argument to a value larger than zero to apply the smoothing. Note: requires pyflwdir v0.5.6 #92

Fixed

  • write_forcing with time of type cftime.DatetimeNoLeap #109
  • write_forcing: re-write config in case of multiple forcing files
  • read_forcing with multiple files (* key in toml)
  • bug in setupgauges in update mode with crs.isepsg_code #108
  • bug in self.rivers if no staticgeoms and rivmsk is found #113
  • bug in wflowbuildsediment.ini template in examples
  • wrong defaults in wflow_build.ini teamplate in examples #116
  • temporary fix to update staticgeoms basins+rivers in clip_staticmaps (update when moving away from deprecated staticgeoms).
  • fix wrong default value for laifn in setuplaimaps #119

- Python
Published by hboisgon over 3 years ago

hydromt_wflow - v0.2.0

We now use rioxarray to read raster data. We recommend reinstalling your hydromt and hydromt_wflow environment including the rioxarray package. This enables the writting of CF compliant netcdf files for wflow staticmaps.nc and inmaps.nc. Following an update in xarray, hydromt version should be >= 0.5.0.

Fixed

  • correct float32 dtype for all landuse based maps (by changing values in all lookup tables to floats)
  • write CF-compliant staticmaps.nc and inmaps.nc
  • CRS issue when deriving subcatch for user defined gauges in setup_gauges
  • update times in config depending on forcing date range availability in write_forcing methods #97

Changed

  • In the naming of the generated hydrodem map, it is now specified if a D4 or D8 conditionning has been applied for land cells.
  • uint8 dtype wflow_rivers and wflow_streamorder maps
  • except for coordinates (incl x_out and y_out) all variables are saved with at most 32 bit depth
  • new dtype and nodata arguments in setupconstantpars
  • read boolean PCRaster maps with int type to be consistent with netcdf based maps
  • use latest hydromt github version for the test environment files.
  • in setup_glaciers predicate to intersects glacier data with model region is 'intersects' (the old 'contains' was not used anyway due to a bug in core).
  • in setup_reservoirs and setup_lakes the predicate 'contains' to open data is now officially used after a bugfix in hydromt core (cf #150).

Added

  • nodata argument to setup_areamap with a default of -1 (was 0 and not user defined).

- Python
Published by hboisgon almost 4 years ago

hydromt_wflow - v0.1.4

Changed ^^^^^^^ - setup_riverwidth method deprecated (will be removed in future versions) in favour of setuprivers. We suggest to remove the setupriverwidth component from your ini files. - setup_rivers calculate river width and depth based on the attributes of the new rivergeomfn river geometry file. We suggest adding "rivergeomfn = riverslin2019v1" to the setuprivers component of your ini files. - In **setupsoilmaps** the interpolation of missing values (interpolatena function) is executed on the model parameters at the model resolution, rather than on the original raw soilgrids data at higher resolution. This change will generate small differences in the parameter values, but (largely) improve memory usage. - Possibility to use any dataset and not just the default ones for setuplaimaps, setuplakes, setupglaciers. See the documentation for data requirements.

Added ^^^^^ - Possibility to writeforcing in several files based on time frequency (fnfreq argument). - setuphydrodem method for hydrological conditioned elevation used with "local-inertial" routing - workflow.river.riverbathymetry method to derive river width and depth estimates. Note that the new river width estimates are different and result in different model results. - moved basemaps workflows (hydrography and topography) from hydromt core. Note that hydromtwflow v0.1.3 there should be used together with hydromt v0.4.4 (not newer!) - new ID columns for the outlets staticgeoms - new ``indexcol`` attribute to setupgauges to choose a specific column of gaugesfn as ID for wflow_gauges

Fixed ^^^^^ - Calculation of lakeb parameter in setuplakes. - Add a minimum averaged discharge to lakes to avoid division by zero when computing lakeb. - When writting several forcing files instead of one, their timeunits should be the same to get one wflow run (timeunits option in writeforcing) - Filter gauges that could not be snapped to river (if snaptoriver is True) in setup_gauges - Avoid duplicates in the toml csv column for gauges - Fill missing values in landslope with zeros within the basin mask - prevent writing a _FillValue on the time coordinate of forcing data

- Python
Published by hboisgon over 4 years ago

hydromt_wflow - v0.1.3

This release adds pyflwdir v0.5 compatibility and a datacatalog of the used data to the writemethod.

Added ^^^^^

  • write data_catalog with the used data when writting model
  • tests on staticmaps dtype

Changed ^^^^^^^

  • TOML files only contains reservoir/lake/glacier lines when they are setup and present in the model region.

Fixed ^^^^^ - pyflwdir v0.5 compatibility: changes from stream order bugfix and improved river slope - Fixed docs with rtd v1.0 - Wrong dtype for wflow_gauges - Removed uncesseray glacier/lake/reservoir lines from the TOML, fixes a bug if missing glacier

- Python
Published by hboisgon almost 5 years ago

hydromt_wflow - v0.1.2

This release implements the new results attributes for Wflow.

Added ^^^^^

  • Add results attributes for wflow and read_results method (including test+example).
  • Add f_ parameter in soilgrids
  • Support soilgrids version 2020
  • Setup_areamap component to prepare maps of areas of interest to save wflow outputs at.
  • Support wflow_sediment with vito landuse.
  • New utils.py script for low_level wflow methods.

Changed ^^^^^^^

  • wfow_sbm.toml remove netcdf output.
  • wflow_soil map is now based on soil texture calculated directly from soilgrids data
  • test cases change toml and wflow_soil.map
  • wflow_sbm.toml now includes links to staticmaps of glacier parameters and outstate of glacierstore is added.

Fixed ^^^^^

  • Fix f parameter in soilgrids
  • Full reading and writting of wflow filepaths depending on the toml file (including subfolders).
  • The wflow_gauges now contains river outlets only (instead of all outlets).

Documentation ^^^^^^^^^^^^^

  • Added wflowplotresults example.
  • Fixed staticmapstomapstack example.

- Python
Published by hboisgon almost 5 years ago

hydromt_wflow - v0.1.1

  • Improved write forcing method and defaults
  • Bugfixes in some wflow parameters (lake, river manning, nodata in soilgrids)
  • Bump of xarray and dask versions

- Python
Published by hboisgon about 5 years ago

hydromt_wflow - v0.1.0

  • initial PyPi release
  • implements new getbasingeometry method from hydromt
  • bugfixes in clip functions
  • consistent setup function arguments for data sources
  • new tests

- Python
Published by DirkEilander about 5 years ago