필터 지우기
필터 지우기

strange errors using fitsread

조회 수: 1 (최근 30일)
Giuseppe
Giuseppe 2013년 3월 11일
Hi, I am using fitsread.m to read pixels'intensities from a list of fits files.
I remember in the past I used the following:
>> for i=1:length(LIST)
>> DATA(i,:,:) = fitsread([PATH LIST(i).name], 'primary', 1);
>> end
Now it gives me the errors:
Keyword not found.
Keyword not found.
Warning: BSCALE or BZERO keyword missing from the FITS file.
> In fitsread at 139
Assuming BSCALE=1, BZERO=0
Error using zeros
NaN and Inf not allowed.
Error in fitsread (line 264)
X=zeros(nr*nc,1);
If instead I just type:
>> for i=1:length(LIST)
>> DATA(i,:,:) = fitsread([PATH LIST(i).name]);
>> end
It gives me:
Keyword not found.
Keyword not found.
Warning: BSCALE or BZERO keyword missing from the FITS file.
> In fitsread at 139
Assuming BSCALE=1, BZERO=0
Then produce a variable as a result, but it is totally crazy.
What's happened? I am quite sure I am using the same command I used before, but it does not work even on the old fits file.
  댓글 수: 2
Giuseppe
Giuseppe 2013년 4월 22일
I still have the same problem. PATH is the path where the file .fits are, EXT is their extension and LIST is the list containing all the fits file. However, it is not relevant.
Just typing fitsread('nomefile.fits'); it does not find some keywords and produce a crazy result.
Walter Roberson
Walter Roberson 2013년 4월 22일
Which MATLAB version is involved? Which version was it last known to work in?

댓글을 달려면 로그인하십시오.

답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by