-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged with conflict fix from ICOGS3D_new
- Loading branch information
Showing
12 changed files
with
2,103 additions
and
1,649 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ forecast | |
hgrid.* | ||
fgrid.* | ||
vgrid.* | ||
.idea |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from datetime import datetime | ||
|
||
from pyschism.mesh.hgrid import Hgrid | ||
from pyschism.forcing.hydrology.nwmhindcast import NationalWaterModel | ||
|
||
startdate=datetime(2018,7,3) | ||
rnday=10 | ||
|
||
hgrid=Hgrid.open('hgrid.gr3', crs='EPSG:4326') | ||
|
||
nwm=NationalWaterModel() | ||
nwm.fetch_data(hgrid, startdate, rnday) | ||
nwm.write('./', overwrite=True) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from datetime import datetime | ||
from time import time | ||
import pathlib | ||
|
||
from pyschism.forcing.atmosphere.era5 import ERA5 | ||
|
||
from pyschism.mesh.hgrid import Hgrid | ||
|
||
startdate=datetime(2018,7,1) | ||
|
||
t0=time() | ||
hgrid=Hgrid.open('hgrid.gr3',crs='EPSG:4326') | ||
bbox = hgrid.get_bbox('EPSG:4326', output_type='bbox') | ||
|
||
er=ERA5() | ||
outdir = pathlib.Path('./ERA5') | ||
er.gen_sflux(startdate, rnday=10, bbox=bbox, outdir=outdir) | ||
print(f'It took {(time()-t0)/60} minutes to generate 10 days') |
This file contains 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
Oops, something went wrong.