-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
307 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
# | ||
# MinMon summary plots for gfs | ||
# | ||
# Generate three, 120 cycle (30 day) time series plots: | ||
# - initial gradients | ||
# - final gnorm values | ||
# - min/max gnorm values for final 10 iterations | ||
|
||
|
||
# Data read | ||
# --------- | ||
datasets: | ||
- name: gnorm | ||
type: CsvSpace | ||
filenames: | ||
- ${data_input_path}/csv_space.txt | ||
groups: | ||
- name: GsiIeee | ||
variables: | ||
igrad: 4 | ||
final_gnorm: 5 | ||
min_gnorm: 6 | ||
max_gnorm: 7 | ||
date: | ||
year: 0 | ||
month: 1 | ||
day: 2 | ||
hour: 3 | ||
|
||
graphics: | ||
|
||
plotting_backend: Emcpy | ||
figure_list: | ||
|
||
# Gnorm single cycle & 7 day hourly mean | ||
# -------------------------------------- | ||
- figure: | ||
layout: [3,1] | ||
figure size: [20,18] | ||
tight layout: | ||
title: "Valid: 2023062006" | ||
output name: line_plots/minimization/gfs_gdas.summary.gnorms.png | ||
plot logo: | ||
which: 'noaa/nws' | ||
loc: 'upper left' | ||
subplot_orientation: 'first' | ||
|
||
plots: | ||
- add_xlabel: 'Cycle Time' | ||
add_ylabel: 'Initial Gradient' | ||
add_grid: | ||
axis: 'both' | ||
linestyle: 'dotted' | ||
linewidth: 0.5 | ||
color: 'black' | ||
add_legend: | ||
loc: 'upper right' | ||
layers: | ||
- type: LinePlot | ||
x: | ||
variable: gnorm::GsiIeee::datetime | ||
y: | ||
variable: gnorm::GsiIeee::igrad | ||
color: 'blue' | ||
label: 'Initial Gradient' | ||
|
||
- add_xlabel: 'Cycle Time' | ||
add_ylabel: 'Final Gnorm' | ||
set_yscale: 'log' | ||
add_grid: | ||
axis: 'both' | ||
linestyle: 'dotted' | ||
linewidth: 0.5 | ||
color: 'black' | ||
add_legend: | ||
loc: 'upper right' | ||
layers: | ||
- type: LinePlot | ||
x: | ||
variable: gnorm::GsiIeee::datetime | ||
y: | ||
variable: gnorm::GsiIeee::final_gnorm | ||
color: 'blue' | ||
label: 'Final Gnorm' | ||
|
||
- add_xlabel: 'Cycle Time' | ||
add_ylabel: 'Min/Max Gnorm, final 10 iterations' | ||
set_yscale: 'log' | ||
add_grid: | ||
axis: 'both' | ||
linestyle: 'dotted' | ||
linewidth: 0.5 | ||
color: 'black' | ||
add_legend: | ||
loc: 'upper right' | ||
layers: | ||
- type: LinePlot | ||
x: | ||
variable: gnorm::GsiIeee::datetime | ||
y: | ||
variable: gnorm::GsiIeee::min_gnorm | ||
color: 'blue' | ||
label: 'Minimum Gnorm' | ||
- type: LinePlot | ||
x: | ||
variable: gnorm::GsiIeee::datetime | ||
y: | ||
variable: gnorm::GsiIeee::max_gnorm | ||
color: 'red' | ||
label: 'Maximum Gnorm' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
datasets: | ||
- name: experiment | ||
type: MonDataSpace | ||
satellite: metop-a | ||
sensor: hirs4 | ||
control_file: | ||
- ${data_input_path}/time.hirs4_metop-a.ctl | ||
filenames: | ||
- ${data_input_path}/time.hirs4_metop-a.2015051418.ieee_d | ||
- ${data_input_path}/time.hirs4_metop-a.2015051500.ieee_d | ||
- ${data_input_path}/time.hirs4_metop-a.2015051506.ieee_d | ||
- ${data_input_path}/time.hirs4_metop-a.2015051512.ieee_d | ||
- ${data_input_path}/time.hirs4_metop-a.2015051518.ieee_d | ||
|
||
channels: &channels 1 | ||
regions: ®ions 1 | ||
groups: | ||
- name: GsiIeee | ||
variables: &variables [count, cycle] | ||
|
||
graphics: | ||
|
||
plotting_backend: Emcpy | ||
figure_list: | ||
|
||
# Time series plots | ||
# --------------- | ||
- figure: | ||
layout: [1,1] | ||
figure size: [12,10] | ||
title: 'hirs4_metop-a | Channel 1 | Obs Count' | ||
output name: lineplots/hirs4_metop-a/hirs4_metop-a.0.count.png | ||
plot logo: | ||
which: 'noaa/nws' | ||
loc: 'upper right' | ||
plots: | ||
- add_xlabel: 'Cycle Time' | ||
add_ylabel: 'Observation Count' | ||
layers: | ||
- type: LinePlot | ||
x: | ||
variable: experiment::GsiIeee::cycle | ||
y: | ||
variable: experiment::GsiIeee::count | ||
color: 'black' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
# Test Monitor Summary plot performs the following: | ||
# 1. Load binary monitor data for 5 cycles | ||
# 2. Select obs counts from last 4 cycles | ||
# 3. Select total bias correction for 1 cycle and average of last 4 | ||
# 4. Plot obs counts for the 4 cycles (panel 1). | ||
# 5. Plot bias correction for 1 cycle and average of 4 (panel 2). | ||
|
||
datasets: | ||
- name: experiment | ||
type: MonDataSpace | ||
satellite: metop-a | ||
sensor: hirs4 | ||
control_file: | ||
- ${data_input_path}/time.hirs4_metop-a.ctl | ||
filenames: | ||
- ${data_input_path}/time.hirs4_metop-a.2015051418.ieee_d | ||
- ${data_input_path}/time.hirs4_metop-a.2015051500.ieee_d | ||
- ${data_input_path}/time.hirs4_metop-a.2015051506.ieee_d | ||
- ${data_input_path}/time.hirs4_metop-a.2015051512.ieee_d | ||
- ${data_input_path}/time.hirs4_metop-a.2015051518.ieee_d | ||
|
||
channels: &channels 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19 | ||
regions: ®ions 1 | ||
groups: | ||
- name: GsiIeee | ||
variables: ['count', 'cycle', 'total', 'channel'] | ||
|
||
transforms: | ||
- transform: select time | ||
new name: experiment::GsiIeee::count1 | ||
starting field: experiment::GsiIeee::count | ||
cycle: 2015051418 | ||
for: | ||
variable: [none] | ||
|
||
- transform: select time | ||
new name: experiment::GsiIeee::count2 | ||
starting field: experiment::GsiIeee::count | ||
cycle: 2015051500 | ||
for: | ||
variable: [none] | ||
|
||
- transform: select time | ||
new name: experiment::GsiIeee::count3 | ||
starting field: experiment::GsiIeee::count | ||
cycle: 2015051506 | ||
for: | ||
variable: [none] | ||
|
||
- transform: select time | ||
new name: experiment::GsiIeee::count4 | ||
starting field: experiment::GsiIeee::count | ||
cycle: 2015051512 | ||
for: | ||
variable: [none] | ||
|
||
# Note that total is the total bias correction for a given | ||
# channel/region. To find the average divide total by count. | ||
- transform: arithmetic | ||
new name: experiment::GsiIeee::total_avg | ||
equals: experiment::GsiIeee::total/experiment::GsiIeee::count | ||
for: | ||
variable: [none] | ||
|
||
# Single cycle total bias correction | ||
- transform: select time | ||
new name: experiment::GsiIeee::total_1cyc | ||
starting field: experiment::GsiIeee::total_avg | ||
cycle: 2015051512 | ||
for: | ||
variable: [none] | ||
|
||
# 4 cycle total bias correction using time slice | ||
- transform: select time | ||
new name: experiment::GsiIeee::total_4cyc | ||
starting field: experiment::GsiIeee::total_avg | ||
start cycle: 2015051418 | ||
end cycle: 2015051512 | ||
for: | ||
variable: [none] | ||
|
||
|
||
graphics: | ||
|
||
plotting_backend: Emcpy | ||
figure_list: | ||
|
||
# Summary plots | ||
# --------------- | ||
- figure: | ||
layout: [2,1] | ||
figure size: [12,10] | ||
tight layout: | ||
pad: 5 | ||
title: 'hirs4_metop-a | Number of Obs Count' | ||
output name: lineplots/hirs4_metop-a/summary.hirs4_metop-a.png | ||
|
||
plots: | ||
- add_xlabel: 'Channel' | ||
add_ylabel: 'Observation Count' | ||
add_legend: | ||
loc: 'upper right' | ||
layers: | ||
- type: LinePlot | ||
x: | ||
variable: experiment::GsiIeee::channel | ||
y: | ||
variable: experiment::GsiIeee::count1 | ||
color: 'blue' | ||
label: '2015051418' | ||
- type: LinePlot | ||
x: | ||
variable: experiment::GsiIeee::channel | ||
y: | ||
variable: experiment::GsiIeee::count2 | ||
color: 'green' | ||
label: '2015051500' | ||
- type: LinePlot | ||
x: | ||
variable: experiment::GsiIeee::channel | ||
y: | ||
variable: experiment::GsiIeee::count3 | ||
color: 'yellow' | ||
label: '2015051506' | ||
- type: LinePlot | ||
x: | ||
variable: experiment::GsiIeee::channel | ||
y: | ||
variable: experiment::GsiIeee::count4 | ||
color: 'red' | ||
label: '2015051512' | ||
|
||
- add_xlabel: 'Channel' | ||
add_ylabel: 'Total Bias Correction (K)' | ||
add_legend: | ||
loc: 'upper right' | ||
layers: | ||
- type: LinePlot | ||
x: | ||
variable: experiment::GsiIeee::channel | ||
y: | ||
variable: experiment::GsiIeee::total_1cyc | ||
color: 'blue' | ||
label: '2015051512' | ||
|
||
- type: LinePlot | ||
x: | ||
variable: experiment::GsiIeee::channel | ||
y: | ||
variable: experiment::GsiIeee::total_4cyc | ||
color: 'red' | ||
label: 'Avg last 4 cycles' |