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

[python #MGE-654298]: Siphon RadarServer connectivity issues



Greetings!

Apologies for the delayed response, as I've been out of the office.

Thanks for reaching out! Our team will take a look at reboot the server as 
necessary.

In the meanwhile, you might consider using the Python boto3 library to download 
the data directly from S3:

    from datetime import datetime

    import boto3
    import botocore
    from botocore.client import Config
    from metpy.io import Level2File

    s3 = boto3.resource('s3', config=Config(signature_version=botocore.UNSIGNED,
                                            user_agent_extra='Resource'))
    bucket = s3.Bucket('noaa-nexrad-level2')
    d = datetime(2020, 5, 3, 23)
    station = 'KTLX'

    prefix = f'{d:%Y}/{d:%m}/{d:%d}/{station}/{station}{d:%Y%m%d_%H}'
    for obj in bucket.objects.filter(Prefix=prefix):
        print(obj.key)
        break

    f = Level2File(obj.get()['Body'])

Cheers!

Ryan

> Dear Unidata,
> 
> My colleague and I are having some problems with using the Siphon
> RadarServer Python class using the url:
> http://tds-nexrad.scigw.unidata.ucar.edu/thredds/radarServer/nexrad/level2/S3/.
> We were able to successfully retrieve NEXRAD Level II radar data yesterday
> but we're now running into a connection issue with the server.  It seems
> like the server might be down and might need to be rebooted. Is this
> correct? We also have tried visiting the page and it is apparently down.
> 
> Sincerely,


Ticket Details
===================
Ticket ID: MGE-654298
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.