def get_realtime_flood_dataframe(state): flood_manager = usgs.usgsFloodManager() if check_states(state): realtime_data = flood_manager.getRealTimeWaterWatch(state) return realtime_data print("The state not exist, please enter correct states") return False
def get_river_cam_sc_color(station): flood_manager = usgs.usgsFloodManager() for camera in flood_manager.cameras: if camera.id == station: cams = flood_manager.getImageWaterWatch(station) return cams print("The station is not exist in South Carolina River Cams") return False
def get_flood_data_dataframe(criteria): flood_manager = usgs.usgsFloodManager() df = flood_manager.getFloodData(criteria) return df