Commit fdaf5d8a authored by Carl Schaffer's avatar Carl Schaffer
Browse files

Merge branch 'aomodes_fix' into 'master'

Aomodes fix

Closes #3

See merge request !6
parents 5509440b efa296ee
Pipeline #2378 passed with stage
......@@ -221,9 +221,8 @@ pro gris_split,filebase
; aostate=param_fits(hdr,'AOSTATE =',vartype=0)
pos=strpos(hdr,'AOSTATE')
zpos=where(pos ne -1)
aostate=strtrim(strmid(hdr[zpos],11,19),2)
aostate=strtrim(strmid(hdr[zpos],11,18),2)
; aomodes=param_fits(hdr,'AOMODES =',vartype=0)
pos=strpos(hdr,'AOMODES')
zpos=where(pos ne -1)
aomodes=intarr(n_elements(zpos))
......
......@@ -19,6 +19,7 @@ gris_ifu_videos () {
}
splitter () {
echo splitter $@
# Runner for performing splitting of level 1 files to HINODE style
if [ "$1" = "-r" ]; then
run=$(printf "%03d" $2)
......@@ -30,6 +31,7 @@ splitter () {
runs=`find $abspath/level1/* -regextype posix-extended -regex ".*[cr]+"|awk -F'[-]' '{print $1}' |sort -u |sed 's/[cr]\+$//'`
fi
echo splitting runs $runs
# runs=`find $abspath/level1 -name "*[cr]"|awk -F'[-]' '{print $1}' |sort -u |sed 's/[cr]\+$//'`
for r in $runs ; do echo "gris_split,'$r'"| grisidl; done
......
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