From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- vendor/voclient/testscripts/help.sh | 37 +++++++++++++++++++++++++++ vendor/voclient/testscripts/readme.txt | 11 ++++++++ vendor/voclient/testscripts/test.sh | 28 +++++++++++++++++++++ vendor/voclient/testscripts/voatlas.sh | 18 +++++++++++++ vendor/voclient/testscripts/vocatalog.sh | 13 ++++++++++ vendor/voclient/testscripts/vodata.sh | 13 ++++++++++ vendor/voclient/testscripts/voimage.sh | 2 ++ vendor/voclient/testscripts/voiminfo.sh | 42 +++++++++++++++++++++++++++++++ vendor/voclient/testscripts/voregistry.sh | 21 ++++++++++++++++ vendor/voclient/testscripts/vosamp.sh | 30 ++++++++++++++++++++++ vendor/voclient/testscripts/vosesame.sh | 36 ++++++++++++++++++++++++++ vendor/voclient/testscripts/votcnv.sh | 37 +++++++++++++++++++++++++++ vendor/voclient/testscripts/votget.sh | 31 +++++++++++++++++++++++ vendor/voclient/testscripts/votinfo.sh | 39 ++++++++++++++++++++++++++++ vendor/voclient/testscripts/votopic.sh | 9 +++++++ vendor/voclient/testscripts/votpos.sh | 22 ++++++++++++++++ vendor/voclient/testscripts/votsort.sh | 31 +++++++++++++++++++++++ vendor/voclient/testscripts/votstat.sh | 25 ++++++++++++++++++ 18 files changed, 445 insertions(+) create mode 100644 vendor/voclient/testscripts/help.sh create mode 100644 vendor/voclient/testscripts/readme.txt create mode 100644 vendor/voclient/testscripts/test.sh create mode 100644 vendor/voclient/testscripts/voatlas.sh create mode 100644 vendor/voclient/testscripts/vocatalog.sh create mode 100644 vendor/voclient/testscripts/vodata.sh create mode 100644 vendor/voclient/testscripts/voimage.sh create mode 100644 vendor/voclient/testscripts/voiminfo.sh create mode 100644 vendor/voclient/testscripts/voregistry.sh create mode 100644 vendor/voclient/testscripts/vosamp.sh create mode 100644 vendor/voclient/testscripts/vosesame.sh create mode 100644 vendor/voclient/testscripts/votcnv.sh create mode 100644 vendor/voclient/testscripts/votget.sh create mode 100644 vendor/voclient/testscripts/votinfo.sh create mode 100644 vendor/voclient/testscripts/votopic.sh create mode 100644 vendor/voclient/testscripts/votpos.sh create mode 100644 vendor/voclient/testscripts/votsort.sh create mode 100644 vendor/voclient/testscripts/votstat.sh (limited to 'vendor/voclient/testscripts') diff --git a/vendor/voclient/testscripts/help.sh b/vendor/voclient/testscripts/help.sh new file mode 100644 index 00000000..6b70d04e --- /dev/null +++ b/vendor/voclient/testscripts/help.sh @@ -0,0 +1,37 @@ +voiminfo --help +vosamp --help +votcnv --help +votget --help +votinfo --help +votopic --help +votpos --help +votsort --help +votstat --help +voatlas --help +vocatalog --help +vodata --help +voimage --help +voregistry --help +vosloanspec --help +vosesame --help +vosession --help +vospectra --help +voiminfo -h +vosamp -h +votcnv -h +votget -h +votinfo -h +votopic -h +votpos -h +votsort -h +votstat -h +voatlas -h +vocatalog -h +vodata -h +voimage -h +voregistry -h +vosesame -h +vosession -h +vosloanspec -h +vospectra -h + diff --git a/vendor/voclient/testscripts/readme.txt b/vendor/voclient/testscripts/readme.txt new file mode 100644 index 00000000..6ee976a3 --- /dev/null +++ b/vendor/voclient/testscripts/readme.txt @@ -0,0 +1,11 @@ +Various test scripts for runing tests on command line voclient tools. + +do +sh -x test.sh + +first. +The other scripts a pretty self explanatory. They follow the pattern + +sh -x vo*.sh + +There are all pretty mundane but are useful for a sanity check. diff --git a/vendor/voclient/testscripts/test.sh b/vendor/voclient/testscripts/test.sh new file mode 100644 index 00000000..5c984e83 --- /dev/null +++ b/vendor/voclient/testscripts/test.sh @@ -0,0 +1,28 @@ +cp ../test-data/* . +#voiminfo --test +#vosamp --test +#votcnv --test ned.xml +#votget --test sia.xml +#votinfo --test +#votopic --test +#votpos --test 2mass.xml +#votsort --test sia.xml +#votstat --test zz.xml +voiminfo -% +vosamp -% +votcnv -% ned.xml +votget -% sia.xml +votinfo -% +votopic -% +votpos -% 2mass.xml +votsort -% sia.xml +votstat -% zz.xml +voatas -% +vocatalog -% +vodata -% +voimage -% +voregistry -% -c -t image +vosesame -% +#vosession -% +vosloanspec -% +vospectra -% diff --git a/vendor/voclient/testscripts/voatlas.sh b/vendor/voclient/testscripts/voatlas.sh new file mode 100644 index 00000000..484d9181 --- /dev/null +++ b/vendor/voclient/testscripts/voatlas.sh @@ -0,0 +1,18 @@ +#vosamp quit +vosamp status +ps -u wyoung | grep Aladin > isrunning.Aladin +count=`wc -l isrunning.Aladin | awk '{print $1}'` +if [ $count -lt 2 ]; then + open /Applications/Aladin.app +fi +rm isrunning.Aladin +ps -u wyoung | grep TOPCAT > isrunning.TOPCAT +count=`wc -l isrunning.TOPCAT | awk '{print $1}'` +if [ $count -lt 2 ]; then + open /Applications/TOPCAT.app +fi +rm isrunning.TOPCAT +sleep 10 +echo +voatlas --samp m13 +voatlas -R 12 -D 30 -s 1d diff --git a/vendor/voclient/testscripts/vocatalog.sh b/vendor/voclient/testscripts/vocatalog.sh new file mode 100644 index 00000000..80d7cf58 --- /dev/null +++ b/vendor/voclient/testscripts/vocatalog.sh @@ -0,0 +1,13 @@ +vocatalog -v -A -a gsc2.3 m31,m51,m93 +vocatalog -v -C -a gsc2.3 m31,m51,m93 +vocatalog -v -H -a gsc2.3 m31,m51,m93 +vocatalog -v -K -a gsc2.3 m31,m51,m93 +vocatalog -v -R -a gsc2.3 m31,m51,m93 +vocatalog -v -V -a gsc2.3 m31,m51,m93 +vocatalog -v -T -a gsc2.3 m31,m51,m93 +vocatalog -vv -e -a gsc2.3 m42 +vocatalog -vv -e=pos -a gsc2.3 m42 +vocatalog -vv -e=urls -a gsc2.3 m42 +vocatalog -vv -eh -a gsc2.3 m42 +vocatalog -vv -ek -a gsc2.3 m42 +vocatalog -vv -eK -a gsc2.3 m42 diff --git a/vendor/voclient/testscripts/vodata.sh b/vendor/voclient/testscripts/vodata.sh new file mode 100644 index 00000000..40e3ba51 --- /dev/null +++ b/vendor/voclient/testscripts/vodata.sh @@ -0,0 +1,13 @@ +vodata -v -A -a gsc2.3 m31,m51,m93 +vodata -v -C -a gsc2.3 m31,m51,m93 +vodata -v -H -a gsc2.3 m31,m51,m93 +vodata -v -K -a gsc2.3 m31,m51,m93 +vodata -v -R -a gsc2.3 m31,m51,m93 +vodata -v -V -a gsc2.3 m31,m51,m93 +vodata -v -T -a gsc2.3 m31,m51,m93 +vodata -vv -e -a gsc2.3 m42 +vodata -vv -e=pos -a gsc2.3 m42 +vodata -vv -e=urls -a gsc2.3 m42 +vodata -vv -eh -a gsc2.3 m42 +vodata -vv -ek -a gsc2.3 m42 +vodata -vv -eK -a gsc2.3 m42 diff --git a/vendor/voclient/testscripts/voimage.sh b/vendor/voclient/testscripts/voimage.sh new file mode 100644 index 00000000..a7b96dc2 --- /dev/null +++ b/vendor/voclient/testscripts/voimage.sh @@ -0,0 +1,2 @@ +voimage -v any m31,m51,m93 +voimage -vv any m42 diff --git a/vendor/voclient/testscripts/voiminfo.sh b/vendor/voclient/testscripts/voiminfo.sh new file mode 100644 index 00000000..992f4f81 --- /dev/null +++ b/vendor/voclient/testscripts/voiminfo.sh @@ -0,0 +1,42 @@ +for file in dpix.fits mef.fits sif.fits ypix.fits ypix2.fits ypix3.fits +do + echo + echo ---- $file ---- + echo + voiminfo -a $file + voiminfo -i $file + voiminfo -b $file + voiminfo -c $file + voiminfo -n $file + voiminfo -s $file + voiminfo --all $file + voiminfo --info $file + voiminfo --box $file + voiminfo --corners $file + voiminfo --naxes $file + voiminfo --sex $file + echo + echo --------------- + echo +done +for file in dpix.fits mef.fits sif.fits ypix.fits ypix2.fits ypix3.fits +do + echo + echo ---- $file ---- + echo + voiminfo -a http://www.nrao.edu/~wyoung/test-data/$file + voiminfo -i http://www.nrao.edu/~wyoung/test-data/$file + voiminfo -b http://www.nrao.edu/~wyoung/test-data/$file + voiminfo -c http://www.nrao.edu/~wyoung/test-data/$file + voiminfo -n http://www.nrao.edu/~wyoung/test-data/$file + voiminfo -s http://www.nrao.edu/~wyoung/test-data/$file + voiminfo --all http://www.nrao.edu/~wyoung/test-data/$file + voiminfo --info http://www.nrao.edu/~wyoung/test-data/$file + voiminfo --box http://www.nrao.edu/~wyoung/test-data/$file + voiminfo --corners http://www.nrao.edu/~wyoung/test-data/$file + voiminfo --naxes http://www.nrao.edu/~wyoung/test-data/$file + voiminfo --sex http://www.nrao.edu/~wyoung/test-data/$file + echo + echo --------------- + echo +done diff --git a/vendor/voclient/testscripts/voregistry.sh b/vendor/voclient/testscripts/voregistry.sh new file mode 100644 index 00000000..32079311 --- /dev/null +++ b/vendor/voclient/testscripts/voregistry.sh @@ -0,0 +1,21 @@ +for resource in catalog image spectra table +do + # voregistry --resolve --verbose --type $resource + voregistry -rv -t $resource > /tmp/blah + for band in Radio Optical GR Millimeter UV IR xr + do + # voregistry --resolve --verbose --bandpass $band --type $resource + voregistry -rv -b $band -t $resource > /tmp/blah + voregistry -rv -c -b $band -t $resource + done + voregistry -rvI -t $resource + voregistry -rvR -t $resource + voregistry -rvS -t $resource + voregistry -rvT -t $resource + voregistry -rvd -t $resource + voregistry -rv -s "outflow" -t $resource + #for flag in Title SerivceURL Subject Creator CoverageTemporal Version ShortName ReferenceURL ResourceType Publisher Waveband Identifier Description Type CoverageSpatial ContentLevel + #do + # voregistry --resolve --verbose --fields $flag --type $resource + #done +done diff --git a/vendor/voclient/testscripts/vosamp.sh b/vendor/voclient/testscripts/vosamp.sh new file mode 100644 index 00000000..ae5255c0 --- /dev/null +++ b/vendor/voclient/testscripts/vosamp.sh @@ -0,0 +1,30 @@ +#vosamp quit +vosamp status +ps -u wyoung | grep Aladin > isrunning.Aladin +count=`wc -l isrunning.Aladin | awk '{print $1}'` +if [ $count -lt 2 ]; then + open /Applications/Aladin.app +fi +rm isrunning.Aladin +ps -u wyoung | grep TOPCAT > isrunning.TOPCAT +count=`wc -l isrunning.TOPCAT | awk '{print $1}'` +if [ $count -lt 2 ]; then + open /Applications/TOPCAT.app +fi +rm isrunning.TOPCAT +sleep 10 +echo +vosamp status +vosamp list +vosamp access topcat +vosamp access Aladin +vosamp load dpix.fits +vosamp -t Aladin loadImage ypix2.fits +vosamp load 2mass.xml +vosamp load http://www.nrao.edu/~wyoung/test-data/ypix.fits +vosamp loadImage http://www.nrao.edu/~wyoung/test-data/ypix.fits +vosamp showRow 5 +vosamp -t Aladin showRow 13 +vosamp -t Aladin selectRows 5-9 +vosamp -t Aladin showRow 17 +#vosamp quit diff --git a/vendor/voclient/testscripts/vosesame.sh b/vendor/voclient/testscripts/vosesame.sh new file mode 100644 index 00000000..9582d79d --- /dev/null +++ b/vendor/voclient/testscripts/vosesame.sh @@ -0,0 +1,36 @@ +for obj in m1 m31 ngc4525 +do + vosesame -a $obj + vosesame -d $obj + vosesame -e $obj + vosesame -n $obj + vosesame -s $obj + vosesame -t $obj + vosesame -fa $obj + vosesame -fd $obj + vosesame -fe $obj + vosesame -fs $obj + vosesame -ft $obj + vosesame -Afa $obj + vosesame -Cfd $obj + vosesame -Hfe $obj + vosesame -Tfs $obj + vosesame -Tfs -o sillyfile.txt $obj + vosesame --all $obj + vosesame --decimal $obj + vosesame --errors $obj + vosesame --name $obj + vosesame --sex $obj + vosesame --type $obj + vosesame --force --all $obj + vosesame --force --decimal $obj + vosesame --force --error $obj + vosesame --force --name $obj + vosesame --force --sex $obj + vosesame --force --type $obj + vosesame --ascii --force --all $obj + vosesame --comma --force --decimal $obj + vosesame --header --force --errors $obj + vosesame --tab --force --sex $obj + vosesame --tab --force --sex --output=sillyfile.txt $obj +done diff --git a/vendor/voclient/testscripts/votcnv.sh b/vendor/voclient/testscripts/votcnv.sh new file mode 100644 index 00000000..adc66ec6 --- /dev/null +++ b/vendor/voclient/testscripts/votcnv.sh @@ -0,0 +1,37 @@ +for file in ned.xml http://www.nrao.edu/~wyoung/test-data/ned.xml +do + echo + echo ---- $file ---- + votcnv $file >convert0.txt + votcnv -f vot $file >convert1.txt + votcnv -f asv $file >convert2.txt + votcnv -f bsv $file >convert3.txt + votcnv -f csv $file >convert4.txt + votcnv -f tsv $file >convert5.txt + votcnv -f html $file >convert6.txt + votcnv -f shtml $file >convert7.txt + votcnv -f fits $file >convert8.txt + votcnv -f ascii $file >convert9.txt + votcnv -f xml $file >convert10.txt + votcnv -f raw $file >convert11.txt + votcnv -i 3 $file >convert12.txt + votcnv -f asv -n $file >convert13.txt + votcnv -f bsv -o convert14.txt -n $file + votcnv --fmt vot $file >convert1.txt + votcnv --fmt asv $file >convert2.txt + votcnv --fmt bsv $file >convert3.txt + votcnv --fmt csv $file >convert4.txt + votcnv --fmt tsv $file >convert5.txt + votcnv --fmt html $file >convert6.txt + votcnv --fmt shtml $file >convert7.txt + votcnv --fmt fits $file >convert8.txt + votcnv --fmt ascii $file >convert9.txt + votcnv --fmt xml $file >convert10.txt + votcnv --fmt raw $file >convert11.txt + votcnv --indent 3 $file >convert12.txt + votcnv --fmt asv --noheader $file >convert13.txt + votcnv --fmt bsv --output convert14.txt -n $file + echo + echo -------------- + echo +done diff --git a/vendor/voclient/testscripts/votget.sh b/vendor/voclient/testscripts/votget.sh new file mode 100644 index 00000000..3bef6f3c --- /dev/null +++ b/vendor/voclient/testscripts/votget.sh @@ -0,0 +1,31 @@ +for file in sia.xml http://www.nrao.edu/~wyoung/test-data/sia.xml +do + echo + echo ---- $file ---- + votget $file + votget -b stuff $file + votget -e one $file + votget -s $file + votget -u VOX:Image_accessReference $file + votget -v $file + votget -x $file + rm -rf testresults + votget -D testresults $file + votget -N 3 $file + votget -d $file + votget -o download.txt $file + votget --base stuff $file + votget --extn one $file + votget --sum $file + votget --ucd VOX:Image_accessReference $file + votget --verbose $file + votget --extract $file + rm -rf testresults + votget --download testresults $file + votget --num 3 $file + votget --debug $file + votget --output download.txt $file + echo + echo -------------- + echo +done diff --git a/vendor/voclient/testscripts/votinfo.sh b/vendor/voclient/testscripts/votinfo.sh new file mode 100644 index 00000000..32a05909 --- /dev/null +++ b/vendor/voclient/testscripts/votinfo.sh @@ -0,0 +1,39 @@ +for file in *.xml http://www.nrao.edu/~wyoung/test-data/ned.xml +do + echo + echo ---- $file ---- + echo + votinfo $file + votinfo -w -b $file + votinfo -w -d $file + votinfo -w -i $file + votinfo -w -n param $file + votinfo -w -n info $file + votinfo -w -n rows $file + votinfo -w -n cols $file + votinfo -w -n resources $file + votinfo -w -p $file + votinfo -w -s $file + votinfo -w -v $file + echo + echo -------------- + echo + echo + echo ---- $file ---- + echo + votinfo $file + votinfo --warn --brief $file + votinfo --warn --description $file + votinfo --warn --info $file + votinfo --warn --numberOf=param $file + votinfo --warn --numberOf=info $file + votinfo --warn --numberOf=rows $file + votinfo --warn --numberOf=cols $file + votinfo --warn --numberOf=resources $file + votinfo --warn --param $file + votinfo --warn --size $file + votinfo --warn --verbose $file + echo + echo -------------- + echo +done diff --git a/vendor/voclient/testscripts/votopic.sh b/vendor/voclient/testscripts/votopic.sh new file mode 100644 index 00000000..36d70101 --- /dev/null +++ b/vendor/voclient/testscripts/votopic.sh @@ -0,0 +1,9 @@ +for file in m31 +do + echo + echo ---- $file ---- + votopic -t catalog radio $file 0.10 + echo + echo -------------- + echo +done diff --git a/vendor/voclient/testscripts/votpos.sh b/vendor/voclient/testscripts/votpos.sh new file mode 100644 index 00000000..eff90b07 --- /dev/null +++ b/vendor/voclient/testscripts/votpos.sh @@ -0,0 +1,22 @@ +votpos 2mass.xml +votpos 2mass.xml +votpos ds9.xml +votpos ned.xml +votpos sia.xml +votpos sort.xml +votpos zz.xml +votpos -n 2mass.xml +votpos -n ds9.xml +votpos -n ned.xml +votpos -n sia.xml +votpos -n sort.xml +votpos -n zz.xml +votpos http://www.nrao.edu/~wyoung/test-data/ds9.xml +votpos http://www.nrao.edu/~wyoung/test-data/ned.xml +votpos http://www.nrao.edu/~wyoung/test-data/sia.xml +votpos http://www.nrao.edu/~wyoung/test-data/sort.xml +votpos -n http://www.nrao.edu/~wyoung/test-data/2mass.xml +votpos -n http://www.nrao.edu/~wyoung/test-data/ds9.xml +votpos -n http://www.nrao.edu/~wyoung/test-data/ned.xml +votpos -n http://www.nrao.edu/~wyoung/test-data/sia.xml +votpos -n http://www.nrao.edu/~wyoung/test-data/sort.xml diff --git a/vendor/voclient/testscripts/votsort.sh b/vendor/voclient/testscripts/votsort.sh new file mode 100644 index 00000000..5ebeebcb --- /dev/null +++ b/vendor/voclient/testscripts/votsort.sh @@ -0,0 +1,31 @@ +for file in ned.xml http://www.nrao.edu/~wyoung/test-data/ned.xml +do + echo + echo ---- $file ---- + echo + votsort $file >sort1.txt + votsort -c 3 $file > sort2.txt + votsort -d $file + votsort -f vot $file + votsort -f asv $file + votsort -f bsv $file + votsort -f csv $file + votsort -f tsv $file + votsort -f html $file + votsort -f shtml $file + votsort -f fits $file > sort.fits + votsort -f ascii $file + votsort -f xml $file + votsort -f raw $file + votsort -s $file + votsort -t 10 $file + votsort -i 3 $file + votsort -n -f csv $file + votsort -N "RA(deg)" $file > sort3.txt + votsort -I main_col4 $file > sort4.txt + votsort -U src.redshift $file >sort5.tx + + echo + echo -------------- + echo +done diff --git a/vendor/voclient/testscripts/votstat.sh b/vendor/voclient/testscripts/votstat.sh new file mode 100644 index 00000000..523551d9 --- /dev/null +++ b/vendor/voclient/testscripts/votstat.sh @@ -0,0 +1,25 @@ +votstat -a 2mass.xml +votstat -a ds9.xml +votstat -a ned.xml +votstat -a sia.xml +votstat -a sort.xml +votstat -a zz.xml +votstat 2mass.xml +votstat ds9.xml +votstat ned.xml +votstat sia.xml +votstat sort.xml +votstat zz.xml +votstat http://www.nrao.edu/~wyoung/test-data/2mass.xml +votstat http://www.nrao.edu/~wyoung/test-data/ds9.xml +votstat http://www.nrao.edu/~wyoung/test-data/ned.xml +votstat http://www.nrao.edu/~wyoung/test-data/sia.xml +votstat http://www.nrao.edu/~wyoung/test-data/sort.xml +votstat http://www.nrao.edu/~wyoung/test-data/zz.xml +votstat -a http://www.nrao.edu/~wyoung/test-data/2mass.xml +votstat -a http://www.nrao.edu/~wyoung/test-data/ds9.xml +votstat -a http://www.nrao.edu/~wyoung/test-data/ned.xml +votstat -a http://www.nrao.edu/~wyoung/test-data/sia.xml +votstat -a http://www.nrao.edu/~wyoung/test-data/sort.xml +votstat -a http://www.nrao.edu/~wyoung/test-data/zz.xml + -- cgit