[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[python #HIM-462948]: Figure 2 of your BAMS paper



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.