NetCDF中scale_factor和add_offset的使用

本文介绍了NetCDF中的scale_factor和add_offset属性,用于数据压缩和简单转换。当读取数据时,应用会乘以scale_factor并加上add_offset。在遵循NOAA合作标准的情况下,如果属性与变量数据类型不同,变量只能为byte, short或long,而scale_factor和add_offset必须为float或double。开启自动掩码和比例因子设置后,这些属性会生效,但调整它们可能导致数据精度损失。" 111395432,10296225,Spring Boot API项目最佳实践:拦截器与Favicon.ico处理,"['Spring Boot', 'API开发', '拦截器', '代码生成', 'MyBatis', '数据库连接池']
摘要由CSDN通过智能技术生成

参考连接:http://ferret.wrc.noaa.gov/noaa_coop/coop_cdf_profile.html

  • scale_factor - If present for a variable, the data are to be multiplied by this factor after the data are read by the application that accesses the data. (see further discussion under the add_offset attribute)
  • add_offset - If present for a variable, this number is to be added to the data after it is read by the application that accesses the data. If both scale_factor and add_offset attributes are present, the data are first scaled before the offset is added. The attributes scale_factor and add_offset can be used together to provide simple data compression to store low-resolution floating-point data as small integers in a netCDF file. When scaled data are written, the application should first subtract the offset and then divide by the scale factor.
    The NOAA cooperative standard is more restrictive than
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值