Access MRMS datasets from siphon #500
-
I am new to metpy but successfully using it to plot local radar data. Can we access MRMS datasets through siphon in near real time? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
(Moved to newly created Siphon discussions) Absolutely! Here's an example: from datetime import datetime, timedelta
from siphon.catalog import TDSCatalog
cat = TDSCatalog('http://thredds.ucar.edu/thredds/catalog/grib/NCEP/MRMS/BaseRef/catalog.xml')
dataset = cat.datasets['Full Collection Dataset']
ncss = NCSS(dataset.access_urls['NetcdfSubset'])
query = ncss.query().variables('MergedBaseReflectivityQC_altitude_above_msl')
query.time(datetime.utcnow() - timedelta(hours=1))
mrms_ds = ncss.get_data(query) |
Beta Was this translation helpful? Give feedback.
-
You're calling norm, cmap = ctables.registry.get_with_steps('NWSReflectivity', 5, 5)
mesh = ax.pcolormesh(y, x, radar_data, transform=ccrs.PlateCarree(), norm = norm, cmap=cmap, zorder=0) Your original approach was telling it to interpret values like (-80, 35) as coordinates in meters within a Lambert Conformal coordinate system, which is definitely not right. Also, if you're really only interested in a single radar, why not just use straight Level 2 data, and use pyart if you need gridding? |
Beta Was this translation helpful? Give feedback.
(Moved to newly created Siphon discussions)
Absolutely! Here's an example: