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

[python #WBO-382798]: Siphon and Unidata GOES-16 GRB data



Greg,

No worries! I'm glad you were able to find the problem on your own. Here's the 
more idiomatic way to solve it in Python:

    ds = cat.datasets[:]
    for element in ds:
        element.download(element.name)

Ryan

> Ryan,
> Sorry  again - I see that I missed incrementing the loop index -
> my apologies. As I said I'm pretty new to python
> 
> Greg
> 
> On Fri, Apr 20, 2018 at 1:07 PM, Greg Stossmeister <address@hidden> wrote:
> > Ryan,
> >     I'm still having trouble. Here's the latest revised script:
> >
> > #!/opt/local_el6_64/anaconda5/envs/py35/bin/python
> >
> > from datetime import datetime
> > from siphon.catalog import TDSCatalog
> >
> > cat = 
> > TDSCatalog('http://thredds-test.unidata.ucar.edu/thredds/catalog/satellite/goes16/GRB16/ABI/CONUS/Channel02/20180414/catalog.xml')
> >
> > ds = cat.datasets[:]
> >
> > index=0
> > while index < len(ds):
> >    element = ds[index]
> >    element.download(element.name)
> >
> > The script pulls 1 file and then seems to hang. What am I doing wrong?


Ticket Details
===================
Ticket ID: WBO-382798
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.