Skip to content

Commit

Permalink
write sflux_inputs.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
cuill committed Jun 28, 2022
1 parent 34c0e5f commit def1f09
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyschism/forcing/nws/nws2/era5.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ def write(
np.timedelta64(1, 'D'),
dtype='datetime64')}

#write sflux_inputs.txt
with open(f'{outdir}/sflux_inputs.txt', 'w') as f:
f.write('&sflux_inputs\n/\n')

logger.info('Start downloading ERA5')
self.inventory = ERA5DataInventory(
self.start_date,
Expand All @@ -302,3 +306,4 @@ def write(

for iday, date in enumerate(dates):
put_sflux_fields(iday, date, times, ds, nx_grid, ny_grid, air=air, rad=rad, prc=prc, output_interval=output_interval, OUTDIR=outdir)

0 comments on commit def1f09

Please sign in to comment.