Issue with Adding irrigation_method to histfile in CTSM

Status
Not open for further replies.

bixby

Jonghyeok Lee
New Member
Hello CTSM community,

I have recently applied the changes from Add flood irrigation and surface water ponding for rice paddies by YiYaoVUB · Pull Request #2026 · ESCOMP/CTSM on GitHub to my CTSM setup and the model seems to run smoothly.
However, I am keen on inspecting the newly introduced variable irrigation_method (source: Yao et al., 2022) in the surfdata_map and wish to add it to the histfile for further analysis.

To achieve this, I utilized call hist_addfld2d for the addition.
Although the variable was successfully added to the histfile, the resulting values seem to be off.
I have experimented with both avgflag options 'A' and 'I', and tried using ptr_col, gcell, lnd, and patch

(I personally believe ptr_lnd is the correct choice, as in surfrdMod.F90 the dimension name is set as dim1name=grlnd:

if ( cft_size > 0 )then
call ncd_io(ncid=ncid, varname='irrigation_method', flag='read', data=irrig_method, &
dim1name=grlnd, readvar=readvar)

For reference and to possibly aid in troubleshooting, I am attaching the resulting histfiles, the surfdata_map file, and the modified IrrigationMod.F90.

I would greatly appreciate any insights or suggestions on how to correctly implement and analyze the irrigation_method variable in the histfile.

Thank you in advance for your help!
 

Attachments

  • version_info.txt
    version_info.txt
    8.2 KB · Views: 1
  • irrigation_method_1dpatch.png
    irrigation_method_1dpatch.png
    329.7 KB · Views: 2
  • irrigation_method_2d_col.png
    irrigation_method_2d_col.png
    114.9 KB · Views: 2
  • irrigation_method_2d_gcell.png
    irrigation_method_2d_gcell.png
    106.3 KB · Views: 2
  • irrigation_method_2d_lnd.png
    irrigation_method_2d_lnd.png
    111 KB · Views: 2
  • irrigation_method_2d_patch.png
    irrigation_method_2d_patch.png
    259 KB · Views: 2
Status
Not open for further replies.
Back
Top