Fix retrieve_micaps_server's get fy awx file problem.

This commit is contained in:
NMC-DAVE 2022-05-16 11:00:19 +08:00
parent 655252775a
commit 96af87195a
4 changed files with 6 additions and 3 deletions

@ -14,7 +14,9 @@
"cell_type": "code",
"execution_count": 1,
"id": "3b5bee50-0cae-47c6-9244-144ed1748708",
"metadata": {},
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"# set up things\n",

@ -4,4 +4,4 @@ from various data sources.
"""
__author__ = "The R & D Center for Weather Forecasting Technology in NMC, CMA"
__version__ = '0.1.9.2'
__version__ = '0.1.9.3'

@ -90,7 +90,7 @@ def resolve_awx_bytearray(btarray, units=''):
if head2_info['channel'] == 4:
# 对于可见光通道图像, 定标数据在0-63的范围内查找
calibration_table = calibration_table * 0.01
calibration_table = calibration_table[1:64]
calibration_table = calibration_table[0:64]
calibration_table = calibration_table.repeat(4)
else:
# 对于红外,水汽图像, 在全局范围内查找, 但要隔4进行跳点

@ -826,6 +826,7 @@ def get_fy_awx(directory, filename=None, suffix="*.AWX", units='', cache=True, c
:Examples:
>>> directory = "SATELLITE/FY4A/L1/CHINA/C004"
>>> data = get_fy_awx(directory)
>>> data = get_fy_awx("SATELLITE/GOES16/L1/C02", filename="C02_20220516101000_GOES16.AWX")
"""
# get data file name