| Line graphs & xy plots | |
|
Line graphs are probably the most basic thing you can do in NCL. However as soon as you get in to any data processing, it gets a little more difficult. The NCL program below computes the root mean squared error of two different files. However, the second file in the program has 18 levels and the other has 17 levels. Therefore the file with 18 levels must be interpolated so the two files can be compared. Both files have been converted from a CCM history tape to a netCDFfile. |
begin
; --------------------------------------------
rmse = new((/5,17/),float)
a = addfile("/tmp/scavarda/"+DATE1(i),"r")
;--------------------------------------------
;--------------------------------------------
;-------------------------------------------
klev = dimsizes(lev)