You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
printf"${spt_nm}: ERROR Failed to grab first timestamp from \"frametime(0) in \"${jsn_out}\""
653
655
exit 1
@@ -676,10 +678,17 @@ for ((fl_idx=0;fl_idx<${fl_nbr};fl_idx++)); do
676
678
ncks -A "${drc_spt}/theblob.nc""${att_out}"
677
679
[ "$?"-ne 0 ] &&echo"$0: problem copying theblob\n"&&exit 1
678
680
679
-
# for now the target is hard coded to 48%
680
-
ncap2 -A -v -s "*zd=${zn} ;*trg=48; *expr=${xps_tm};" -S "${drc_spt}/cst_cnv_trg_mk.nco""${drc_spt}/cst_cnv_trg.nc""${att_out}"
681
-
[ "$?"-ne 0 ] &&echo"$0: problem getting cst_cnv_trg from nc file \n"&&exit 1
682
-
681
+
682
+
if [ "$sun_flg"="Yes" ];then
683
+
# use the pm targets - these are in bright sunlight - target fixed at 48 %
684
+
ncap2 -A -v -s "*zd=${zn} ;*trg=48; *expr=${xps_tm};" -S "${drc_spt}/cst_cnv_trg_mk.nco""${drc_spt}/cst_cnv_trg2_pm.nc""${att_out}"
685
+
[ "$?"-ne 0 ] &&echo"$0: problem getting cst_cnv_trg from nc file \n"&&exit 1
686
+
else
687
+
# use the am targets - these are in in the shade of the gantry
688
+
ncap2 -A -v -s "*zd=${zn} ;*trg=48; *expr=${xps_tm};" -S "${drc_spt}/cst_cnv_trg_mk.nco""${drc_spt}/cst_cnv_trg2_am.nc""${att_out}"
689
+
[ "$?"-ne 0 ] &&echo"$0: problem getting cst_cnv_trg from nc file \n"&&exit 1
690
+
fi
691
+
683
692
# copy flx_spc_dwn from environmental logger
684
693
ncks -A -C -v flx_spc_dwn -d time,"$timestamp_for_ncks""$envlog_fl""${att_out}"
685
694
[ "$?"-ne 0 ] &&echo"$0: problem extracting env-log from $envlog_fl \n"&&exit 1
@@ -831,7 +840,7 @@ for ((fl_idx=0;fl_idx<${fl_nbr};fl_idx++)); do
831
840
echo"WARNING addition of the var \"SoilRemovalMask\" from the file \"${msk_fl}\" failed. Possibly the dims x, y in this file dont match the data dims. x=${xdm_nbr}, y=${ydm_nbr}"
0 commit comments