Skip to content
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

How to extract time of a certain duration from given .nc series? #66

Open
diksha922 opened this issue Jul 11, 2024 · 1 comment
Open

Comments

@diksha922
Copy link

Hello @StefaniaGrimaldi.

I have the dataset in .nc file for the larger period, I want to extract the dataset for a particular duration in LISFLOOD-compatible input format.

Can you please help with this?

Thanks,

Diksha Gupta

@StefaniaGrimaldi
Copy link
Contributor

Dear @diksha922,

you can select the start date and the end date of your simulation using the .xml settings file:
https://ec-jrc.github.io/lisflood-code/3_step3_preparing-setting-file/

"StepStart" and "StepEnd" allow to set the start date and the end date of your simulation.

If your forcings are from 02/01/1979 00:00 to 01/01/2020 00:00, but you only need to perform a LISFLOOD run from 02/01/1990 00:00 to 02/01/1995 00:00, you can set:
"CalendarDayStart" = 02/01/1979 00:00
"StepStart" = 02/01/1990 00:00
"StepEnd" = 02/01/1995 00:00

OS LISFLOOD will only use the forcings from StepStart to StepEnd, even if your .nc files include many more years.

As a side note, please be aware that the LISFLOOD pre-run must cover an extensive period to allow adequate initialization of all model states (it is recommended to use all the available forcings): https://ec-jrc.github.io/lisflood-code/3_step5_model-initialisation/.

I hope that my answer helps,
kind regards,
on behalf of the developers team,
Stefania

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants