Skip to content

Commit

Permalink
SatelliteID(name) included in output file from sat/model collocation …
Browse files Browse the repository at this point in the history
…(modelSat_collocation.py). Small fix in wread.py (spec_ww3) to make it possible to read and load data with time skips, to allow smaller arrays and faster processing.

* ensure lat array, for the loop, is ok while dowloading AODN data in the Southern Hemisphere.

* SENTINEL-3B included. Longitude standard checked

* fixed long issues

* header text improved

* SatelliteID(name) included in output file from sat/model collocation (modelSat_collocation.py). Small fix in wread.py (spec_ww3) to make it possible to read and load data with time skips, to allow smaller arrays and faster processing.
  • Loading branch information
ricampos authored Sep 15, 2022
1 parent bb34b73 commit 2e42218
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion postproc/wread.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def spec_ww3(*args):
Input: file name (example: ww3gefs.20160928_spec.nc), and station name (example: 41002)
Output: Values: time(datetime64),time(seconds since 1970),lat,lon; Arrays: freq,dfreq,pwst,d1sp,dire,dspec,wnds,wndd
'''

sk=1
if len(args) < 2 :
sys.exit(' Two inputs are required: file name and station name')
if len(args) >= 2 :
Expand Down
4 changes: 2 additions & 2 deletions validation/modelBuoy_collocation.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
output netcdf file.
Example (from linux terminal command line):
multiple forecast data files:
nohup python3 modelBuoy_collocation.py ww3list.gfs-d36.GSE1.5.txt 2 gridInfo.nc CycloneMap_2021.nc >> nohup_modelBuoy_collocation.out 2>&1 &
nohup python3 modelBuoy_collocation.py ww3list_gfs-d36.GSE1.5.txt 2 gridInfo.nc CycloneMap_2021.nc >> nohup_modelBuoy_collocation.out 2>&1 &
multiple hindcast data files:
nohup python3 modelBuoy_collocation.py ww3list.gfs-d36.GSE1.5.txt 0 gridInfo.nc CycloneMap_2021.nc >> nohup_modelBuoy_collocation.out 2>&1 &
nohup python3 modelBuoy_collocation.py ww3list_gfs-d36.GSE1.5.txt 0 gridInfo.nc CycloneMap_2021.nc >> nohup_modelBuoy_collocation.out 2>&1 &
OUTPUT:
netcdf file WW3.Buoy*.nc containing matchups of buoy and ww3 data,
Expand Down
2 changes: 1 addition & 1 deletion validation/modelSat_collocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@
vdistcoast[:] = fdistcoast[:]; vdepth[:] = fdepth[:]
voni[:] = foni[:]; vocnames[:] = ocnames[:]
vhsmz[:] = fhsmz[:]; vhsmznames[:] = hsmznames[:]
vcmap[:] = fcmap[:]; vcinfo[:] = cinfo[:]
vcmap[:] = fcmap[:]; vcinfo[:] = cinfo[:]; vsid[:] = fsid[:]
vwhs[:] = fwhs[:]; vshs[:] = fshs[:]
vwwnd[:] = fwwnd[:]; vswnd[:] = fswnd[:]
#
Expand Down

0 comments on commit 2e42218

Please sign in to comment.