#!/usr/bin/python
#coding=utf-8
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap, cm
from netCDF4 import Dataset
import sys
import cmaps
lon_0 = 116.75
lat_0 = 37.25
filename = './emiss_27.ncf'
print(filename)
readfile = Dataset(filename, mode='r', open=True)
no2 = np.squeeze(readfile.variables['NO2'][:][:][:])
no2_units = readfile.variables['NO2'].units
#no2 = readfile.variables['NO2'][:]
m = Basemap(lat_0=lat_0, lon_0=lon_0, llcrnrlat=24.75 ,urcrnrlat=49.75,\
llcrnrlon=104.25,urcrnrlon=129.25,\
rsphere=6371200.,resolution='l')
lons = np.arange(104.25,129.25,0.25)
lats = np.arange(24.75,49.75,0.25)
lon, lat = np.meshgrid(lons, lats)
xi, yi = m(lon, lat)
###### 提取NO 网格信息COL,ROW
#for i in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]:
for i in [0,]:
print(u"第一个是", i)
no2_0 = no2[i:i+1, 0:1, :, :]
no2_0 = np.squeeze(no2_0)
clevs = np.arange(0,1.3,
python 绘制nc格式源清单
最新推荐文章于 2025-05-26 15:24:48 发布