-
Notifications
You must be signed in to change notification settings - Fork 48
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
Question on Transient Land Use Change Option #159
Comments
Dear @Nooshdokht-Bayatafshary, thank you for your enquiry. The model simulation will start at the "StepStart". The "CalendarDayStart" is the reference date for time depending inputs. At each computational time step, the option "TransientLandUseChange" will read and use the land use maps with the closest time stamp (https://github.com/ec-jrc/lisflood-code/blob/master/src/lisflood/hydrological_modules/landusechange.py#L106). In your example, land use maps for 2015-09-22 will be used at the time step 2015-01-01. As a side note, your message mentions that the start date of the prerun is 2015-01-01. The adequate length of the prerun depends on climatic conditions and physical properties of the modelled area (mainly, soil properties). Therefore, there is no general rule to establish the minimum number of years. However, this page provides insights and recommendations https://ec-jrc.github.io/lisflood-code/3_step5_model-initialisation/. We hope that our answer helps, |
Dear @StefaniaGrimaldi, Thank you for your clarification and assistance. I have another question regarding this option, and I'm unsure whether to raise it in this section or the lisflood-calibration. As I mentioned previously, I am using the transient land use change option in my modeling and I am currently trying to run calibration codes. I encountered an error that seems related to the transient land use change option. I provided the full error log log.txt and my XML settings (settings_calibrationPreRun0.zip).
Upon tracing the error, I believe it is due to the loadmap function using the default option of timestampFlag, which is set to "exact" (line 341 and line 129). Could you please help me resolve this error? If this issue should be raised in the calibration section, please let me know. Best regards, |
Dear @Nooshdokht-Bayatafshary, @doc78 and I looked at your issue: we recommend setting
As a matter of fact, your message highlighted a weakness in the module TransientLandUseChange: the loadmap function in line 82 should make use of the timestampFlag "closest". We will test this solution off-line, and if successful, we will include it in the next operational release in order to make the code more robust. Thank you for sharing your issue! Kind regards, |
Dear @StefaniaGrimaldi and @doc78, Thank you for your prompt and detailed response. It's encouraging to hear that my message has helped identify a potential improvement in the loadmap function of the TransientLandUseChange module. I appreciate your commitment to enhancing the robustness of the code and look forward to seeing this update in the next operational release. I appreciate your recommendation and have reviewed the example settings file at the provided link. I have updated all other options in my settings file (settings_calibration.zip) as recommended specifically MapsCaching, but the error persists. Additionally, I printed the kwargs parameter line 229. When it attempts to read the fracother file, it only prints the value ( Best regards, |
Dear @Nooshdokht-Bayatafshary, @doc78 and I have looked at this issue again and, unfortunately, you are correct: it is necessary to implement a small bug fix. You will need to change lines 82 and 129 in https://github.com/ec-jrc/lisflood-code/blob/fe94c33b6bd9fe09fa7be43a6dd4fdc8a11f744c/src/lisflood/hydrological_modules/landusechange.py Here is the bug fix: This will solve the issue that you flagged. However, we tested your set-up, and it is very likely that you will encounter another error immediately after, specifically, in line 87. We hope that our answer helps, |
Dear @StefaniaGrimaldi and @doc78, Thank you for your continuous support and assistance. The change you suggested successfully resolved the initial error. As you mentioned, I encountered another error at line 87, and you were correct in identifying an issue with my setup: the NC file was flipped. Upon further examination of the source code, I realized that both the loadmap_base function and the readnetcdf function exclude NaN values (represented by -999999). I am wondering if this exclusion is based on the maskmap or not. Could you please confirm whether creating the netcdf files based on the boundary limits of my region (such as a rectangle) and using the maskmap to show the actual boundary of the basin will work correctly? I believe that my current method of defining boundaries might be causing the issue, and I am considering defining the boundaries using a larger rectangle. Kind regards, |
Dear @Nooshdokht-Bayatafshary, LISFLOOD computations are performed for all the pixels with mask map value = 1. In all the static and dynamic implementation maps, NaN (or Fill Values such as -999999) are not tolerated in pixels where mask map value = 1. We hope that our answer helps, |
Dear Developers,
I am using the transient land use change option in my modeling and have a question about its functionality. I created a transient land use map with the following time steps:
My question is: If I set the start time for prerun modeling to 2015-01-01, will the model work correctly? Specifically, I want to know if the model will use the land use map from 2015-09-22 when needed, or if it will produce an error or return unrealistic results. According to the manual, it seems that the model loads the map at CalendarDayStart at the beginning of the simulation and replaces it at each subsequent time step with the map corresponding to that time step (or the most recent one available).
Thank you for your assistance!
Best regards,
Nooshdokht
The text was updated successfully, but these errors were encountered: