필터 지우기
필터 지우기

replace -28672 with NaN

조회 수: 2 (최근 30일)
mahesh chathuranga
mahesh chathuranga 2014년 7월 21일
댓글: mahesh chathuranga 2014년 7월 21일
I have MODIS image, fill value is -28672(No data area). I want to replace those as NaN. why I am doing this is, I dont want to use those values to further calculations. I used this I(I==-28672)=NaN; but it not displayed as NaN. it displayed as 0. I dont know why it is not working.my image(I) is in type int16.

채택된 답변

Robert Cumming
Robert Cumming 2014년 7월 21일
You have answered your own question - your data type is a int16. A NaN is a double
See:
class(NaN)
It is type double.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by