Articles tagged with 'images'

Blog: Caution with numpy float32 images

There is an interesting thread on the numpy discussion group about an unexpected result of taking the mean (or sum) of a large array of 32-bit floating point numbers.  If you exceed the 32-big float precision then you will get the wrong answer on some platforms.  Takeaway: use float64 or specify the precision of the accumulator.

Here are some examples:

In [1]: d = np.ones((1000, 1000), dtype ...

Posted by aldcroft

Tutorial: WCS tutorial using Kapteyn

The Kapteyn package provides a very nice tutorial aimed at beginners that introduces the basics of WCS (world coordinate system) transformations.  The examples use the Kapteyn wcs module, but many of the concepts discussed are independent of the specific software.

http://www.astro.rug.nl/software/kapteyn/wcstutorial.html

Posted by aldcroft

Blog: Getting RGB image values from ds9

An astropython.org visitor writes:

I'm using Matplotlib to make some figures out of FITS images.  I really would like to find a way to do 2 way communication with DS9.  I know there are ways to send an image to DS9 from Python at a command line.  But what I would like to do is send DS9 an image, display it there and set the stretch ...

Posted by aldcroft

Tutorial: Practical Python for Astronomers

Practical Python for Astronomers is a series of hands-on workshops to explore the Python language and the powerful analysis tools it provides. The emphasis is on using Python to solve real-world problems that astronomers are likely to encounter in research.

The workshops immediately make use of the full suite of plotting, analysis, and file reading tools. Along the way elements of the Python language such as data types ...

Posted by aldcroft

Resource: python4astronomers

Description: Practical Python for Astronomers
Homepage URL: http://python4astronomers.github.com/

Practical Python for Astronomers is a series of hands-on workshops to explore the Python language and the powerful analysis tools it provides. The emphasis is on using Python to solve real-world problems that astronomers are likely to encounter in research.

The workshops immediately make use of the full suite of plotting, analysis, and file reading tools.  Along ...

Posted by aldcroft