Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jared Rennie
mrms-python
Commits
088e0fac
Commit
088e0fac
authored
Jul 08, 2021
by
Jared Rennie
Browse files
small cleanup
parent
bfc50912
Changes
1
Hide whitespace changes
Inline
Side-by-side
plot_mrms-CONUS.py
View file @
088e0fac
#!/usr/bin/python
# Written by Jared Rennie, NCICS
import
matplotlib
as
mpl
mpl
.
use
(
'Agg'
)
import
matplotlib.pyplot
as
plt
...
...
@@ -44,6 +47,7 @@ maxLon = -73
start
=
time
.
time
()
# Read in Arguments
# DATA SOURCE: https://mrms.ncep.noaa.gov/data/2D/MergedReflectivityQComposite/
if
len
(
sys
.
argv
)
<
2
:
sys
.
exit
(
"USAGE: <INFILE>"
)
file
=
sys
.
argv
[
1
]
...
...
@@ -64,7 +68,6 @@ current_hour= "%02i:%02i" % (current_date.hour,current_date.minute)
# Read in Data
inData
=
xr
.
load_dataset
(
in_directory
+
'/'
+
file
,
engine
=
'cfgrib'
)
sys
.
exit
()
lats
=
inData
.
latitude
.
values
lons
=
inData
.
longitude
.
values
-
360
vals
=
inData
.
unknown
.
values
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment