This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from wrf import getvar | |
| from netCDF4 import Dataset | |
| import xarray as xr | |
| import pyproj | |
| # Extract the variables of interest at time index 17 | |
| ds = Dataset('../wrfout_d02_2015-07-12_1200.nc') | |
| variables = [getvar(ds, var, 17) for var in ('z', 'dbz', 'pressure', 'ter', 'ua', | |
| 'va', 'wa', 'temp', 'rh')] | |
| data = xr.merge(variables) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from sys import exit, argv | |
| import datetime, zipfile | |
| import requests | |
| def dlhook(r, *args, **kwargs): | |
| print('GET %s'%str(r.url)) | |
| base_url = "http://mesonet.agron.iastate.edu/request/gis/n0r2gtiff.php?dstr=%s" | |
| def fetch(tme): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import xarray as xr | |
| import dask.array as da | |
| from dask.delayed import delayed | |
| import numpy as np | |
| from scipy import stats | |
| # regression function defition | |
| def regression(y): | |
| """apply linear regression function along time axis""" | |
| axis_num = y.get_axis_num('time') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.