#!/bin/csh # C shell script to run Yohkoh IDL package # 1-Sep-93, D. Zarro (ARC) - written # 27-Jul-94, Zarro, changed usage from /ys to $ys # # $ys is the location of the Yohkoh atest, sxt, bcs, etc subdirectories. if (!($?ys) && (-e /ys)) setenv ys /ys set host = `hostname` if !($?ys) then echo "Location of Yohkoh software tree undefined on" $host exit endif source $ys/gen/setup/.yslogin echo "...loading Yohkoh tree from : "$ys # point to local (or NFS mounted) SDAC version of Astronomy library set nfs_astron = "/umbra/sdac/zastron" set local_astron = "/usr/users/sdac/zastron" if ($host == 'umbra.nascom.nasa.gov') then if (-e $local_astron) setenv IDL_ASTRON $local_astron else if (-e $nfs_astron) setenv IDL_ASTRON $nfs_astron endif if ($?IDL_ASTRON) echo "...loading local astronomy library: "$IDL_ASTRON if ($#argv == 1) then $ys/gen/setup/run_idl $argv[1] else $ys/gen/setup/run_idl endif exit