Changeset 16


Ignore:
Timestamp:
06/20/08 17:41:04 (12 years ago)
Author:
meynadie
Message:

mise au point pour fonctionnement batch

Location:
mire
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • mire/mire.sex

    r15 r16  
    88CATALOG_TYPE     ASCII_HEAD     # NONE,ASCII,ASCII_HEAD, ASCII_SKYCAT, 
    99                                # ASCII_VOTABLE, FITS_1.0 or FITS_LDAC 
    10 PARAMETERS_NAME  default.param  # name of the file containing catalog contents 
     10PARAMETERS_NAME  mire.param     # name of the file containing catalog contents 
    1111  
    1212#------------------------------- Extraction ---------------------------------- 
  • mire/process.py

    r14 r16  
    1313parser.add_option("-c","--catalog",dest="catalogfile", 
    1414                  help="Name of the catalog file") 
     15parser.add_option("-r","--reference",dest="reference", 
     16                  help="Name of the file with reference coordinates") 
    1517parser.add_option("-o","--outputfits",dest="outputfits", 
    1618                  default="output.fits", 
     
    2426rep = zeros((4,2)) 
    2527i = 0 
    26 for line in open('reperes.txt'): 
     28for line in open(options.reference): 
    2729    if ((line[0] != "#") and (line != '\n')): 
    2830        spl = string.split(line) 
     
    227229            tmp.append(lookup_sources[i,j,3]) 
    228230 
    229 print "Moyenne des mesures : ",sum(tmp)/len(tmp) 
    230  
    231 # Module des vecteurs unitaires 
    232  
    233 print "Module vec_i :",modulus(vec_i) 
    234 print "Module vec_j :",modulus(vec_j) 
     231print "#Moyenne des mesures /  Module vec_i /  Module vec_j", 
     232 
     233print sum(tmp)/len(tmp),modulus(vec_i),modulus(vec_j) 
     234 
Note: See TracChangeset for help on using the changeset viewer.