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

dsig in read_be_gsi #8

Open
barronh opened this issue May 31, 2024 · 0 comments
Open

dsig in read_be_gsi #8

barronh opened this issue May 31, 2024 · 0 comments

Comments

@barronh
Copy link

barronh commented May 31, 2024

The read_be_gsi uses dsig to normalize the vertical length scale[1,2], but I believe it should be updated for sigma coordinate and may need to be redone for hybrid coordinates.

Right now, dsig is calculated from sigma (aka eta) coordinates using the centers and approximating the edge values. Essentially, half the distance in log space between each center-point and the center-points above/below is assigned to each level. For the bottom level and the top level, the distance in each direction is approximated using the distance in one direction (up for the bottom level; down for the top level). This approximation is unnecessary for the bottom since the edge value is defined as 1. The top edge is also defined as zero, but cannot be used because its value is undefined in log-space.

Attached is a fortran code with several alternative calculations.

  1. Adjusts edges of dsig using known properties of ZNU (bottom=1, top=0),
  2. Calculates dsig from a reconstructed ZNW,
  3. Uses assumed surface pressure and model pressure top to calculate in pressure space.

The last alternative is based on two things. (2) My interpretation of the code is that dsig approximates a value proportional to $log(P_{k,bottom} / P_{k,top})$, which is used to convert the length scale into something proportional to vertical coordinate unit. (2) In the future, the hybrid coordinate in WRF will require an adjustment to account for constant pressure levels.

The Fortran code produces the attached CSV output and I made the following figure to show the changes. For the vertical coordinate used at the EPA, the first approach changes the bottom value by ~7% and the top value by a similar amount. The other approaches make larger changes.

vlen_dsig

genbe.F90.txt
genbe_dsig.csv

[1] https://github.com/wrf-model/GENBE_2.0/blob/master/src/gen_be_nc2gsi.F#L627-L631
[2] https://github.com/wrf-model/GENBE_2.0/blob/master/src/gen_be_nc2gsi.F#L637

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

1 participant