Skip to content

Access MRMS datasets from siphon #500

Answered by dopplershift
raysweather asked this question in Q&A
Discussion options

You must be logged in to vote

(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)

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@raysweather
Comment options

@raysweather
Comment options

Answer selected by dopplershift
Comment options

You must be logged in to vote
2 replies
@raysweather
Comment options

@dopplershift
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants