PDL::Graphics::X::Fits - OO X Windows fits image display
use PDL; use PDL::Graphics::LUT; use PDL::Graphics::X::Fits; my $fits = rfits("PDL-2.4.1/m51.fits"); my $win1 = PDL::Graphics::X::Fits->new($fits, {WIN_TITLE => "In Color", CTAB => cat(lut_data("idl5"))}); my ($x, $y) = $win1->cursor();
A OO X Windows fits image display module built on PDL::Graphics::X. This module draws fits image with appropriately labeled axises & tick marks, similar to those drawn by PGPLOT. Once the image has been displayed, the cursor method will return the location of the next mouse click in image coordinates.
Options recognized
CTAB - color table to use when displaying the image (greyscale is default) MIN - minimum value to display (image minimum is default) MAX - maximum value to display (image maximum is default) RGB - set to 1 to display a RGB fits (expects the image to be in the form (x, y, RGB)) WIN_TITLE - a title for the window (default is "X::FITS")
None by default.
PDL::Graphics::X
Since PDL::Graphics::X doesn't handle rotated text very well, the y-axis label looks pretty ugly.
...
Hazen Babcock, hbabcockos1 at mac.com
Copyright 2005 by Hazen Babcock
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install PDL::Graphics::X::Fits, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PDL::Graphics::X::Fits
CPAN shell
perl -MCPAN -e shell install PDL::Graphics::X::Fits
For more information on module installation, please visit the detailed CPAN module installation guide.