Commit 7729b11b authored by Nick Bearson's avatar Nick Bearson
Browse files

merging in removal of the per-granule time stuff

parent c285dcc3
......@@ -42,7 +42,10 @@ for band in ${BANDS[@]}; do
log "calculating TOA radiance"
sct=$(grep "SCENE_CENTER_TIME =" $MTL)
echo ${sct}
echo ${sct} | cut -d " " -f 7
sct=`echo ${sct} | cut -d " " -f 3` # SCENE_CENTER_TIME = "07:41:14.9761630Z" -> "07:41:14.9761630Z"
sct=${sct//\"/} # "07:41:14.9761630Z" -> 07:41:14.9761630Z
sct=${sct//:/} # 07:41:14.9761630Z -> 074114.9761630Z
sct=${sct:0:6} # 074114.9761630Z -> 074114
vmul=$(grep "RADIANCE_MULT_BAND_${band} =" $MTL | cut -d " " -f 7)
vadd=$(grep "RADIANCE_ADD_BAND_${band} =" $MTL | cut -d " " -f 7)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment