-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplot_wrf_webfigs_nml.py
More file actions
executable file
·35 lines (27 loc) · 1.3 KB
/
plot_wrf_webfigs_nml.py
File metadata and controls
executable file
·35 lines (27 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env python
"""
Author: Lori Garzio on 8/17/2020
Last modified: 8/24/2020
This is a wrapper script that imports tools to plot RU-WRF 4.1 data using the subset native model level .nc files.
Plots created: Cloud Cover. The plots are used to populate RUCOOL's RU-WRF webpage:
https://rucool.marine.rutgers.edu/data/meteorological-modeling/ruwrf-mesoscale-meteorological-model-forecast/
"""
import argparse
import sys
import wrf_webfigs
arg_parser = argparse.ArgumentParser(description='Plot RU-WRF figs',
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
arg_parser.add_argument('-wrf_dir',
dest='wrf_dir',
default='/home/coolgroup/ru-wrf/real-time/v4.1_parallel/processed/modlevs/3km/20200101',
type=str,
help='Full directory path to subset WRF netCDF files.')
arg_parser.add_argument('-save_dir',
dest='save_dir',
default='/home/coolgroup/ru-wrf/real-time/v4.1_parallel/scripts/webfigs/3km',
type=str,
help='Full directory path to save output plots.')
parsed_args = arg_parser.parse_args()
print('Plotting cloud cover')
wrf_webfigs.plot_cloudfrac.main(parsed_args)
sys.exit()