Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
username, password)
print (df_grid.head())
except Exception as e:
print("Failed, the exception is {}".format(e))
print("\nunpivoted grid:")
try:
df_grid_unpivoted = api.query_grid_unpivoted(valid_dates_unpiv, parameters_grid_unpiv, lat_N, lon_W, lat_S,
lon_E, res_lat, res_lon, username, password)
print (df_grid_unpivoted.head())
except Exception as e:
print("Failed, the exception is {}".format(e))
print("\ngrid timeseries:")
try:
df_grid_timeseries = api.query_grid_timeseries(startdate_ts, enddate_ts, interval_ts, parameters_ts, lat_N,
lon_W, lat_S, lon_E, res_lat, res_lon, username, password)
print (df_grid_timeseries.head())
except Exception as e:
print("Failed, the exception is {}".format(e))
print("\ngrid as a png:")
try:
api.query_grid_png(filename_png, startdate_png, parameter_png, lat_N, lon_W, lat_S, lon_E, res_lat, res_lon,
username, password)
print("filename = {}".format(filename_png))
except Exception as e:
print("Failed, the exception is {}".format(e))
else:
print("""
Your account '{}' does not include area requests.