def get_all_stations(r_a): """ DOCSTRING """ #Show all stations in catalog for station in gcoos_get_all_stations(r_a): print station
def get_all_sensors(r_a): """ DOCSTRING """ #Get all sensor descriptions as GeoJSON features #simple text output for station in gcoos_get_all_stations(r_a): print "Fetching data for %s..." % station print gcoos_describe_sensor(r_a, station)
def get_all_sensors_fc(r_a): """ DOCSTRING """ #Get all sensor descriptions as GeoJSON features #and make into GeoJSON feature collection that can #be dropped into Leaflet map the_collection = [] for station in gcoos_get_all_stations(r_a): the_collection.append(gcoos_describe_sensor(r_a, station)) the_fc = FeatureCollection(the_collection) print the_fc
def get_station_total(r_a): """ DOCSTRING """ #Total stations in catalog print "Total stations: %d" % len(gcoos_get_all_stations(r_a))