Changeset 5
- Timestamp:
- 04/07/08 14:57:45 (16 years ago)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
corel/corel.py
r2 r5 15 15 from math import * 16 16 17 from fitgaussian import *17 #from fitgaussian import * 18 18 19 19 VERSION='0.0' … … 179 179 180 180 181 params = fitgaussian(bloc)182 fit = gaussian(*params)183 (height, x, y, width_x, width_y) = params184 print "Décalage gaussienne : %f %f" % (((x+x_max)-crpix1)*cdelt1+crval1,185 ((y+y_max)-crpix2)*cdelt2+crval2)181 #params = fitgaussian(bloc) 182 #fit = gaussian(*params) 183 #(height, x, y, width_x, width_y) = params 184 #print "Décalage gaussienne : %f %f" % (((x+x_max)-crpix1)*cdelt1+crval1, 185 # ((y+y_max)-crpix2)*cdelt2+crval2) 186 186 -
corel/params.py
r2 r5 16 16 17 17 if (label=='test'): 18 ref=' centre_0.fits'19 img=' zero.fits'18 ref='zero.fits' 19 img='test.fits' 20 20 liste_points = [[338,432], 21 21 [1701,416], -
corel/pre.py
r2 r5 38 38 # Suppresion du fond (version brutale) 39 39 40 scidata -= 700040 scidata -= 2900 41 41 scidata = numpy.where(scidata<0,0,scidata) 42 42 -
pyraw2fits/pyraw2fits.py
r4 r5 11 11 12 12 parser = OptionParser() 13 parser.add_option("-i","--input",dest="InputFilename",14 help="Input filename (required)", metavar="RAWIMAGE")15 parser.add_option("-o","--output",dest="OutputFilename",16 help="Output Filename (required)", metavar="FITSIMAGE")13 ##parser.add_option("-i","--input",dest="InputFilename", 14 ## help="Input filename (required)", metavar="RAWIMAGE") 15 ##parser.add_option("-o","--output",dest="OutputFilename", 16 ## help="Output Filename (required)", metavar="FITSIMAGE") 17 17 18 18 19 19 (options, args) = parser.parse_args () 20 20 21 InputFilename = args[0] 22 OutputFilename = InputFilename.replace('.dat','.fits') 23 24 print InputFilename, OutputFilename 21 25 22 26 #print len(options.keys()) … … 28 32 # Ouverture de l'image en mode lecture binaire (windows) 29 33 try: 30 f= open( options.InputFilename,'rb')34 f= open(InputFilename,'rb') 31 35 except IOError : 32 36 print "Impossible d'ouvrir l'image" … … 68 72 69 73 70 of = options.OutputFilename74 of = OutputFilename 71 75 72 76 hdu.writeto(of,clobber=True)
Note: See TracChangeset
for help on using the changeset viewer.