#!/bin/csh/ -f if ( $1 == "") then echo " parameter 1 is 4-letter code of patch (eg 2148)" echo " parameter 2 is 2-letter code of field (eg c5)" echo " parameter 3 is 1-letter code of mask (eg A)" exit endif # # cp /d/cnoc3/cnoc/$1/$2/im/$1$2B.fits* . gunzip $1$2B.fits* mv $1$2B.fits $1$2BB.fits cp /d/cnoc3/cnoc/$1/$2/im/$1$2R.fits* . cp /d/cnoc3/cnoc/$1/$2/im/$1$2I.fits* . cp /d/cnoc3/cnoc/$1/$2/im/$1$2U.fits* . cp /d/cnoc3/cnoc/$1/$2/im/$1$2g.fits* . cp /d/cnoc3/cnoc/$1/$2/im/$1$2$3?.fits* . # echo " If error on next line..." cp /d/cnoc3/cnoc/$1/$2/specred/extr/$1$2$3.fits* . echo " ...AND on next line(s)..." cp /d/cnoc3/cnoc/$1/$2/specred/extr/$1$2$3.imh* . cp /d/cnoc3/cnoc/$1/$2/specred/extr/$1$2$3.pix* . cp /d/cnoc3/cnoc/$1/$2/specred/extr/pix/$1$2$3.pix* . echo " ...then "$1$2$3" not found as either *.fits or *.imh." cp /d/cnoc3/cnoc/$1/$2/specred/extr/$1$2$3.notes . cp /d/cnoc3/cnoc/$1/$2/specred/extr/$1$2$3.axf.extr mask cp /d/cnoc3/cnoc/$1/$2/specred/extr/$1$2$3_final.ms.* . gunzip $1$2$3_final.ms.* echo " If error on next line..." mv $1$2$3_final.ms.fits netall.fits echo " ...then do imcopy "$1$2$3"_final.ms netall after this task ends." # cp /d/lungsampa/hall/cnoc/xcor/template.imh . cp /d/lungsampa/hall/cnoc/xcor/template.pix . cp /d/lungsampa/hall/cnoc/xcor/vcorr . cp /d/lungsampa/hall/cnoc/xcor/reduce.2.cl . cp /d/lungsampa/hall/cnoc/xcor/xcdisp5.in . cp /d/lungsampa/hall/cnoc/xcor/skydelt.list . cp /d/lungsampa/hall/cnoc/xcor/fits2imh.cl . cp /d/lungsampa/hall/cnoc/xcor/plotcors.cl . # gunzip *.Z gunzip *.gz