@@ -169,7 +169,9 @@ for station in $NODES; do
169
169
anttype=$( $PROGDIR /sitelog2json " $SITELOG " $FID $ymd | jq ' .at' | tr -d ' "' )
170
170
antnum=$( $PROGDIR /sitelog2json " $SITELOG " $FID $ymd | jq ' .an' | tr -d ' "' )
171
171
posxyz=$( $PROGDIR /sitelog2json " $SITELOG " $FID $ymd | jq ' .px' | tr -d ' "' )
172
- alertheader=" $DAYLYMSG sitelog: receiver = '$receiver ' - antenna type = '$anttype ' - antenna s/n = '$antnum ' (will use rinex header if empty)"
172
+ observer=$( $PROGDIR /sitelog2json " $SITELOG " $FID $ymd | jq ' .op' | tr -d ' "' )
173
+ agency=$( $PROGDIR /sitelog2json " $SITELOG " $FID $ymd | jq ' .ag' | tr -d ' "' )
174
+ alertheader=" $DAYLYMSG sitelog: receiver='$receiver ' - antenna type='$anttype ' - antenna s/n='$antnum ' - observer='$observer ' - agency='$agency ' (will use rinex header if empty)"
173
175
else
174
176
echo " $DAYLYMSG - Warning - sitelog : SITELOG is empty in .rc file !!!"
175
177
fi
@@ -178,7 +180,7 @@ for station in $NODES; do
178
180
echo " $DAYLYMSG - Warning - bad site information source "
179
181
esac
180
182
fi
181
- if [[ ! -z " $receiver$anttype$antnum$posxyz " ]]; then
183
+ if [[ ! -z " $receiver$anttype$antnum$posxyz$observer$agency " ]]; then
182
184
echo " $alertheader "
183
185
# transform site imformation in teqc option
184
186
if [ ! -z " $receiver " ]; then
@@ -193,16 +195,22 @@ for station in $NODES; do
193
195
if [ ! -z " $posxyz " ]; then
194
196
posxyz=" -O.px $posxyz "
195
197
fi
198
+ if [ ! -z " $observer " ]; then
199
+ observer=" -O.op $observer "
200
+ fi
201
+ if [ ! -z " $agency " ]; then
202
+ agency=" -O.ag $agency "
203
+ fi
196
204
else
197
205
echo " $DAYLYMSG - Warning - No site information fond in $INFOSRC , Rinex will be generated whithout overwriting headers if empty"
198
206
fi
199
207
200
208
201
209
# makes Rinex daily file from raw data (see raw2rinex script)
202
210
mkdir -p $RINEX
203
- $PROGDIR /raw2rinex " $RAW " $RINEX $TEQCOPTIONS -O.mn \" $FID \" -O.mo \" $FID \" $receiver $anttype $antnum $posxyz
211
+ $PROGDIR /raw2rinex " $RAW " $RINEX $TEQCOPTIONS -O.mn \" $FID \" -O.mo \" $FID \" $receiver $anttype $antnum $posxyz $observer $agency
204
212
if [[ ! -z $VERBOSE || $? != 0 ]]; then
205
- echo " $PROGDIR /raw2rinex \" $RAW \" $RINEX $TEQCOPTIONS -O.mn \" $FID \" -O.mo \" $FID \" $receiver $anttype $antnum $posxyz "
213
+ echo " $PROGDIR /raw2rinex \" $RAW \" $RINEX $TEQCOPTIONS -O.mn \" $FID \" -O.mo \" $FID \" $receiver $anttype $antnum $posxyz $observer $agency "
206
214
fi
207
215
else
208
216
echo " $DAYLYMSG no data to process in $RAW ."
0 commit comments