RST file for forecast mode

Hello everyone,

I’m currently running CROCO in forecast mode using a sliding window approach, where each day I simulate a 5-day forecast starting from a new day. For example, today I simulate from Nov 14 to Nov 18, and tomorrow from Nov 15 to Nov 19, and so on.

I generate restart files (croco_rst.nc) at daily frequency (every 24h). The output file contains multiple time records, one for each day of the forecast period.

My question is:

Can CROCO automatically recognize the correct time record in the rst file when using it as an initial condition for the next forecast? Or do I need to extract the specific time slice to generate a new ini file that contains only a single time record before using it in the next forecast?

If the model can recognize the appropriate time index internally, that would simplify automation. Otherwise, I will continue extracting it manually.

Thanks in advance for your guidance!

1 Like

Hi Josse,

Yes, you can use the restart file without modifying it. You only need to change the time record where you want the model to start in your croco.in file (NRREC, which by default is 1—the first time record).

If you run the whole forecast generation process in an automated way using a bash script or similar, you can simply replace the value 1 of NRREC with any variable you choose, and then update that value using the sed command.

I hope I understood your question correctly.
Best regards.