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

Modified surface_ice.py to change near_infrared surface albedo as wel… #122

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions climt/_components/surface_ice.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,14 @@ class IceSheet(Stepper):
'dims': ['*'],
'units': 'dimensionless'
},
'surface_albedo_for_direct_near_infrared': {
'dims': ['*'],
'units': 'dimensionless'
},
'surface_albedo_for_diffuse_near_infrared': {
'dims': ['*'],
'units': 'dimensionless'
},
}

def __init__(self, maximum_snow_ice_height=10, **kwargs):
Expand Down Expand Up @@ -330,16 +338,24 @@ def array_call(self, raw_state, timestep):
if outputs['surface_snow_thickness'][col] > 0:
diagnostics['surface_albedo_for_direct_shortwave'][col] = 0.8
diagnostics['surface_albedo_for_diffuse_shortwave'][col] = 0.8
diagnostics['surface_albedo_for_direct_near_infrared'][col] = 0.8
diagnostics['surface_albedo_for_diffuse_near_infrared'][col] = 0.8
elif area_type == 'sea_ice' and outputs['sea_ice_thickness'][col] > 0:
diagnostics['surface_albedo_for_direct_shortwave'][col] = 0.5
diagnostics['surface_albedo_for_diffuse_shortwave'][col] = 0.5
diagnostics['surface_albedo_for_direct_near_infrared'][col] = 0.5
diagnostics['surface_albedo_for_diffuse_near_infrared'][col] = 0.5
elif area_type == 'sea_ice' and outputs['sea_ice_thickness'][col] > 0:
diagnostics['surface_albedo_for_direct_shortwave'][col] = 0.5
diagnostics['surface_albedo_for_diffuse_shortwave'][col] = 0.5
diagnostics['surface_albedo_for_direct_near_infrared'][col] = 0.5
diagnostics['surface_albedo_for_diffuse_near_infrared'][col] = 0.5

if height_of_melting_ice > 0:
diagnostics['surface_albedo_for_direct_shortwave'][col] = 0.2
diagnostics['surface_albedo_for_diffuse_shortwave'][col] = 0.2
diagnostics['surface_albedo_for_direct_near_infrared'][col] = 0.2
diagnostics['surface_albedo_for_diffuse_near_infrared'][col] = 0.2

return diagnostics, outputs

Expand Down