I found the answer. ncread takes care of the add-offset and scale factor while reading the data. Thanks.
Does 'ncread' automatically takes the 'add-offset' and 'scale factor' into account before returning the results?
조회 수: 5 (최근 30일)
이전 댓글 표시
I am reading some gridded geographical satellite data product in ".nc" format using "ncread" command. I find without multiplying the 'scale factor' and adding the 'add-offset' I am having the geophysicall values already.
I am confused whether 'ncread' automatically takes the 'add-offset' and 'scale factor' into account before returning the results.
Thanks in advance for your answer.
답변 (2개)
KSSV
2019년 3월 8일
When you read a variable from netCDF using ncread, it will read the whole variable as it is written/ present in the file. It will read from start to end ...the entire data.
댓글 수: 0
Vijay Sagar
2020년 11월 11일
편집: Vijay Sagar
2020년 11월 11일
Sometime It also depends of Netcdf data type. Reference: Matlab help center. Check 'vardata — Variable' data section and apply accordingly.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 NetCDF에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!