Welcome to the new DiscussCESM forum!
We are still working on the website migration, so you may experience downtime during this process.

Existing users, please reset your password before logging in here: https://xenforo.cgd.ucar.edu/cesm/index.php?lost-password/

How to find the code to calculate top of atmosphere solar radiation at each grid cell

Eric

Eric
Member
Hello,

According to the CAM6.0 scientific support document, the top of atmosphere solar radiation at each grid cell is calculated as:
1619837577914.png
Could you help me find the location of this calculation? Which .F90 file should I look into? Thank you!

Best
Eric
 

andrew

Member
Try looking for "solin" in ./src/physics/rrtmg/radsw.F90


solin(i) = sum(sfac(:)*solar_band_irrad(:)) * eccf * coszrs(i)

I think is going to be the solar broadband flux across bands and solar zenith angle, etc.
 

Eric

Eric
Member
Hi Andrew,

Thanks for the help! I noticed that in the radsw.F90, under "! Initialize output fields:", each output field is expressed as an array. For example, fsds(1:ncol) = 0.0_r8. I wonder what does ncol mean here? What is the physical meaning of ncol?

In my understanding, at each time step, there should be a spatial loop allowing the radiation calculation for each grid cell. I guess the radiation calculation in the radsw.F90 and radiation.F90 is inside only one grid cell. Could you help me find the do loop for the spatial dimension?

Thank you!

Best
Eric
 
Top