• MeteoInfoLab脚本示例:FY-3A AOD HDF数据


    FY3A卫星有HDF格式的AOD产品数据,全球范围,分辨率为0.05度。读取数据文件变量后要重新设定X/Y维,数据是Y轴反向的,且需要除以10000得到AOD值。

    脚本程序:

    #Add data file
    fn = 'D:/Temp/hdf/FY3A_MERSI_GBAL_L3_ASL_MLT_GLL_20140331_AOAM_5000M_MS.HDF'
    f = addfile(fn)
    #Get data variable
    v = f['Aerosol_Optical_Thickness_of_MERSI_550nm']
    #Set x/y
    x = arange1(-30.0,7200, 0.05)
    y = arange1(-90.0,3600, 0.05)
    #Set x/y dimensions
    v.setdim('Y', y, 0)
    v.setdim('X', x, 1)
    #Get data array
    aod = v[:,:]
    #aod = v[[15, 55],[70, 140]]
    aod = aod[::-1,:] / 10000.
    aod = aod[[15, 55],[70, 140]]
    #Plot
    axesm()
    world = shaperead('D:/Temp/map/country1.shp')
    china = shaperead('D:/Temp/map/bou2_4p.shp')
    geoshow(china, edgecolor='gray')
    geoshow(world)
    levs = arange1(0, 20, 0.05)
    cols = makecolors(21, cmap='matlab_jet')
    cols[0] = 'w'
    layer = imshowm(aod, levs, colors=cols)
    colorbar(layer)
    title('FY-3A AOD (2014-03-31)')

  • 相关阅读:
    Python学习资料
    异常
    I/O
    Python3+迭代器与生成器
    python标准数据类型
    人工智能、机器学习和深度学习
    原地排序和复制排序
    序列化和Json
    登陆加密小程序
    hashlib模块加密用法
  • 原文地址:https://www.cnblogs.com/yaqiang/p/4621153.html
Copyright © 2020-2023  润新知