<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#!/usr/bin/perl
# writewcs.pl
# Program, ki v podane datoteke vpise prave WCS koordinate
#  Jure Skvarc, Marec 1999
#   Definicije parametrov
#=========================
#  Starcount
$prag = 5;    # Prag zaznave
$box = 30;    # Velikost okna, v katerem dolocam povprecno vrednost ozadja

$usno   ="/misc/catalogs/usno";
$catname="/misc/catalogs/gsc";
$tycho  ="/misc/catalogs/Tycho2/data/";



for $a (@ARGV) {   #  Berem, dokler ni datoteka zaprta
    printf "$a\n";
    #  Obdelam slike
    `starcount -l log.dat -s $prag -b 10 -c 3 -t 50000 -n 3.0 -o 10.0 -A -m $box $a`;
    $aless = $a;
    #  Odrezem koncnico fts
    $aless =~ s/\.fts//g;
    #  Naredim match s katalogom in vpisem prave koordinate
    `catalog -f $aless.dat -o 3 -X 16 -N 10 -e 7.0 -m 12 -D 10 -r 1.3 -b 300 -n 18 -W -A -c tycho2:$tycho -c gscn:$catname -c gscs:$catname -c usno:$usno`;

}

</pre></body></html>