Scripts for ncd time series


tslist -ncd:varname [other tslist-options]


tsf2nc (symlink -> ~marcin/fortran/tsf2nc_binaries/tsf2nc)
We use to store the converted G1-files in ~/TD/N/
cd TD
tsf2nc RAW_o054/G1yymmdd.054 N/G1yymmdd.054.nc

~/TD/ncd2garb
assembles G1_garb_yymmdd-1s.mc files, by default in tmp/
ncd2garb -GO -N ndays yymmdd
with columns GRAV+VAL and BARO+VAL

~/TD/ncd2gb1h
assembles G1_garb_ files and produces one day of 1-h sample
files using ~/TD/deci.tse,SPF1H  (which has not a good filter).
Use is discouraged. Use tsf2ts-1h instead.

~/bin/ncd2ts
converts GWR A1*, A2* or G1* netCDF-files to BIN-ts or BIN-mc
or ASCII-file or -screen.


~/TD/tsf2ts-1h
Collects existent or produces new 1-s files G1_garb_ ,
resamples them to 60s, collects up to 60 of those in one stroke
and finally resamples them to 1h. Uses ~/TD/lpf.tse CASCADE1 and CASCADE 2
tsf2ts-1h -all yymmdd -until yymmdd


make-rb4mc
Completes G1_garb_-files with PRED, RES, and BRES columns
make-rb4mc -GO yymmdd 


A2ncd-spectrograms

APPLICATIONS:
Example ~/TD/collect-all-1h
Task: From the available RAW_o054/G1-files, make a long stretch of 1-h files with gravity and barometer,
and finally collect them in an OPNEND-1h.mc file.
The work horse in the process is tsf2ts-1h . With the standard options, the scripts would re-use existing files
N/G1*.054.nc and tmp/G1_garb_*-1s.mc (made by ncd2garb / tsf2nc )
tmp/G1_gv_*-60s.ts and tmp/G1_bv_*-60s.ts (made by tsex -x lpf.tse,CASCADE1 ymd=$ymd)

collect-all-1h is a source script; user may edit it before invoking, deactivating parts that have succeeded or
selecting parts for scrutiny. Here is the code:
# rm -f tmp/gv-1h.files tmp/bv-1h.files
touch tmp/gv-1h.files tmp/bv-1h.files

# tsf2ts-1h -all 140331 -until 141231
foreach y ( 5 6 7 8 )
  set x=`calc $y -1`
  tsf2ts-1h -all 1${x}1231 -until 1${y}1231
end

exit

rm -f tmp/g090615-OPNEND-1h.mc
tslist-app -I -O:`label GRAV,VAL` tmp/g090615-OPNEND-1h.mc ++ -SO/-774.421 + tmp/E090615-1h.mc `cat tmp/gv-1h.files`
tslist-app -I -O:`label BARO,VAL` tmp/g090615-OPNEND-1h.mc + E090615-1h.mc `cat tmp/bv-1h.files`

exit
The file E090615-1h.mc provides a long zero pad, needed in a special Extended Analysis step (CMEMS, NWShelf).
.
.bye