-
Notifications
You must be signed in to change notification settings - Fork 81
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
Snow compaction #148
base: develop
Are you sure you want to change the base?
Snow compaction #148
Conversation
Hi Ronnie, a few minor suggestions:
Thanks! |
06c8335
to
dcd874b
Compare
47128ba
to
aaee8fe
Compare
These 4 suggestions have been accepted & incorporated. |
src/ConfigVarType.F90
Outdated
@@ -121,6 +121,10 @@ module ConfigVarType | |||
! 1 -> include phase change of ice (default) | |||
! 2 -> ice treatment more like original Noah | |||
|
|||
integer :: OptSnowCompact ! options for ground snow compaction | |||
! 1 -> original scheme from Anderson (1976) | |||
! 2 -> enhanced scheme from Abolafia-Rosenzweig et al. (2023) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps change (2023) to (2024)
src/Makefile
Outdated
@@ -42,6 +42,7 @@ OBJS = ConstantDefineMod.o \ | |||
SnowLayerDivideMod.o \ | |||
SnowLayerWaterComboMod.o \ | |||
SnowpackCompactionMod.o \ | |||
SnowpackCompactionAR2023Mod.o \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should also include the Dependencies as in the below of this file, e.g. in line 208
SnowpackCompactionMod.o: ../utility/Machine.o NoahmpVarType.o ConstantDefineMod.o
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be 2024 not 2023
src/SnowpackCompactionAR2023Mod.F90
Outdated
@@ -0,0 +1,147 @@ | |||
module SnowpackCompactionARMod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to have a consistent file name and module name, which are consistent with other files naming in Noah-MPv5.0.
e.g., change SnowpackCompactionAR2023Mod.F90 to SnowpackCompactionARMod.F90
src/SnowpackCompactionAR2023Mod.F90
Outdated
|
||
! start snow compaction | ||
SnowBurden = 0.0 | ||
!Added by Ronnie (SnowCompactBurdenFac updated from Abolafia-Rosenzweig et al., 2023) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be 2024
src/SnowWaterMainMod.F90
Outdated
@@ -64,7 +66,9 @@ subroutine SnowWaterMain(noahmp) | |||
! do following snow layer compaction, combination, and division only for multi-layer snowpack | |||
|
|||
! snowpack compaction | |||
if ( NumSnowLayerNeg < 0 ) call SnowpackCompaction(noahmp) | |||
|
|||
if ( NumSnowLayerNeg < 0 .AND. OptSnowCompact == 1) call SnowpackCompaction(noahmp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should not be capitalized, other modules use .and.
src/SnowpackCompactionAR2023Mod.F90
Outdated
!Added by Ronnie (SnowCompactBurdenFac updated from Abolafia-Rosenzweig et al., 2023) | ||
SnowCompactBurdenFac = -0.00069503 * TemperatureAirRefHeight + 0.20606699 | ||
!pressure-based lower constraints: | ||
IF (PressureAirRefHeight>=85000) THEN !high pressure bin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IF, THEN, ENDIF, MAX, MIN, .AND. should not be uppercase; other parts of codes are lowercase
src/SnowpackCompactionAR2023Mod.F90
Outdated
SnowCompactBurdenFac = -0.00069503 * TemperatureAirRefHeight + 0.20606699 | ||
!pressure-based lower constraints: | ||
IF (PressureAirRefHeight>=85000) THEN !high pressure bin | ||
SnowCompactBurdenFac = MAX(SnowCompactBurdenFac,0.017) !this lower bound should never be triggered |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MAX is min in the paper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I misunderstand; the paper is the binning of minimum
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure; if I see figure S4 in the paper, 0.017 is the upper bin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should 0.017 be in the Noah-MP parameter table?
Should this enhancement of SnowCompactBurdenFac to be considered an option in the Noah-MP parameter table or a new physics option in the namelist? One physics, but two options for the SnowCompactBurdenFac parameter (original and enhanced) in the Noah-MP parameter table? Thanks. |
src/SnowpackCompactionAR2023Mod.F90
Outdated
! start snow compaction | ||
SnowBurden = 0.0 | ||
!Added by Ronnie (SnowCompactBurdenFac updated from Abolafia-Rosenzweig et al., 2023) | ||
SnowCompactBurdenFac = -0.00069503 * TemperatureAirRefHeight + 0.20606699 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these two numeric values be in the Noah-MP parameter table?
src/SnowpackCompactionAR2023Mod.F90
Outdated
SnowCompactBurdenFac = MAX(SnowCompactBurdenFac,0.019) !this lower bound should never be triggered | ||
ENDIF | ||
!upper constraint on SnowCompactBurdenFac | ||
SnowCompactBurdenFac = MIN(SnowCompactBurdenFac,0.0315) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should 0.0315 be in the Noah-MP parameter table?
snow_compaction snow_compaction snow_compaction snow_compaction snow_compaction snow_compaction snow_compaction snow_compaction snow_compaction snow_compaction
aaee8fe
to
d411268
Compare
Enables new snow compaction physics option using the enhanced scheme developed by Abolafia-Rosenzweig et al. (2024). This new physics option can be used by defining SNOW_COMPACTION_OPTION=2 in the namelist file.
Abolafia-Rosenzweig, R., He, C., Chen, F., Barlage, M., 2024. Evaluating and Enhancing Snow Compaction Process in the Noah-MP Land Surface Model. J Adv Model Earth Syst 16, e2023MS003869. https://doi.org.10.1029/2023MS003869