Hi,
I would like to know what is the purpose of the option DIURNAL_INPUT_SRFLX avaliable in cppdefs.h when running PISCES. I get it is something related to the shortwave radiation at the surface, but what does it change activating it? Can anybody help me? Thank you.
For what I understand, this option is undefined when using PISCES as it would lead to an overestimation of surface radiation, and thus productivity. Please contact Vincent Echevin (IRD) for more details in this topic.
Hi, in fact, this is to deal with a diurnal cycle, if any, in the solar short-wave radiation imposed in the forcing files (variable radsw in frc/blk files). Short-wave radiation is used to derive the photosynthetic available radiation (PAR) for phytoplankton growth. Since PISCES do not accept PAR=radsw=0 (see PISCES equations), this key must be activated if there is a diurnal cycle in radsw. In that case, another variable (radswbio) is read in the forcing files instead of radsw.
The variable radswbio is the solar short-wave radiation without diurnal cycle, and this must be specifically pre-processed and included in the forcing files, for example by running âAforc_CFSR/add_radswbio_CFSR.mâ for CFSR data.
Good luck !
Thanks a lot for your explanation, Pedro!
Thanks AndrĂŠs, Iâll take that in consideration.
Hello Everyone,
I was trying to do run CROCO with PISCES activated.
As suggested by @Pedro in this conversation I defined the DIURNAL_INPUT_SRFLX option, since my bulk_forcing file is made using hourly ERA5 data. Also , I added the variable âradswbioâ in the bulk_forcing file.
But when I am running the model, I am getting the following error:
GET_BULK - ERROR: unable to find forcing variable: salt_src
in forcing NetCDF file: CROCO_FILES/INPUTS/croco_blk_ERA5_Y1993.nc
I am not understanding why salt_src is being searched in bulk_forcing file.
I would appreciate any help regarding this.
Thanks in Advance,
Suhail
Hello,
I think it could be a bug due to a mismatch in variables if you are using simultaneously PSOURCE_NCFILE_TS and DIURNAL_INPUT_SRFLX
Which version of CROCO do you use ?
If it is 2.1.0 you can try to change in OCEAN/ncscrum.h lines 931
#ifdef DIURNAL_INPUT_SRFLX
integer indxShflx_rswbio
parameter (indxShflx_rswbio=indxSUSTR+124)
#endif
by
#ifdef DIURNAL_INPUT_SRFLX
integer indxShflx_rswbio
parameter (indxShflx_rswbio=indxSUSTR+120)
#endif
Then recompile and rerun (perhaps it will be another error, it is just a guess fix, perhaps it would be to increase 124 by something else, but it would be better to know if it is really this line the problem before digging more)
Regards,
Solène
Hi,
That worked. Itâs running now.
Thank You
Regards,
Suhail
Great news ! ![]()
Thanks for the update.
I will open an issue to treat that in the code for the next release.
Regards
Hi!
Recently I had been working on a configuration that considers both river inputs and activation of the PISCES module. May I ask if the fix that you suggested also works for CROCO version 1.3.1?
In addition, I have some confusion about the use of DIURNAL_INPUT_SRFLUX. Similar to @amsuhail, I am using hourly shortwave radiation data in my bulk forcing. However, it is based on a different data set than ERA or other of the more commonly used datasets. So if I were to create the âradswbioâ variable necessary for DIURNAL_INPUT_SRFLUX, what should it consist of? Is it something like a daily or monthly average of the hourly data I am using?
I would greatly appreciate any guidance on this matter.
Thanks,
Lawrence
My interpretation of this flag is that it is needed to ensure that shortwave radiation is non zero outside of daylight hours.
Iâm using ERA5 hourly data which naturally follows the diurnal cycle. However, shortwave radiation outside of daylight hours is an arbitrary 1e-15 value. Does this negage the need for the DIURNAL_INPUT_SRFLUX flag and the need for the inputting of swradbio?