This commit is contained in:
John Cupitt 2010-10-31 21:46:48 +00:00
parent c9c893047c
commit 50b9e5c855
2 changed files with 10 additions and 2 deletions

3
TODO
View File

@ -1,3 +1,6 @@
- add IM_SWAP, see orc branch util.h
- test fits reader more ... colour?

View File

@ -136,7 +136,7 @@ fits2vips_get_header( Read *read )
int status;
int bitpix;
int naxis;
long long int naxes[3];
long long int naxes[10];
int width, height, bands, format, type;
int keysexist;
@ -146,10 +146,15 @@ fits2vips_get_header( Read *read )
status = 0;
if( fits_get_img_paramll( read->fptr,
3, &bitpix, &naxis, naxes, &status ) ) {
10, &bitpix, &naxis, naxes, &status ) ) {
read_error( status );
return( -1 );
}
printf( "naxis = %d\n", naxis );
for( i = 0; i < naxis; i++ )
printf( "%d) %lld\n", i, naxes[i] );
width = 1;
height = 1;
bands = 1;