Пример #1
0
    else:
        # Use the generic IOOS SWE collector
        try:
            collector = IoosSweSos(sos)
        except BaseException as e:
            print "[-]  Could not process {!s}.  Reason: {!s}".format(sos, e)
            continue
            
        for v in variables_to_query:
            collector.filter(variables=[v])
            collector.filter(bbox=bounding_box)
            collector.filter(start=start_date)
            collector.filter(end=end_date)
            collector.filter(variables=[v])
            try:
                data = collector.collect()
                print data
            except BaseException as e:
                print "[-]  Could not process {!s}.  Reason: {!s}".format(sos, e)
                continue
    

# <markdowncell>

# <div class="success" style="text-align: center"><strong>NOTE</strong><br />We are only plotting the first variable retrieved back from the SOS server.  The following graphs could be in a loop.</div>

# <codecell>

pd.set_option('display.max_rows', 10)

# <markdowncell>