Skip to content
Draft
Show file tree
Hide file tree
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
31 changes: 30 additions & 1 deletion e3sm_diags/derivations/acme.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,14 @@ def prect(precc, precl):
return var


def prect_frac(precc, precl):
"""convective precipitation fraction = convective /(convective + large-scale)"""
var = precc / (precc + precl) * 100.0
var.units = "%"
var.long_name = "convective precipitation fraction"
return var


def precst(precc, precl):
"""Total precipitation flux = convective + large-scale"""
var = precc + precl
Expand Down Expand Up @@ -642,6 +650,28 @@ def cosp_histogram_standardize(cld: "FileVariable"):
),
]
),
"PRECC": OrderedDict(
[
(
("PRECC",),
lambda pr: convert_units(rename(pr), target_units="mm/day"),
),
(("prc",), rename),
]
),
"PRECL": OrderedDict(
[
(
("PRECL",),
lambda pr: convert_units(rename(pr), target_units="mm/day"),
),
]
),
"PRECC_Frac": OrderedDict(
[
(("PRECC", "PRECL"), lambda precc, precl: prect_frac(precc, precl)),
]
),
# Sea Surface Temperature: Degrees C
# Temperature of the water, not the air. Ignore land.
"SST": OrderedDict(
Expand Down Expand Up @@ -1546,7 +1576,6 @@ def cosp_histogram_standardize(cld: "FileVariable"):
),
]
),
"PRECC": OrderedDict([(("prc",), rename)]),
"TAUX": OrderedDict(
[
(("tauu",), lambda tauu: -tauu),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,14 +380,24 @@ reference_name = "MERRA2 Reanalysis"
contour_levels = [5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60]
diff_levels = [-12, -9, -6, -4, -3, -2, -1, 1, 2, 3, 4, 6, 9, 12]


[#]
sets = ["annual_cycle_zonal_mean"]
case_id = "MERRA2_Aerosols"
variables = ["AODVIS"]
ref_name = "MERRA2_Aerosols"
reference_name = "MERRA2 Aerosols"
test_colormap = "Oranges"
reference_colormap = "Oranges"
diff_colormap = "BrBG_r"
contour_levels = [0., 0.05, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2]
diff_levels = [-0.5, -0.4, -0.3, -0.2, -0.1, -0.05, -0.02, 0.02, 0.05, 0.1, 0.2, 0.3, 0.4, 0.5]

[#]
sets = ["annual_cycle_zonal_mean"]
case_id = "AOD_550"
case_id = "MACv2"
variables = ["AODVIS"]
ref_name = "AOD_550"
reference_name = "AERONET-composite AOD"
ref_name = "MACv2"
reference_name = "Max-Planck Aerosol climatology (MACv2)"
test_colormap = "Oranges"
reference_colormap = "Oranges"
diff_colormap = "BrBG_r"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sets = ["zonal_mean_xy"]
case_id = "GPCP_v3.2"
variables = ["PRECT"]
ref_name = "GPCP_v3.2"
reference_name = "GPCP v2.2"
reference_name = "GPCP v3.2"
seasons = ["ANN", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "DJF", "MAM", "JJA", "SON"]
regions = ["global"]

Expand Down