Meteoinfolab Script Example: AIRS Swath HDF Data

Source: Internet
Author: User

Examples of airs Swath HDF data in polar stereographic (South Pole) projection close to the rectangle, you need to read from the data latitude and longitude and related data array, using the Surfacem function to draw Swath data (scatter), In the Surfacem function, the latitude data is projected into the destination projected coordinate system (defined in the AXESM function), and surface data (that is, lattice data) is generated from the 2-D scatter data using the so-called surface interpolation method. 2-D Scatter data can be made into grids (non-rectangular grids), traversing each lattice point of the target grid point data, and the grid's scatter value is assigned to that grid point, which falls in which grid in the grid. Some of the awkward, in fact, the algorithm is not very complex, and MATLAB in the function of the SURFACEM function similar.

Script Program:

#Add Data Filefolder ='d:/temp/hdf/'FNS='AIRS.2002.12.31.001.L2.CC_H.V4.0.21.0.G06100185050.HDF'fn= Folder +Fnsf=AddFile (FN) Lon_v= f['Longitude']lat_v= f['Latitude']lon=Lon_v[:,:]lat=Lat_v[:,:]vname='radiances'Rad_v=F[vname]rad= rad_v[:,:,567]#PlotPlot,proj = Axesm (proj='Stere', lat_0=-90, Gridline=true, griddx=30, griddy=30) Mlayer= Shaperead ('d:/temp/map/country1.shp') geoshow (mlayer) Levs= Arange (40, 90, 1)#slayer = Scatterm (lon, LAT, Rad, Levs, edge=true)Layer =Surfacem (Lon, LAT, Rad, levs) colorbar (layer, orientation='Horizontal') title ('{0}\n {1}'. Format (FNS, VName)) axism ()

Meteoinfolab Script Example: AIRS Swath HDF Data

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.