-
Notifications
You must be signed in to change notification settings - Fork 7
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
bug fix: PEATCLSM water table depth #593
Conversation
…ace water output: - renamed WATERTABLED --> PEATCLSM_WATERLEVEL - renamed FSWCHANGE --> PEATCLSM_FSWCHANGE - restricted above exports to PEATCLSM tiles - flipped sign convention for PEATCLSM_WATERLEVEL
I think in MAPL, the data MAPL_UNDEF is ignored and is not counted in averaging calculation |
DO you mean the calculation of PEATCLSM_WATERLEVEL should depend on other variables PEATCLSM ? |
Ok, thanks. We'll assume for now that nothing else needs to be done and verify the assumption in a cube-sphere tile-space experiment.
No. Water level is computed in tile space in CatchGridComp. The question is simply what we get when we ouput waterlevel in grid space from SurfaceGridComp (where the tile2grid aggregation is done by MAPL Location stream). So if x(tile1) = 0.5 and x(tile2)=NaN, we want x(gridcellA)=0.5, where gridcellA consists of tile1 and tile2. |
@gmao-rreichle If x(tile1) = 0.5 and x(tile2)=NaN, where gridcellA consists of tile1 and tile2. Then the MAPL_LocstreamTransoform will give: x(gridcellA)=0.5 Basically any MAPL_UNDEF in the source tiles does not count towards the destination cell. In that case the weights are renormalized. That is done here: |
No questions or suggestions. Sounds like a very good idea to me to have PEATCLSM_WATERLEVEL and PEATCLSM_FSWCHANGE output variables. I also appreciate the sign change. |
See below for update on testing. @sdrabenh: We are ready to start SMAP L4_SM Version 7 reprocessing as soon as we have a new GEOSgcm_GridComp release that includes this bug fix. The PR could be merged immediately, so we could start L4_SM reprocessing without further delay. Or we could wait (probably about a day) for Biljana's test to be completed. In any case, this is a heads-up that it would be very helpful to merge this PR as soon as you can fit it into your schedule. I'm going to change the status from "draft" to "ready for review" now so we can start collecting approvals from @GEOS-ESM/landice-team and @GEOS-ESM/ocean-team. The changes are strictly limited to export variables for "land" tiles and can be considered trivially 0-diff for all things GCM. Update on tests completed so far: |
FINAL update: Based on output created by @biljanaorescanin using "develop" and this branch with NLv5 bcs on the cube-sphere tile space, I verified that PEATCLSM_WATERLEVEL and PEATCLSM_FSWCHANGE are ok. PR is definitely ready to be merged as is. |
The water table depth (WATERTABLED) export variable ("zbar" in Catchment) that was introduced with PEATCLSM (#524) produces inappropriate values for mineral tiles.
This PR restricts the calculation of the WATERTABLED and FSWCHANGE exports to PEATCLSM tiles and assigns MAPL_UNDEF elsewhere. The PR also renames these exports for clarity and consistency:
Moreover, the sign convention for PEATCLSM_WATERLEVEL was flipped from that of WATERTABLED so that now water level is negative below ground and positive above ground.
One open question (probably for @weiyuan-jiang or @mathomp4):
The above PEATCLSM exports are calculated in tile space and remapped to the atmospheric grid via MAPL Location Stream, along with all other tile-space land exports. Since PEATCLSM tiles are still "land" tiles (i.e., type 100) and are identified only by their uniquely large porosity (POROS) values, the question is how no-data-values (MAPL_UNDEF) are treated in the remapping from tile to grid. The desired behavior is to ignore MAPL_UNDEF in the tile2grid operation. That is, if a given (say, cube-sphere) grid cell includes two tiles, one mineral and one PEATCLSM, then the average of PEATCLSM_WATERLEVEL for the cube-sphere grid cell in question should be that of the PEATCLSM tile, rather than MAPL_UNDEF. If this is not the default behavior, are there options in MAPL Location Stream to make this happen?
Since the PR only touches exports that are only used for the forthcoming SMAP L4_SM version, it should be trivially 0-diff for the GCM. Given the extent of the edits, though, I chose the regular 0-diff label to be safe.
There is some urgency to this bug fix because it is needed for L4_SM Version 7 production, which is estimated to start later this month.
A matching GEOSldas PR will be created.
The revised variable names and documentation are not set in stone. Feel free to comment if you have any questions or suggestions.
cc: @gmao-jkolassa @rdkoster @sdrabenh @biljanaorescanin @mbechtold @gmao-qliu