Codebase list astlib / acfbc1a
New upstream version 0.9.2 Ole Streicher 6 years ago
5 changed file(s) with 9 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
00 Metadata-Version: 1.1
11 Name: astLib
2 Version: 0.9.1
2 Version: 0.9.2
33 Summary: A set of python modules for producing simple plots, statistics, common calculations, coordinate conversions, and manipulating FITS images with World Coordinate System (WCS) information.
44 Home-page: http://astlib.sourceforge.net
55 Author: Matt Hilton
00 astLib: python astronomy modules
11
2 version: 0.9.1
2 version: 0.9.2
33
44 (c) 2007-2012 Matt Hilton
55 (c) 2013-2017 Matt Hilton & Steven Boada
1212 """
1313
1414 __all__=['astCalc', 'astCoords', 'astImages', 'astPlots', 'astStats', 'astWCS', 'astSED']
15 __version__ = '0.9.1'
15 __version__ = '0.9.2'
264264 if abs(RADeg1 - RADeg2[index]) < tolerance and abs(decDeg1 -decDeg2[index]) < tolerance:
265265 r[index]=0.0
266266 else:
267 raise Exception, "astCoords: calcAngSepDeg - encountered nan not due to equal RADeg, decDeg coords"
267 raise Exception("astCoords: calcAngSepDeg - encountered nan not due to equal RADeg, decDeg coords")
268268 elif type(RADeg1) == numpy.ndarray:
269269 if abs(RADeg2 - RADeg1[index]) < tolerance and abs(decDeg2 -decDeg1[index]) < tolerance:
270270 r[index]=0.0
271271 else:
272 raise Exception, "astCoords: calcAngSepDeg - encountered nan not due to equal RADeg, decDeg coords"
272 raise Exception("astCoords: calcAngSepDeg - encountered nan not due to equal RADeg, decDeg coords")
273273 else:
274274 r=0.0
275275
400400 else:
401401 #print sizeDiff, bestGuess, bestGuess-minGuess, bestGuess-maxGuess
402402 if bestGuess == None:
403 raise Exception, "bestGuess is None"
403 raise Exception("bestGuess is None")
404404 guessRange = abs((maxGuess-minGuess))
405405 maxGuess = bestGuess+guessRange/4.0
406406 minGuess = bestGuess-guessRange/4.0
414414 #guessStep = (maxGuess-minGuess)/20.0
415415 guesses = numpy.linspace(minGuess, maxGuess, 1000)
416416 if converged == False:
417 raise Exception, "calcRADecSearchBox failed to converge"
417 raise Exception("calcRADecSearchBox failed to converge")
418418 results.append(bestGuess)
419419
420420 RAMax = results[0]
424424
425425 # Sanity check
426426 if (RAMax-RAMin)+(2*tolerance) < 2*targetHalfSizeSkyDeg:
427 raise Exception, "calcRADecSearchBox failed sanity check"
427 raise Exception("calcRADecSearchBox failed sanity check")
428428
429429 return [RAMin, RAMax, decMin, decMax]
430430
6262 build_ext.build_extensions(self)
6363
6464 setup(name='astLib',
65 version='0.9.1',
65 version='0.9.2',
6666 url='http://astlib.sourceforge.net',
6767 download_url='http://sourceforge.net/project/platformdownload.php?group_id=202537',
6868 author='Matt Hilton',