- 积分
- 55950
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-6-21
- 最后登录
- 1970-1-1
|
发表于 2011-12-5 14:50:17
|
显示全部楼层
dolces 发表于 2011-12-5 11:45
附了数据,变量名为‘DCV_Mie’,麻烦你帮忙看看。
你的NC数据有Labmbert投影,MIApp类的OpenNCData函数有bug,忘了变换投影,已经改了,需要下载最新的MeteoInfoC.dll文件(见置顶的帖子)。脚本如下:
import clr
clr.AddReferenceByPartialName("System")
clr.AddReferenceByPartialName("System.Windows.Forms")
clr.AddReferenceByPartialName("System.Drawing")
from System import *
from System.Windows.Forms import *
from System.Drawing import *
clr.AddReference("MeteoInfoC.dll")
from MeteoInfoC import *
from MeteoInfoC.Layout import *
from MeteoInfoC.Data import *
BaseDir = "C:\\Program Files (x86)\\MeteoInfo\\"
MapDir = BaseDir + "Map\\"
DataDir = "E:\\temp\\nc\\"
myApp = MIApp()
myApp.OpenLayer(MapDir + "country1.shp")
myApp.SetLegendBreak("country1.shp",0,Color.Yellow,Color.Blue,1,True,False,True)
myApp.OpenNCData(DataDir + "CCTM_v47_ebi_cb05cl_ae5_aq_mpi_pg64_mpich2.AEROVIS.2011324")
#myApp.ProjectLayers(myApp.MeteoDataInfo.ProjInfo.ToProj4String())
myApp.SetDrawType("shaded")
myApp.Display("DCV_Mie")
myApp.SetTitle("test")
myApp.MoveLayerToTop("country1.shp")
myApp.ZoomLonLat(80,150,10,45)
myApp.MapLayout.DefaultLayoutMap.GridLineColor = Color.DarkGray
myApp.MapLayout.PaintGraphics()
myApp.SaveFigure("E:\\temp\\test.png")
Application.Run(myApp)
Lambert投影:
经纬度:
|
|