Reading an arbitrary profile from 2D FITS data [message #76720] |
Tue, 28 June 2011 21:21  |
Balt
Messages: 16 Registered: May 2010
|
Junior Member |
|
|
Hi all,
A seemingly very simple problem has me stumped: How do I extract into
a vector a profile line from a 2D FITS data set? The IDL astro lib
doesn't seem to contain such a function for 2D, only for 3D, and then
only along a cardinal axis. That in turn is easy to do also but I need
it to go from for example (x,y) 100,100 to 320,240.
Any ideas?
Cheers
- Balt
|
|
|
Re: Reading an arbitrary profile from 2D FITS data [message #76765 is a reply to message #76720] |
Tue, 05 July 2011 06:49  |
Balt
Messages: 16 Registered: May 2010
|
Junior Member |
|
|
Thanks guys! I hadn't seen your responses (nor my own question) for a
few days. Looks like Google groups is having issues.
Craig is spot on, although I in the meantime solved it differently
(and probably a bit clumsily): I happen to know that the line I need
to take the profile of is at a 39.5 degree angle, so I just ROT'd the
image matrix by that amount and took a horizontal slice through the
image. It's less lines than above, but slower on a large image!
Cheers
- Balt
|
|
|