Skip to content

Commit 3c0c57f

Browse files
Add radHist template and driver script.
1 parent 92520fa commit 3c0c57f

File tree

2 files changed

+99
-0
lines changed

2 files changed

+99
-0
lines changed

parm/gfs/test_hist.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# DA Monitoring source dictionary
2+
3+
# This is a simple script to create a radiance plot using the radHist
4+
# (histogram) plot template.
5+
#
6+
# It is intended as a proof of concept and isn't an actual part of the
7+
# legacy RadMon.
8+
#
9+
10+
model: gfs
11+
cycle_interval: 6
12+
13+
# obs-mon hera
14+
data: '/scratch1/NCEPDEV/da/Edward.Safford/noscrub/test_data/gfs'
15+
16+
satellites:
17+
18+
- name: g18
19+
instruments:
20+
- name: abi
21+
plot_list:
22+
- plot: rad hist
23+
times: 1
24+
channels: 'all'
25+
component: ges
26+
run: gdas

parm/templates/radHist.yaml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
#
2+
# Generate a histogram plot of omgnbc using legacy RadMon
3+
# scan angle data for the specified cycle.
4+
#
5+
# This is plot template intended as a proof of concept and isn't
6+
# a part of the legacy RadMon plots. The legacy ConMon makes
7+
# histogram # plots but the process of doing so is very cumbersome
8+
# and won't be made part of the obs-monitor package. Instead
9+
# histograms will be employed when conventional data from JEDI
10+
# is made available. Until then the legacy histogram plots will
11+
# be made with the legacy GSI-monitor components. Once JEDI data
12+
# becomes availble this plot template can be adapted to make the
13+
# desired histograms with conventional (or any other) data.
14+
#
15+
16+
17+
# Data read
18+
#-----------
19+
20+
datasets:
21+
- name: angle
22+
satellite: {{SAT}}
23+
sensor: {{SENSOR}}
24+
type: MonDataSpace
25+
control_file:
26+
- {{DATA}}/angle.{{SENSOR}}_{{SAT}}.ctl
27+
filenames:
28+
- {{ DATA }}/angle.{{ SENSOR }}_{{ SAT }}.{{ PDATE | to_YMDH }}.ieee_d
29+
30+
channels: {{CHANNELS}}
31+
regions: &regions 1
32+
groups:
33+
- name: GsiIeee
34+
variables: &variables ['omgnbc']
35+
36+
graphics:
37+
38+
plotting_backend: Emcpy
39+
figure_list:
40+
41+
# Obs count plots
42+
# ---------------
43+
- batch figure:
44+
channels: {{CHANNELS}}
45+
variables: ['omgbc']
46+
sensor: {{SENSOR}}
47+
48+
figure:
49+
layout: [1,1]
50+
figure size: [20,18]
51+
title: "${variable}, {{SENSOR}}_{{SAT}} channel ${channel} \n Valid: {{ PDATE | to_YMDH }}"
52+
output name: hist_plots/rad/hist/hist.{{SENSOR}}_{{SAT}}.${channel}.${variable}.png
53+
plot logo:
54+
which: 'noaa/nws'
55+
loc: 'upper right'
56+
57+
58+
plots:
59+
- add_xlabel: 'omgbc'
60+
statistics:
61+
fields:
62+
- field_name: angle::GsiIeee::omgbc
63+
channel: ${channel}
64+
statistics_variables:
65+
- n
66+
layers:
67+
- type: Histogram
68+
data:
69+
variable: angle::GsiIeee::omgbc
70+
channel: ${channel}
71+
color: 'blue'
72+
bins: 100
73+
alpha: 0.5

0 commit comments

Comments
 (0)