This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Greetings! Looks like that code wasn't updated for needed changes when we switched over to TDS v5 on our production servers. To make that script work, you can change "Full Collection Dataset" to "Best Real Time Mesoscale Analysis 2.5 km Time Series". Thanks for letting us know! Cheers! Ryan > Hi Ryan, > > I was just running through the Jupyter notebooks of the figures in your > recent BAMS paper on MetPy and have encountered a problem with Fig. 2. > > For this block: > > rtma_cat = TDSCatalog( > " > https://thredds.ucar.edu/thredds/catalog/grib/NCEP/RTMA/CONUS_2p5km/catalog.xml > " > ) > rtma_data = rtma_cat.datasets["Full Collection > Dataset"].remote_access(use_xarray=True) > rtma_data = rtma_data.metpy.parse_cf().squeeze() > > I am getting this error: > > --------------------------------------------------------------------------- > KeyError Traceback (most recent call last) > Cell In[7], line 4 > 1 rtma_cat = TDSCatalog( > 2 " > https://thredds.ucar.edu/thredds/catalog/grib/NCEP/RTMA/CONUS_2p5km/catalog.xml > " > 3 ) > ----> 4 rtma_data = rtma_cat.datasets["Full Collection > Dataset"].remote_access(use_xarray=True) > 5 rtma_data = rtma_data.metpy.parse_cf().squeeze() > > File > ~\anaconda3\envs\bams-manuscript\lib\site-packages\siphon\catalog.py:36, in > IndexableMapping.__getitem__(self, item) > 34 try: > 35 item + '' # Raises if item not a string > ---> 36 return super(IndexableMapping, self).__getitem__(item) > 37 except TypeError: > 38 return list(self.values())[item] > > KeyError: 'Full Collection Dataset' > > Have you seen this before? Ticket Details =================== Ticket ID: HIM-462948 Department: Support Python Priority: Low Status: Closed =================== NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.