"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Libtmp/Transform/Proj4/t/proj_transform2.t" between
PDL-2.077.tar.gz and PDL-2.078.tar.gz

About: PDL (Perl Data Language) aims to turn perl into an efficient numerical language for scientific computing (similar to IDL and MatLab).

proj_transform2.t  (PDL-2.077):proj_transform2.t  (PDL-2.078)
skipping to change at line 21 skipping to change at line 21
my $h = $im->fhdr; my $h = $im->fhdr;
$h->{SIMPLE} = 'T'; $h->{SIMPLE} = 'T';
$h->{NAXIS} = 3; $h->{NAXIS} = 3;
$h->{NAXIS1}=2048; $h->{CRPIX1}=1024.5; $h->{CRVAL1}=0; $h->{NAXIS1}=2048; $h->{CRPIX1}=1024.5; $h->{CRVAL1}=0;
$h->{NAXIS2}=1024; $h->{CRPIX2}=512.5; $h->{CRVAL2}=0; $h->{NAXIS2}=1024; $h->{CRPIX2}=512.5; $h->{CRVAL2}=0;
$h->{NAXIS3}=3, $h->{CRPIX3}=1; $h->{CRVAL3}=0; $h->{NAXIS3}=3, $h->{CRPIX3}=1; $h->{CRVAL3}=0;
$h->{CTYPE1}='Longitude'; $h->{CUNIT1}='degrees'; $h->{CDELT1}=180/1024.0; $h->{CTYPE1}='Longitude'; $h->{CUNIT1}='degrees'; $h->{CDELT1}=180/1024.0;
$h->{CTYPE2}='Latitude'; $h->{CUNIT2}='degrees'; $h->{CDELT2}=180/1024.0; $h->{CTYPE2}='Latitude'; $h->{CUNIT2}='degrees'; $h->{CDELT2}=180/1024.0;
$h->{CTYPE3}='RGB'; $h->{CUNIT3}='index'; $h->{CDELT3}=1.0; $h->{CTYPE3}='RGB'; $h->{CUNIT3}='index'; $h->{CDELT3}=1.0;
$h->{COMMENT}='Plate Caree Projection'; $h->{COMMENT}='Plate Carree Projection';
$h->{HISTORY}='PDL Distribution Image, derived from NASA/MODIS data', $h->{HISTORY}='PDL Distribution Image, derived from NASA/MODIS data',
$im->hdrcpy(1); $im->hdrcpy(1);
$im->badflag(1); $im->badflag(1);
# use epsilon of 1.1 as MacOS 11 gives off-by-one differences # use epsilon of 1.1 as MacOS 11 gives off-by-one differences
sub pdl_cmp { sub pdl_cmp {
my ($g, $e, $l) = @_; my ($g, $e, $l) = @_;
local $Test::Builder::Level = $Test::Builder::Level + 1; local $Test::Builder::Level = $Test::Builder::Level + 1;
ok all(approx($g, pdl($e), 1.1)), $l or diag "got:\n$g\nexpected:\n$e"; ok all(approx($g, pdl($e), 1.1)), $l or diag "got:\n$g\nexpected:\n$e";
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)