Skip to content

Commit

Permalink
Updated post processing script to output int 32 values for the time s…
Browse files Browse the repository at this point in the history
…teps, since its hours since x date. And updated the scheduled algoa bay forecast run to be at 6AM SAST to avoid any potential problems with UTC 00:00 time zones. Also, previously work included setting the boundary data job to restart on failure (#12 #13)
  • Loading branch information
zachsa committed Jul 13, 2022
1 parent 17e1b74 commit 884500b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run_algoa-bay-forecast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
required: false
default:
schedule:
- cron: '0 0 * * *' # 0200 SAST
- cron: '0 4 * * *' # 0600 SAST

env:
REGISTRY: ghcr.io
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,18 @@ def transform(options, arguments):
)
print('-> Generated NetCDF dataset', str(datetime.now() - now))

#Print output
data_out.to_netcdf(nc_output_path)
# Print output
data_out.to_netcdf(nc_output_path, encoding = {
'temperature': { },
'salt': { },
'u': { },
'v': { },
'm_rho': { },
'lon_rho': { },
'lat_rho': { },
'depth': { },
'time': { 'dtype': 'i4' }
})

print('-> Output NetCDF data to disk', str(datetime.now() - now))
print('\nComplete! If you don\'t see this message there was a problem')

0 comments on commit 884500b

Please sign in to comment.