Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Please check http://shop.meteomatics.com or contact us at shop@meteomatics.com for an individual offer.
""".format(username)
)
if limits['model select option']:
print("\nnetCDF file:")
try:
api.query_netcdf(filename_nc, startdate_nc, enddate_nc, interval_nc, parameter_nc, lat_N, lon_W, lat_S,
lon_E,
res_lat, res_lon, username, password)
print("filename = {}".format(filename_nc))
except Exception as e:
print("Failed, the exception is {}".format(e))
print("\nGrads plot:")
try:
api.query_grads(filename_grads, startdate_grads, parameters_grads, lat_N, lon_W, lat_S, lon_E, res_lat,
res_lon,
username, password, model_grads, area=area_grads)
print("filename = {}".format(filename_grads))
except Exception as e:
print("Failed, the exception is {}".format(e))
print("\ngrads timeseries:")
try:
api.query_grads_timeseries(prefixpath_grads_ts, startdate_grads_ts, enddate_grads_ts, interval_grads_ts,
parameters_grads_ts, lat_N, lon_W, lat_S, lon_E, res_lat, res_lon, username,
password, model=model_grads_ts, area=area_grads_ts)
print("prefix = {}".format(prefixpath_grads_ts))
except Exception as e:
print("Failed, the exception is {}".format(e))
print("\nfind stations:")