-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* testing rioxarray * more tests * map_blocks working * add hrt test * test on different dem * map_blocks speed testing Generate blocks_gdf from a raster, specify which blocks we should do calculation, then skip the other blocks, returning nodata. Needs testing if it is effective. * more blocktests * tests * speed tests home pc Made some changes afterwards. rxr no blocks seems to be the prefered route. * create overviews on raster for faster rendering in gis. Will be added to options in hrt * Update rxr_testing.py * geocube gdf to raster * hrt seems faster than geocube without interpolation. * Create wlvl_writer.py * deprecate hrt.create_meta_from_gdf * formatting * add DamageDem pytest * DamageDem with rxr * add oracledb * landuse clip to rxr * waterdelen rasterizen * damagedem rxr reproject refactored * GridToWaterDepth en GridToWaterLevel * fix misc issues * statistics to rxr * Update grid_to_raster.py * storage raster a la rastercalculator * working storage raster with tests * clean code add OLD calculation. Dont merge this, used now to test speed differences, old method seems faster with the test dataset. * set variables at init * clean test * correctly apply masks * nodatamask works with nan and to func * introduce RasterCalculatorRxr * remove .pl * refactor GridToWaterLevel test * schema versie back to 217 * fix storage_raster test * check wlvl raster on 1d2d test Pytest not working yet. Result wlvl raster is quite different. * Create to mkdir * ModelbuilderRastersRxr opzet * remove unused code * add polder_tif to calculation rasters * add waterdeel.tif to calculation_rasters * fix tests waterdeel polder tif * add ClipModelRasterCalc Maakt clip van bronraster met de polder polygon. Optie om watervlakken ook een specifieke waarde te geven. * clean schema rasters, working tests * remove nodata_keys from RasterCalculatorRxr * add landuse to clipmodelraster * nodata_keys as input for more general behaviour * improve readability * remove create_landuse_polder_clip Is now obsolete since it can be done with create_schematisation_rasters.ClipModelRasterCalc * fix tests * add todo wdepth klimaatsommen * ruff to pyproject * ruff command * klimaatsommenprep uses new wlvl calc Have to make a version that does the old one so we can compare. * drooglegging sqlite to rxr * add old wdepth creation as option to klimaatsommen All tests working now. Deprecate old wdepth calculation on later release * add GridToRaster to init * review changes * No change to run tests * fix tests Something going on with PATH_NEW_FOLDER --------- Co-authored-by: Daniel Tollenaar <[email protected]>
- Loading branch information
1 parent
36b2d84
commit 364644f
Showing
60 changed files
with
2,649 additions
and
1,058 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
REM force-exclude to make sure it uses the extend-exclude from pyproject. | ||
python -m ruff format ../hhnk_threedi_tools/**/*.py --force-exclude |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Functions that interact with the results API""" | ||
|
||
import math | ||
import os | ||
import zipfile | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
used in folder structures | ||
""" | ||
|
||
# system imports | ||
import os | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.