Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LUT inconsistency, radice is the diameter of ice and not the radius #8

Open
Chiil opened this issue Dec 11, 2024 · 2 comments
Open

Comments

@Chiil
Copy link
Collaborator

Chiil commented Dec 11, 2024

While comparing the LUT of ice to that in ecRAD, we discovered that one needs to increase the radius with a factor of 2 to get the same optical properties. After a big of digging into the construction of the table, we think that where radice is used as a dimension name, this is in fact the diameter.

@RobertPincus
Copy link
Member

Thanks @Chiil. See also the issue in the code repo.

@RobertPincus
Copy link
Member

Let's see, we can rename things with

ncrename -v radice_lwr,diamice_lwr -v  radice_upr,diamice_upr -v radice_fac,diamice_fac rrtmgp-clouds-lw.nc
ncrename -v radice_lwr,diamice_lwr -v  radice_upr,diamice_upr -v radice_fac,diamice_fac rrtmgp-clouds-sw.nc

That leaves the attributes unchanged e.g.

ncdump -h rrtmgp-clouds-lw.nc | grep ice | grep rad
		diamice_lwr:standard_name = "radice_lwr" ;
		diamice_upr:standard_name = "radice_upr" ;
		diamice_fac:standard_name = "radice_fac" ;

so we need to

ncatted -a standard_name,diamice_lwr,m,c,diamice_lwr \
               -a standard_name,diamice_upr,m,c,diamice_upr \
               -a standard_name,diamice_fac,m,c,diamice_fac  rrtmgp-clouds-lw.nc
ncatted -a standard_name,diamice_lwr,m,c,diamice_lwr \
               -a standard_name,diamice_upr,m,c,diamice_upr \
               -a standard_name,diamice_fac,m,c,diamice_fac  rrtmgp-clouds-sw.nc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants