簡體   English   中英

使用windrose(圓形)和windRose(露天)的區別

[英]Differences when using windrose (circular) and windRose (openair)

我想創建風玫瑰(實際上是洋流玫瑰),並且正在嘗試圓形和露天風包的功能。 當使用windRose(openair)函數時,我得到了期望的結果(我手動檢查了它們),但是當我使用windrose(圓形)時,我得到了對一個數據集的期望結果,而對另一個數據集的期望結果。 我知道氣象學家會繪制風向的方向,而我們在海洋學中會繪制海流的方向。 最初,我嘗試添加180°(如果使用弧度,則為pi),但它適用於一個數據集,但不適用於另一個數據集。 我知道兩個數據集的主要方向,因為我還使用了方差橢圓和均值方向向量。 我實際上注意到,windrose(圓形)和橢圓形的玫瑰不同意。 我想使用windrose(圓形)而不是windRose(露天),因為我已經修改了該功能,以在某些經度,緯度點上創建帶有玫瑰的地圖。 我有一個帶有數據集的.RData文件,但是找不到將其上傳到這篇文章的方法。

非常感謝您的幫助。 干杯。

#dataset1, $t is theta (direction) and $r is radius (magnitude)

windrose(data.frame(dir=circular(pol.ex$t, units="degrees"), 
mag=pol.ex$r), template="geographics") #in this dataset, predominant 
#direction is around 120°, windrose is not accurate.

rose <- windRose(mydata=data.frame(wd=pol.ex$t, ws=pol.ex$r), cols="jet", 
paddle=F) #this rose is accurate.

#dataset2, $t is theta (direction) and $r is radius (magnitude)

windrose(data.frame(dir=circular(pol.noex$t, units="degrees"), 
mag=pol.noex$r), template="geographics") #now, this one is accurate.

rose <- windRose(mydata=data.frame(wd=pol.noex$t, ws=pol.noex$r), 
cols="jet", paddle=F)#also accurate, dominant direction is ~ 220°

我發現了我的錯誤,模板是CIRCULAR的參數,而不是WINDROSE的參數:

windrose(data.frame(dir = circular(pol.ex $ t,units =“ degrees”,template =“ geographics”),mag = pol.ex $ r))#這可行

謝謝。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM