Weather phenomenon symbol Map is actually a scatter plot, can be drawn with the Scatterm function, but before the need to create a weather symbol legend, with the Weatherspec function. If you only need to draw some weather phenomena (such as fog, haze), you can give the corresponding weather symbol list (can be found on the Internet).
Script Program:
#Set Data FoldersBasedir ='D:/myprogram/distribution/java/meteoinfo/meteoinfo'DataDir= Os.path.join (Basedir,'Sample/micaps') Mapdir= Os.path.join (Basedir,'Map')#Read shape FilesLworld = Shaperead (Os.path.join (Mapdir,'country1.shp')) Lchina= Shaperead (Os.path.join (Mapdir,'bou2_4p.shp'))#Read Station Dataf = addfile_micaps (Os.path.join (DataDir,'10101414.000')) Data= F.stationdata ('Weathernow')#PlotAxesm (bgcolor= (204,255,255)) Geoshow (Lworld, Edgecolor='k', Facecolor= (255,251,195)) Geoshow (Lchina, Edgecolor='k') LS=Weatherspec () layer= Scatterm (data, symbolspec=ls)#colorbar (layer)Xlim (72, 136) Ylim (16, 55)
Meteoinfolab Script Example: weather phenomenon Symbol