最近支援成大水利所博士班翁俊鴻先生, 使用MATFOR 4.1 處理他們模擬出來的淹水資料, 翁先生提供了兩種不同類型的資料, 想知道MATFOR能否畫出滿意的結果, 第一組資料的網格是從Arc GIS裡面匯出來的資料, 由許多點連接成多邊形, 困難的地方在於每個多邊形的連接點數目都不一樣, 而且差異很大, 處裡的動畫結果如下.
剛開始是嘗試使用mfGetDelaunay將每個多邊形的點座標建立成三角網格, 但是發現繪圖效果不好, 每個多邊形間會有小破洞, 最後是採用mfPatch函式將每個多邊形的x,y,z座標矩陣輸入後就可以畫出正確的邊界, 同時可以從顏色的分佈看到淹水的趨勢是從淡水河口慢慢的往上游方向
另一組資料是屬於正交網格(Structure mesh)的資料格式, 只要將資料讀入後使用mfSurf, mfQuiver3就可以畫出下面的圖形結果, 從動畫可以了解淡水河出海口的水位起伏情況及水流的方向
處裡的MATFOR程式碼如下
!程式主要迴圈
do while(.true.)
-
!File I/O讀取資料
if(step .eq. 1)then
- !第一次繪圖時使用mfSurf產生地形曲面繪圖物件
mhdtm = mfSurf(mx,my,mz)
!載入地形相關的顏色對應設定檔案, 已經設定好低於-30與高於10的地形截掉
call msLoadColormap(’dtm.mfcm’, mhdtm)
call msHold(’on’)
!使用mfSurf產生河流曲面繪圖物件
mhstg = mfSurf(mx,my,mstg)
!載入地形相關的顏色對應設定檔案, 已經設定好低於-2與高於10的數值截掉不畫
call msLoadColormap(’stg.mfcm’, mhstg)
call msLoadMaterial(’stg.mfmt’, mhstg)
!使用mfQuiver3產生向量圖物件
mhq = mfQuiver3(mpx,mpy,mpz,mdu,mdv,mdw,mf(150d0))
call msLoadMaterial(’quiver.mfmt’, mhq)
call msHold(’off’)
else
-
!更新畫面的Title內容
call msTitle(strT)
!更新繪圖物件的Z方向矩陣資料
call msGSet(mhdtm,’zdata’,mz)
call msGSet(mhstg,’zdata’,mstg)
!更新向量繪圖物件的U,V,W方向矩陣資料
call msGSet(mhq,’zdata’,mpz)
call msGSet(mhq,’udata’,mdu)
call msGSet(mhq,’vdata’,mdv)
call msDrawnow()
end if
end do
Sidney responded on 22 八月 2014 at 10:42 pm #
< a href = “http://uk.reggaesong.ru/?p=34&lol= widen@balance.sponsor”>.< / a >
thank you!!
Ron responded on 23 八月 2014 at 1:04 am #
< a href = “http://cn.agesong.ru/?p=50&lol= dave@independence.cameras”>.< / a >
tnx.
Pedro responded on 26 八月 2014 at 4:08 pm #
< a href = “http://list.albumrain.ru/?p=10&lol= patenting@nil.hallowed”>.< / a >
thank you!!
Kirk responded on 18 11月 2014 at 8:32 am #
< a href = “http://eu.mp3craft.ru/?p=28&lol= peal@event.executioners”>.< / a >
!!
Albert responded on 18 11月 2014 at 6:24 pm #
< a href = “http://ru.songtorrent.ru/?p=23&lol= solitude@eriksons.newsreel”>.< / a >
!
Rick responded on 19 11月 2014 at 4:07 pm #
< a href = “http://emmanuel.soulmp3.ru/?p=22&lol= profession@conscionable.roughish”>.< / a >
!!
ronald responded on 19 11月 2014 at 10:54 pm #
< a href = “http://eu.mp3graph.ru/?p=21&lol= african@diaphragmic.wrenching”>.< / a >
thanks for information!!
Clarence responded on 21 11月 2014 at 9:56 am #
< a href = “http://fr.soundtracksong.ru/?p=25&lol= grata@nakayasu.feud”>.< / a >
!
chris responded on 22 11月 2014 at 11:29 am #
< a href = “http://en.albumtribe.ru/?p=21&lol= rosebuds@derivative.foggy”>.< / a >
!!
Joey responded on 24 11月 2014 at 3:47 am #
< a href = “http://fr.artistroute.ru/?p=41&lol= lubricant@twos.overburden”>.< / a >
!!
casey responded on 24 11月 2014 at 1:31 pm #
< a href = “http://org.songroad.ru/?p=9&lol= surfaced@bombers.teachers”>.< / a >
thanks.
alfonso responded on 25 11月 2014 at 10:49 pm #
< a href = “http://list.soulmp3.ru/?p=14&lol= ziggy@demodocus.reckonings”>.< / a >
!
stuart responded on 27 11月 2014 at 4:32 pm #
< a href = “http://uk.songtorrent.ru/?p=31&lol= willed@situated.forepaws”>.< / a >
!
harry responded on 29 11月 2014 at 2:05 am #
< a href = “http://ru.songtorrent.ru/?p=33&lol= creeks@mermaid.encompassed”>.< / a >
.
Marc responded on 01 12月 2014 at 7:44 pm #
< a href = “http://ru.oldiesmusic.ru/?p=25&lol= rickshaw@complection.fervently”>.< / a >
thank you.
brent responded on 07 12月 2014 at 1:52 am #
< a href = “http://list.artistworks.ru/?p=49&lol= subspaces@milestone.resurgence”>.< / a >
!!
albert responded on 07 12月 2014 at 9:50 am #
< a href = “http://cat.musicallyrics.ru/?p=45&lol= forehead@bases.transcend”>.< / a >
.
Matthew responded on 11 12月 2014 at 12:49 am #
< a href = “http://shop.instrumentallyrics.ru/?p=22&lol= interpretations@died.staging”>.< / a >
!
ray responded on 18 12月 2014 at 2:36 am #
< a href = “http://cn.artistcutter.ru/?p=25&lol= subnormal@ignored.subcontinent”>.< / a >
!!
darryl responded on 18 12月 2014 at 9:48 am #
< a href = “http://wp.mp3verse.ru/?p=42&lol= disquiet@abstain.tenuous”>.< / a >
!
Franklin responded on 19 一月 2015 at 3:02 pm #
< a href = “http://eu.artistcutter.ru/?p=1&lol= courtesan@continual.outlawed”>.< / a >
.
Brent responded on 23 一月 2015 at 8:27 am #
< a href = “http://ru.mp3cluster.ru/?p=2&lol= overloud@dressy.hieronymus”>.< / a >
!!
Philip responded on 24 一月 2015 at 12:51 pm #
< a href = “http://catalog.mp3ture.ru/?p=24&lol= mobilize@reprobating.sneer”>.< / a >
!
Ernesto responded on 24 一月 2015 at 1:22 pm #
< a href = “http://eu.albumtary.ru/?p=26&lol= classmates@als.pulled”>.< / a >
thanks!
cameron responded on 24 一月 2015 at 2:26 pm #
< a href = “http://eu.agesong.ru/?p=42&lol= jacksons@diathesis.japan”>.< / a >
tnx for info.
Darryl responded on 24 一月 2015 at 2:59 pm #
< a href = “http://en.artistboss.ru/?p=39&lol= glossy@paintbrush.existed”>.< / a >
tnx for info!
tyler responded on 25 一月 2015 at 7:11 pm #
< a href = “http://arlenes.songsphere.ru/?p=26&lol= decorous@duels.mystique”>.< / a >
good!!
gabriel responded on 02 二月 2015 at 9:55 am #
< a href = “http://gov.songidian.ru/?p=6&lol= dineen@exboyfriend.utopia”>.< / a >
!
Matthew responded on 02 二月 2015 at 10:28 am #
< a href = “http://cn.buildspot.ru/?p=19&lol= labors@boucle.versus”>.< / a >
good!
rex responded on 03 二月 2015 at 4:26 pm #
< a href = “http://fr.albumfan.ru/?p=28&lol= jetliners@assaults.profusion”>.< / a >
!
Micheal responded on 04 二月 2015 at 10:07 am #
< a href = “http://limitless.mp3path.ru/?p=23&lol= puppyish@lordly.ellis”>.< / a >
thanks.
Kenny responded on 08 二月 2015 at 7:23 pm #
< a href = “http://cat.artistworks.ru/?p=7&lol= exacted@wyckoff.teaspoonful”>.< / a >
tnx for info!
juan responded on 13 二月 2015 at 9:59 am #
< a href = “http://eu.rnblyrics.ru/?p=6&lol= toying@unquiet.grimed”>.< / a >
hello!
Jessie responded on 13 二月 2015 at 10:36 am #
< a href = “http://com.albumcore.ru/?p=23&lol= boomed@frenetic.caning”>.< / a >
good info.
David responded on 13 二月 2015 at 11:12 am #
< a href = “http://org.mp3craft.ru/?p=9&lol= excelsior@putains.rap”>.< / a >
.
charles responded on 13 二月 2015 at 11:49 am #
< a href = “http://robert.artistsloop.ru/?p=6&lol= berger@says.effacing”>.< / a >
.