Software Development > PCL and PJSR Development
Graphing/plotting in PixInsight
rga218:
Hi, my name is Roberto Abraham. I am a professional astronomer that is a bit sick of IRAF and have been playing around with PixInsight to see if I can use it for my own research, and perhaps also introduce it into my University's curriculum for our undergraduate classes on observational astronomy. So far I'm finding the software extremely interesting (although the lack of documentation poses some challenges).
I would like to try to build a PCL module that draws X-Y plots based on quantities computed from an image, such as apparent magnitude, size, etc. For the sake of simplicity, these quantities would probably be computed outside of PixInsight using something like SExtractor, which would produce a catalog. I would then like to read the catalog into a nice table in PixInsight, and then make X-Y plots (also within PixInsight) so that when I click on a data point on the graph up would pop up a PixInsight view (or perhaps preview) showing a small "postage stamp" image of the galaxy, which I could then manipulate in various ways. I've written software to do this at various points in my life using other packages (IDL, Matlab, IRAF, etc., not to mention in C calling PGPLOT) but PixInsight seems like it ought to allow me to do these kinds of things quite elegantly.
Before I embark upon this I would welcome some advice on how to handle the production of scientific graphics within PixInsight. Is there a recommended way to handle this? If not, my thinking was to link my module against something like PGPLOT, however this seems non-optimal because it would introduce awkward dependencies and it would make it difficult for others to build. Furthermore, I imagine that if I link against libraries there might be licensing issues to worry about that might prevent distribution of the module.
Thanks for any advice/suggestions,
Roberto Abraham
University of Toronto
marekc:
Thanks, Roberto, for posting these questions!
I used Pixinsight for an imaging project in one of my classes for my Astronomy M.Sc. (Swinburne). I have never used IRAF, but I've always envied the people who know enough UNIX to use IRAF. However, everyone I know who has used it says `stay away if you can! It's difficult!'
The idea of using PI in astronomy education is very intriguing to me, since I teach astronomy. I teach introductory courses at a community college, and I wouldn't use it for anything beyond an introductory lab class, and possibly some sort of class on imaging. But... I will be very curious to see if any education-related functionality winds up getting built into PI. That would be neat! Being able to do something like CCD aperture photometry would be very cool. I've used MIRA for that, but I wish I could have used PI.
The DynamicPSF module might end up being an important part of research/education tools, such as for photometry. I'm glad that we have DynamicPSF now, it's very handy. Graphing, as you've described, would be great.
Josh Lake:
I, too, teach astronomy (at the high school level) and have made PixInsight a core part of my class. Being able to extract, plot, and analyze data within the PI platform would be a huge leap. I remember using IRAF in my undergrad research days, and I can absolutely relate to its tiresome workflow and foibles!
So you have another supporter in me, though I can't help with coding. If some PCL development results, I'd be happy to try working with students to use it.
rga218:
Hi Marek and jlake,
IRAF is powerful but archaic and the interface is so outdated I no longer feel comfortable asking my students to learn it. In my department there is a strong move away from IRAF and toward using IDL or Python (in the guise of a hybrid package called Pyraf) for image processing (as well as general scientific computing). In the undergraduate labs the trend is toward using things like CCDSoft or MaximDL for telescope control and data acquisition, and they are well-suited to this purpose. Unfortunately students also sometimes use these for image processing, but I discourage this. I strongly dislike how they tend to emphasize applying non-linear transformations to the underlying data at an early stage. PixInsight's approach (retain linear data as much as possible and incorporate the non-linearity needed for visualization into screen transfer functions) strikes me as much more sensible and appropriate for data that will be used to measure things (though making pretty pictures is a very worthy goal too of course). So I'd like to see how far I can encourage the use of PixInsight in my local environment. Adding some basic things like data plotting would be helpful in this regard.
That said, I don't think PixInsight is intended to be a general computing environment, so if the answer to me wanting to generate plots within PixInsight is "use something else" I'll fully understand that.
Roberto
mmirot:
--- Quote from: rga218 on 2012 February 24 14:33:25 ---Hi Marek and jlake,
That said, I don't think PixInsight is intended to be a general computing environment, so if the answer to me wanting to generate plots within PixInsight is "use something else" I'll fully understand that.
Roberto
--- End quote ---
I think the authors might disagree. Graphical plots and analytical tools for astronomy are on most like clear on wish list.
Priorty has been given to development of image process tool since this is the main user base.
However, there has been increasing interest by professional astromomers in PI over the last couple years so I am sure all comments here will get attention.
Max
Navigation
[0] Message Index
[#] Next page
Go to full version