go # # Read in the data... # data FocData read {Filt 1 exp 2 rah 3 ram 4 ras 5 decd 6 decm 7 decs 8} read {sth 9 stm 10 sts 11 long 12 short 13 focx 14 focy 15} # # Set up vectors to store dec and HA values... # define len dimen(Filt) set dimen(dec) = $len set dimen(ha) = $len # # Calculate HA... # set ra = rah + ram/60 + ras/(60*60) set st = sth + stm/60 + sts/(60*60) set ha = st - ra do n=0,($len-1),1{ if(ha[$n] > 8){ # We've crossed from 24 to 0, need to subtract 24 hrs from ha... set ha[$n] = ha[$n] - 24 } } # # Calculate dec... # do n=0,($len-1),1{ if (decd[$n] > 0){ set dec[$n] = decd[$n] + decm[$n]/60 + decs[$n]/(60*60) }else{ set dec[$n] = decd[$n] - decm[$n]/60 - decs[$n]/(60*60) } } # # Calculate focx/focy ratio # set ratio = focx/focy minimax ratio min max set size=(((ratio - $min)/($max - $min))*3 + 0.2) set xoff = focx - ((focx+focy)/2) set yoff = yocx - ((focx+focy)/2) erase limits ha dec box xlabel HA ylabel Dec do n=0,($len-1),1{ define x1 (ha[$n]) define x1 (dec[$n]) define x2 (xoff[n]/50) define y2 (yoff[n]/50) draw_arrow $x1 $y1 $x2 $y2 }