Skip to content
Snippets Groups Projects
Commit 0b3b036b authored by Jacques Grelet's avatar Jacques Grelet
Browse files

correct bug: don't print line if data is _fillValue

parent d024f3ac
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ TEST_PATH = tests
OPTIONS_CTD = data/CTD/cnv/dfr2900?.cnv -i CTD -k PRES ETDD TEMP PSAL DOX2 DENS SVEL FLU2 FLU3 TUR3 NAVG
OPTIONS_XBT = data/XBT/T7_0000*.EDF -i XBT -k DEPTH TEMP SVEL
OPTIONS_LADCP = data/LADCP/*.lad -i LADCP -k DEPTH EWCT NSCT
OPTIONS_BTL = data/CTD/btl/fr290*.btl -i BTL -k PRES DEPTH ETDD TE01 TE02 PSA1 PSA2 DO11 DO12 DO21 DO22 FLU2
OPTIONS_BTL = data/CTD/btl/fr290*.btl -i BTL -k BOTL PRES DEPTH ETDD TE01 TE02 PSA1 PSA2 DO11 DO12 DO21 DO22 FLU2
.PHONY: clean-pyc clean-build lint test run build
......
......@@ -113,8 +113,8 @@ def writeData(dataFile, cfg, device, fe, r):
# for each valid line in array (not _fillvalue)
for m in range(fe.m):
# todo: replace 1e35 by fillValue
if fe[fe.keys[0]][i][m] < 1e35:
# don't print line if data is _fillValue
if fe[fe.keys[0]][i][m] != fe.roscop[fe.keys[0]]['_FillValue']:
fmt = fe.roscop['PROFILE']['format']
f.write(f"{fmt} " % (fe['PROFILE'][i]))
# add value for each parameter, use format from roscop
......
......@@ -46,6 +46,7 @@ def processArgs():
'python oceano.py data/CTD/cnv/dfr29*.cnv -i CTD -d\n'
'python oceano.py data/XBT/T7_0000*.EDF -i XBT -k DEPTH TEMP SVEL\n'
'python oceano.py data/LADCP/*.lad - i LADCP - k DEPTH EWCT NSCT\n'
'python oceano.py data/CTD/btl/fr290*.btl -i BTL -k BOTL PRES DEPTH ETDD TE01 TE02 PSA1 PSA2 DO11 DO12 DO21 DO22 FLU2'
' \n',
epilog='J. Grelet IRD US191 - March 2019 / Feb 2020')
parser.add_argument('-d', '--debug', help='display debug informations',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment