NCL繪制海冰密集度

FNL數(shù)據(jù)中,包含了Ice Cover數(shù)據(jù),在北極地區(qū)就是Sea ICE张症。

用wgrib2將FNL原始的grib2格式轉(zhuǎn)換成netcdf格式:

wgrib2 gdas1.fnl0p25.2016072400.f00.grib2 -netcdf gdas1.fnl0p25.2016072400.f00.nc

然后用NCL繪圖如下能庆,發(fā)腳本紀(jì)念。


2016-07-24北極海冰密集度

load "$NCARG_ROOT/lib/ncarg/nclscripts/contrib/cd_string.ncl"

;************************************************

begin

;************************************************

; read in atmospheric data

;************************************************

? a = addfile("gdas1.fnl0p25.2016072400.f00.nc","r")

? icec = a->ICEC_surface(0,:,:)

? ;------for time------------------

? times? = a->time

? times2? = times

? times2? = times + todouble(3600*8)? ; time to BJT

? format? = "%Y-%N-%D_%H:%M"

? stime? = cd_string(times2 , format) ;simulation time


;************************************************

; create plot

;************************************************

? wks = gsn_open_wks("png","polar_icec_ste")? ? ? ? ? ? ; send graphics to PNG file

? ;gsn_define_colormap(wks, "wgne15")

? cmap? = RGBtoCmap("./Color_seaice.rgb")

? res? ? ? ? ? ? ? ? ? ? ? ? = True

? res@gsnMaximize? ? ? ? ? ? = True

? res@gsnDraw? ? ? ? ? ? ? ? = False

? res@gsnFrame? ? ? ? ? ? ? = False

? res@mpProjection? ? ? ? ? = "Stereographic"

? res@mpCenterLatF? ? ? ? ? = 90? ? ? ? ? ? ? ; Centered over north pole

? res@mpCenterLonF? ? ? ? ? = 90? ? ? ? ? ? ? ; Centered over north pole

? res@mpLimitMode? ? ? ? ? ? = "LatLon"

? res@mpMinLatF? ? ? ? ? ? ? = 60.0

? res@pmTickMarkDisplayMode? = "Always"? ? ? ? ; Nicer tickmark labels

? res@mpGridAndLimbOn? ? ? ? = True? ? ? ? ? ? ; Turn on lat/lon grid

? ;res@gsnMajorLatSpacing? ? = 10.? ;---doesn't work---

? ;res@mpGridSpacingF? ? ? ? = 10.

? res@mpGridLonSpacingF? ? ? = 15.0

? res@mpGridLatSpacingF? ? ? = 10.0

? res@mpGridLineDashPattern? = 2? ? ? ? ? ? ? ? ; Dashed lines

? res@mpFillOn? = True;False

? res@mpLandFillColor? ? = "grey";"transparent"? ; fill land with "dafult"

? res@mpFillDrawOrder? ? = "PostDraw"?


? res@cnFillOn? ? ? ? ? = True? ? ? ? ? ? ? ? ? ; color fill

? res@cnLinesOn? ? ? ? = False? ? ? ? ? ? ? ? ; no contour lines

? res@cnFillColors? ? ? = cmap

? res@cnLevelSelectionMode = "ExplicitLevels"

? res@cnLevels? ? ? ? ? = fspan(0.15,0.95,17)

? res@lbLabelStride? ? = 3 ;

? res@tiMainString? ? ? = stime+" (BJT)"

? plot = gsn_csm_contour_map(wks,icec({50.:90.},:),res)? ? ? ? ? ? ? ? ? ; Create plot

;---Create lat/lon arrays for location of latitude labels.

? lats = ispan(60,90,10)

? nlat = dimsizes(lats)

? lons = new(nlat,integer)

? lons = res@mpCenterLonF;90 ;

;---Resources for text strings

? txres? ? ? ? ? ? ? = True

? txres@txFontHeightF = 0.015

? dum = gsn_add_text(wks,plot,""+lats+"~F34~0~F~N",lons,lats,txres)

;---Drawing the plot will draw the attached latitude labels

? draw(plot)

? frame(wks)

end

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末颁湖,一起剝皮案震驚了整個濱河市宣蠕,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌甥捺,老刑警劉巖抢蚀,帶你破解...
    沈念sama閱讀 221,198評論 6 514
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異镰禾,居然都是意外死亡皿曲,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 94,334評論 3 398
  • 文/潘曉璐 我一進(jìn)店門吴侦,熙熙樓的掌柜王于貴愁眉苦臉地迎上來屋休,“玉大人,你說我怎么就攤上這事备韧〗僬粒” “怎么了?”我有些...
    開封第一講書人閱讀 167,643評論 0 360
  • 文/不壞的土叔 我叫張陵织堂,是天一觀的道長叠艳。 經(jīng)常有香客問我,道長捧挺,這世上最難降的妖魔是什么虑绵? 我笑而不...
    開封第一講書人閱讀 59,495評論 1 296
  • 正文 為了忘掉前任,我火速辦了婚禮闽烙,結(jié)果婚禮上翅睛,老公的妹妹穿的比我還像新娘。我一直安慰自己黑竞,他們只是感情好捕发,可當(dāng)我...
    茶點(diǎn)故事閱讀 68,502評論 6 397
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著很魂,像睡著了一般扎酷。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上遏匆,一...
    開封第一講書人閱讀 52,156評論 1 308
  • 那天法挨,我揣著相機(jī)與錄音谁榜,去河邊找鬼。 笑死凡纳,一個胖子當(dāng)著我的面吹牛窃植,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播荐糜,決...
    沈念sama閱讀 40,743評論 3 421
  • 文/蒼蘭香墨 我猛地睜開眼巷怜,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了暴氏?” 一聲冷哼從身側(cè)響起延塑,我...
    開封第一講書人閱讀 39,659評論 0 276
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎答渔,沒想到半個月后关带,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 46,200評論 1 319
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡研儒,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 38,282評論 3 340
  • 正文 我和宋清朗相戀三年豫缨,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片端朵。...
    茶點(diǎn)故事閱讀 40,424評論 1 352
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖燃箭,靈堂內(nèi)的尸體忽然破棺而出冲呢,到底是詐尸還是另有隱情,我是刑警寧澤招狸,帶...
    沈念sama閱讀 36,107評論 5 349
  • 正文 年R本政府宣布敬拓,位于F島的核電站,受9級特大地震影響裙戏,放射性物質(zhì)發(fā)生泄漏乘凸。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,789評論 3 333
  • 文/蒙蒙 一累榜、第九天 我趴在偏房一處隱蔽的房頂上張望营勤。 院中可真熱鬧,春花似錦壹罚、人聲如沸葛作。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,264評論 0 23
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽赂蠢。三九已至,卻和暖如春辨泳,著一層夾襖步出監(jiān)牢的瞬間虱岂,已是汗流浹背玖院。 一陣腳步聲響...
    開封第一講書人閱讀 33,390評論 1 271
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留第岖,地道東北人难菌。 一個月前我還...
    沈念sama閱讀 48,798評論 3 376
  • 正文 我出身青樓,卻偏偏與公主長得像绍傲,于是被迫代替她去往敵國和親扔傅。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 45,435評論 2 359

推薦閱讀更多精彩內(nèi)容