Ask Your Question

A question regarding cpp option: ONLINE

asked 2021-10-25 22:30:45 +0200

DJ gravatar image


The CROCO manual says that with the cpp option, ONLINE, CROCO will interpolate forcing files to CROCO grids online. I assume this is the same function as the Rutgers' ROMS saving storage as CROCO does not need the forcing files interpolated to CROCO grids. I want to use it to save some storage as interpolated forcing file (0.25 deg to <1 km) is rather big and wastes storage space.

However, there is no instruction on how to prepare the "native files". Can someone show me the metadata of the forcing netcdf (the output of ncdump -h)? I am trying to use ERA5 on this. I've already downloaded ERA5 data, but I think the "native files" are not the ones I downloaded.

Read native files and perform online interpolation on CROCO | grid (default cubic interpolation)

Thanks in advance.


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2021-10-26 19:06:04 +0200

DJ gravatar image

Hi all,

It looks like all we need is the ERA 5 files downloaded from the ECMWF site and define ONLINE and ERA_ECMWF, and BULK_FLUX in cppdefs.h

In online_bulk_var.F, there is a list of variable names (t2m, q, ssr, strd, u10m, v10m) which are consistent with ERA5 data. So I assume I put the ERA 5 file under forcing in and CROCO will read the data from the ones downloaded from ECMWF and interpolate and process the forcing data online.

If I had a problem when running the CROCO model, I will update it.



edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2021-10-25 22:30:45 +0200

Seen: 4,960 times

Last updated: Oct 26 '21