-
Notifications
You must be signed in to change notification settings - Fork 317
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
Division of critical day length by 2 is incorrect #1427
Comments
@ekluzek can you remind me how crit_dayl is defined, is it just being read off the parameter file? |
Feeling from ctsm-software meeting: there should be a new parameter used in this place – set to what crit_dayl/2 currently gives – so that the two can be varied independently. To do it right, the current parameter should be renamed to |
I think for this section of code the new parameter here would be
|
I'm pasting this email from @lmbirch89 for reference: Thanks so much for continuing to work on this! My apologies for leaving this out of the Supplement; I did add this comment, I believe. It was just a quick threshold that doesn't affect much of the majority of the Arctic-Boreal. In coastal grid cells bordering the Arctic Ocean, some grasses would begin photosynthesizing at the end of January when there was virtually no light and then burn out by summer. With it being frozen and dark, there is likely a model land/sea interaction that was causing onset snow and temperature thresholds to be passed, but I couldn't untangle why. A 6hr daylight threshold fixed the problem and then photosynthesis wouldn't try to start until June, even though the 6 hour daylight threshold is passed in March. I hope this helps. Let me know if you have any other questions. @ekluzek can we:
|
@wwieder unless we can show that the current value gives identical results to 6hours I suggest we leave it at the current value. It most likely doesn't matter if it's 5 or 6, which lends me to think since we've done tons of simulations with the current value of 5 that we should leave it alone. But, I could also run the test suite and verify that 6 gives the same results as 5. I think the crit_dayl_onset parameter should be hardcoded as a parameter in CNPhenologyMod.F90. I'm viewing this not as a bug anymore, but as a documentation and code clarity issue. |
I agree, it makes sense to leave crit_dayl_onset to 5 to avoid changing answers for now, but I guess I still have a few questions:
|
I don't think 6 hours is a hard limit that you have to hit. I should have edited the comment to reflect the real value that I settled on, so I think that would be sufficient here. Like I said, it was merely to stop some odd behavior in January/early February on the coast that doesn't make physical sense. I wouldn't expect 6 hours to have too much of an impact because before I put in this limit, it was very obvious that deciduous plants were turning on in January/February along the coasts. |
@wwieder I included some of my reasoning in our email discussion with @lmbirch89 so I'll quote that here and also expand upon it a bit.
To expand further the reason to put something on the paramsfile is for something that's a parameter that needs to be tuned for a model parameterization. Or it might be something that has some empirical observations for, but it's got big error bars around it so you need to tune it to get good results. It should also be something that you could modify with machine learning and get sensible results from tuning it. You want it on the paramfile to make it easy to modify and tune results with. Things that you probably don't want on the parameter file are things that aren't above. So it's something that's observed to a high degree of accuracy for example. So physical constants we have hard coded as parameters in files specific to CTSM or to CESM. In this case this is a "degenerate parameter" because it wont' actually change results whatsoever for midrange values -- but it will create degenerate results for bad values that are either too low or too high. That's the kind of parameter that would wreck a machine learning algorithm, and there's no reason to include it, because there's nothing good about having it in. In this specific case if you make it too low, you'll see the deciduous plants turning on in arctic coasts in January which is degenerate behavior that you don't want to see. But, if you make it too high, arctic deciduous plants won't turn on at all at certain locations which is another kind of degenerate behavior. But, in the middle of those two extreme's -- it won't change answers whatsoever. So that's the kind of degenerate parameter that you don't want users to have easy access to -- because the only thing they can do with by changing it -- is to get the model to give bad results. That's the kind of parameter you want to make it hard for the user to change -- NOT easy to change. As such I can't think of a legit reason to do any testing with it -- especially with @lmbirch89 comment above. If you did have some kind of observational evidence that does tie leaf onset to day length, maybe we would want to do some more testing. And it's also possible that you might actually see some different behavior for lower values of it (before getting to the degenerate case) that could be useful. Making it higher though is just going to possibly mean that some arctic regions won't allow leaf onset, so that seems problematic to me. So I don't see the utility in doing testing for this. The only thing I do wonder about is if this parameter will cause problems for paleo or future scenario cases. It seems to me the tuning/testing that might be appropriate here would be to find the smallest value that physiologically makes sense for leaf onset. Or if there is any experimental work out there somewhere that can show that leaf onset can only happen with X number of hours of daylight -- then you might want to set it to that value and test to make sure it seems to work. |
I think @ekluzek 's rationale above makes a lot of sense. My summary takeaway is: If a parameter just exists as a workaround for some relatively infrequent issue, and shouldn't normally have any effect, then putting it on the parameter file can be more misleading and error-prone than helpful. |
Sounds good. Thanks for the explanation @ekluzek . |
This comes from this comment in a previous PR...
#947 (comment)
It refers to this section of code...
The problem is that the description for the reason for the divide by 2 is incorrect, as it allows onset to happen at 5 hours of daylight rather than 10. The description makes it sound like it makes it harder when it's actual function is to make it easier for onset to happen.
The text was updated successfully, but these errors were encountered: