Does 'ncread' automatically takes the 'add-offset' and 'scale factor' into account before returning the results?

16 ビュー (過去 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.
  1 件のコメント
Thumree Sarkar
Thumree Sarkar 2019 年 3 月 8 日
I found the answer. ncread takes care of the add-offset and scale factor while reading the data. Thanks.

サインインしてコメントする。

回答 (2 件)

KSSV
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.

Vijay Sagar
Vijay Sagar 2020 年 11 月 11 日
編集済み: Vijay Sagar 2020 年 11 月 11 日
Most of the cases it applies both things automatically. Reference: ECMWF site.
Sometime It also depends of Netcdf data type. Reference: Matlab help center. Check 'vardata — Variable' data section and apply accordingly.

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by