Skip to content

Commit

Permalink
use raster2fits, require right PDL version
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Sep 29, 2024
1 parent 05ece5f commit d256bde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ WriteMakefile(
},
PREREQ_PM => {
'Alien::Gnuplot' => '1.031',
'PDL' => 0,
'PDL' => '2.093', # raster2fits
'PDL::Transform' => 0, # anticipating split
'PDL::Transform::Color' => 0,
'IPC::Run' => 0,
'List::Util' => 0,
Expand Down
4 changes: 2 additions & 2 deletions t/plot.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use Test::More;
use PDL::Graphics::Gnuplot qw(plot gpwin);
use File::Temp qw(tempfile);
use PDL;
use PDL::Transform::Cartography; # t_raster2fits
use PDL::Transform::Cartography; # raster2fits

##########
# Uncomment these to test error handling on Microsoft Windows, from within POSIX....
Expand Down Expand Up @@ -167,7 +167,7 @@ unlink($testoutput) or warn "\$!: $! for '$testoutput'";
eval {$w->plot({with => 'fits', resample=>[100,100]},$r9)};
is($@, '', "with 'fits', resample [100,100]");
my $r9_rgb = pdl(0,$r9,$r9)->mv(-1,0); $r9_rgb->slice(0) .= 6; $r9_rgb *= 20;
eval {$w->plot({with => 'fits'}, t_raster2fits()->apply($r9_rgb))};
eval {$w->plot({with => 'fits'}, scalar raster2fits($r9_rgb, @PDL::Transform::Cartography::PLATE_CARREE))}; # scalar is because typo in 2.093 with "," instead of ";"
is($@, '', "with 'fits', rgb");
}

Expand Down

0 comments on commit d256bde

Please sign in to comment.