- Initial commit, working on make a generic read_netcdf_quadtree_gene…#269
Merged
- Initial commit, working on make a generic read_netcdf_quadtree_gene…#269
Conversation
…ric function - Apply first to netcdf storage volume - Work in progress still
…(can always add a snapwave one) and with real*4 (can always make a double version as well) - In sfincs_domain.f90, 'call read_netcdf_storage_volume' is now replaced by 'call read_netcdf_quadtree_to_sfincs' - Succesfully tested for testbed run 'storage_volume_qt_sbg_thd2'
- Tested by supplying dummy stoarge volume nc file for manning, now nicely stops
* - Added version for reading in netcdf quadtree manningfile - For now: input argument is still manningfile, internally checked whether it is a netcdf file or binary - For now: expected variable in the netcdf file is 'manning' - For now: tested only with dummy of stoarge nc file - Full testing pending on having ncinput example * - Add non-stopping warning if a manningfile is prescribed while there is also a subgridfile, because then it will be unused! * - Bugfix in general read_netcdf_quadtree_to_sfincs routine * - Bugfix that the netcdf manningfile is actually read in * - Now define 'rghfield' in sfincs_data.f90 rather than sfincs_domain.f90, so we can use that variable for output to netcdf file * - Add 'manning' as netcdf output in case not a subgrid model, and if manningfile supplied (either binary for regular model, or as netcdf for quadtree - Tested and working for new quadtree netcdf manningfile input
…ng generic reader (#273) * - Add netinfiltrationfile, netinftype variables - If netinfiltrationfile exists, then netinftype should be used - Do precheck of netinfiltrationfile before reading in all data * - Implement netcdf reader option for all infiltration options - Current implementation will check and retrieve multiple variables from the same file (e.g. cnb) individually - Added some documentation what part of the code is reading/allocating/generic needed conversions - Kept naming in netcdf files for now consistent with the equivalent netcdf files * - Add stop_sfincs check on combination check of infiltration input type (orignal vs netcdf) vs grid type (regular vs quadtree) - Idea for now is if quadtree model, only netcdf input is support, and for regular model only the original binary files * - Constant uniform infiltration is allowed for both grid types * - Edit check - still possible that precip is forced but qinf=0 * - Change names to infiltrationfile and infiltrationtype * - Move whole subroutine 'initialize_infiltration' from sfincs_domain.f90 to sfincs_infiltration.f90 * - Add check whether specified infiltrationtype is correct * - Bump date
…but as real8 (#289) * - Implementation for using the generic netcdf input reader also for existing ncinifile option - Note - made real*8 version - This means that sfincs_initial_conditions does not need netcdf handle error and macros, F90, and precompiler - (unless we add a netcdf restartfile later) * - Suggestion to replace 'ncinifile' input by same 'inifile' name, and just check on the .nc output - Analagous with manningfile, volfile etc.
Collaborator
Author
|
Can you review @maartenvanormondt ? |
Leynse
commented
Mar 19, 2026
Collaborator
Author
Leynse
left a comment
There was a problem hiding this comment.
- Changes checked with Maarten, and netcdf manning and cna infiltration inputs have been tested
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…ric function