Dear scholars, I have encountered a problem with the creation of the forcing field. The problem is as follows:
Firstly, I wanted to use the offline method to create the frc or blk files, which involves using the make_ERA5.m function. However, after creating the files, the program crashed when running the second step. Upon checking the rst.nc file, I found that the field temperature had dropped to -3*10^32! I suspect there might be an issue with the heat flux creation. So, I checked the frc file and found that the parameters shflux, swflux, sst, sss, dqsstd, and sward were all empty. But the blk file contained tair, rhum, prate, and radlw_in. Is this reasonable? However, the shortwave and longwave radiation in the blk file cannot cause the ocean to lose temperature instantly, even without sensible heat flux.
The second problem is that since I couldnāt solve the issue of instantaneous temperature loss, I thought of using the online interpolation method. In the cpp, I turned ONLINE and ERA_ECMWF on. But I donāt know how to properly set the path and format for downloading data in the croco.in file. This is what caused the problem: /home/CROCO/croco_tools-v2.0.0/Aforc_ERA5/path_to_my_run_dir/DATA/ERA5_native_RUN_test/T2M_Y2025M01.nc
erreur tool_decompdate : impossible de determiner le mois
erreur tool_decompdate : impossible de determiner le mois
I would appreciate it if scholars with relevant experience could offer valuable suggestions. Thank you .
I can only help with the second question.
In croco.in, the path only needs to point to the directory where the downloaded files are stored.
For example, suppose you have a directory containing multiple monthly files: /media/test/DATA/Benguela/
with files such as (individual files): LSM_Y2013M01.nc TSM_Y2013M01.nc ...
(one file for each year and month).
At the end of your croco.in file, you should specify the online forcing parameters as follows: online: byear bmonth recordsperday byearend bmonthend / data path 2013 1 4 2013 3 /media/test/DATA/Benguela/
In this case, you only need to specify the starting year (byear = 2013) and month (bmonth = 1) and the ending year and month (March 2013). The forcing has 4 records per day but it can change depending how your files are structured.
Below these parameters, you simply provide the path to the directory containing the files (/media/test/DATA/Benguela/). The model will automatically search for and read the appropriate files from this directory.
However, you must ensure that the months specified match the period of your model run.
and in the cpp.h file, I set it as:
# define ONLINE
# ifdef ONLINE
# undef AROME
# define ERA_ECMWF
# define BULK_MONTH_1DIGIT
# endif
But the same problem occurred again:
Open Meteo file :
/home/CROCO/croco- v2.0.1/RUN_test/DATA/ERA5_Beng/T2M_Y2025M1.nc
erreur tool_decompdate : impossible de determiner le mois
erreur tool_decompdate : impossible de determiner le mois
erreur tool_decompdate : impossible de determiner le mois
Have you encountered similar problems before?
Thank you very much for your enthusiastic response.
Best wishes!
In my case, the issue was due to inconsistent time steps between the input files. Did you run the example simulation provided in the tutorial? We could use those files as a reference to help identify the problem.
Also, could you please share your croco.in file?
P.S: Just to be sureā¦Change the name of the file from T2M_Y2025M1.nc to T2M_Y2025M01.nc (sometimes the model wants the MM nomenclature)
Thank you again for your responseļ¼
I will attach my croco.in file. The issue you mentioned here is about the time step of the input file. Is it referring to the downloaded ERA5 or something else? croco_in.txt (9.4 KB)
Since I referred to other scholars and enabled #define BULK_MONTH_1DIGIT, there is no need to rename T2M_Y2025M1 to T2M_Y2025M01. This way is a bit more convenient, but I also tried using T2M_Y2025M01, but the problems occurred were the same as before.
Yes. The model is very sensitive to the time steps.
Do you have the same yorig in the ERA5 files as in croco.in, and are the time steps set to 4 hours in your ERA5 files?
Sometimes it is really a simple thing that breaks everything
Thank you for your reply!
A simple mistake:I modified the reference time in ERA5_convert.py to ādays since 1900-01-01ā and it was able to run, although a new crash error occurred.
Best wishes!