python 查看风云4a二级数据云顶温度(CTT)数据

用中国区的数据,查看风云4a的云顶温度

#!usr/bin/env python
# -*- coding:utf-8 -*-
"""
@author: Suyue
@file: CTT.py
@time: 2024/06/12
@desc:
"""
import netCDF4
from netCDF4 import Dataset

ncfile = Dataset('G:/Z_SATE_C_BAWX_20230703004313_P_FY4A-_AGRI--_N_REGC_1047E_L2-_CTT-_MULT_NOM_20230703003000_20230703003417_4000M_V0001.nc')
ncfile
print(ncfile.variables.keys())

import matplotlib.pyplot as plt
long = ncfile['x'][:]
long
lat = ncfile['y'][:]
lat
CTT = ncfile['CTT'][:]
CTT.shape
long.shape
lat.shape

plt.contourf(CTT)
plt.colorbar(label='CTT',orientation='horizontal')
plt.show()

 

posted @ 2024-06-24 10:56  秋刀鱼CCC  Views(27)  Comments(0Edit  收藏  举报