Add a chunk in the NCReader #441
kongdd
started this conversation in
Feature request
Replies: 1 comment 1 reply
-
Thanks for the suggestion. We generally run with forcing data that has a Do you see a reduction in time consumption when a If not, it would be good to know the Wflow.jl version (and preferably the NCDatasets version) used, Operating System and ideally a test case (part of your running case). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Suggest adding a chunk in the struct of NCReader.
In my running case (10 years hourly runoff simulation), 90% time consumed at loading forcing data.
Adding a chunk (with the dimension of
nlon*nlat*chunksize
, chunksize=1000) to store forcing data should reduce the nc reading time significantly.If the running date is still within the current chunk, read data from the chunk; otherwise, update the chunk and read again.
Wflow.jl/src/io.jl
Lines 623 to 630 in 6a28144
Beta Was this translation helpful? Give feedback.
All reactions