Ask Your Question

Can I use ROMS forcing files directly to run simulation in CROCO?

asked 2020-10-28 05:21:23 +0100

I am currently working on a project which uses ROMS ( I use all types of forcing files: river runoff, wind forcing, tides, open ocean boundary conditions, etc. I want to port the entire project to CROCO and try out the non-hydrostatic solver on the same domain. Can I just use all the forcing files as they are? Any thoughts on which forcing files are compatible?

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2021-01-07 02:48:31 +0100

Hi Andres,

Thanks, yes I noticed that the variable names are different and forcing files have different variables stored in them.

I think I have all the variables to run the simulation, but now I am confused as to which cpp options to switch on.

I am attaching ncdump -h from my ROMS_RUTGERS forcing files. Could you or someone help me out in defining the right cppdef options?

Here are the forcing files and my understanding of how forcing is taken care of:
1. ROMS wind forcing file C:\fakepath\wind.txt . This contains 'Uwind' and Vwind which I have to add to as variables 'uwnd' and 'vwnd'.

  1. ROMS bulk forcing file C:\fakepath\roms_bulk.txt which contains radiation fluxes. For longwave, I only have downwelling longwave radiation. How can I manage that in I think CROCO bulk forcing requires down and upwelling longwave radiation? And with only downwelling radiation present for longwave which cpp options are suitable? I need help in this.

  2. Tidal forcing file is easy, the tidal forcing for ROMS has variables with same name as required for CROCO with minor changes so no confusion in this.

  3. Here is ncdump -h from C:\fakepath\cblk.txt and from C:\fakepath\cfrc.txt for reference.

My understand is because I have Uwind and Vwind, I don't need u-stress and v-stress as bulk algorithm will take care of it. but how should I take care of longwave radiation? I will appreciate any help as to which cpp options in CROCO should be activated.

Best, Aakash

edit flag offensive delete link more


HI, Aakash A patch solution could be to get down and upwelling longwave radiation from the climatological fields and add them to your BLK file. If you do make_bulk this would generate a file from which you can extract the variables.

andres gravatar imageandres ( 2021-01-07 20:53:55 +0100 )edit

I don´t know if this would give you the correct net radiation balance so compare the climatological values of downwelling with those from your ROMS file.

andres gravatar imageandres ( 2021-01-07 20:57:30 +0100 )edit

Can CROCO compute its own upward longwave flux? Is there any option for that? If that option exists then I just need downward longwave which I already have. And I am sorry but what do you mean by climatological fields? Bcos I already have ROMS forcings I am just copy pasting them in croco forcings

aakashsane gravatar imageaakashsane ( 2021-01-07 21:08:12 +0100 )edit

I was able to figure out the outward longwave radiation part in bulk fluxes. I checked source code, bulk_flux.F, and at line 522 there is a term 'hflw' which takes care of outward longwave radiation given SST. It is activated when BULK_LW is set to true in cppdefs.h

aakashsane gravatar imageaakashsane ( 2021-01-08 21:29:24 +0100 )edit

So I just need downward radiation flux in my bulk forcing file and outward is taken care of by CROCO.

aakashsane gravatar imageaakashsane ( 2021-01-08 21:30:14 +0100 )edit

answered 2020-10-29 15:04:39 +0100

andres gravatar image

In principle, yes. It might not be trivial.

CROCO uses only one forcing file, where tide information is included, and only one boundary file. River runnof is added in an external file (

You might have problems in the variable names are different, but that is something that can be fixed using NCO tools.

Compare and post the output from

ncdump -h

for your ROMS_Rutgers and the files produced for the default Benguela case, to see if we can spot the differences.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2020-10-28 05:21:23 +0100

Seen: 2,250 times

Last updated: Jan 07 '21