ec-jrc / lisflood-utilities

LISFLOOD OS - Utilities
https://ec-jrc.github.io/lisflood
European Union Public License 1.2
22 stars 9 forks source link

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

Open diksha922 opened 1 month ago

diksha922 commented 1 month ago

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 commented 1 month ago

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