ParNCLDeveloperInfo/SimpleParNCLScripts: math_funcs.ncl

File math_funcs.ncl, 280 bytes (added by jayesh, 7 years ago)

Using math funcs Sin and Cos on data read from files

Line 
1begin
2fili = systemfunc("ls eul26x48x96.t[0-2].nc")  ; 3 files     
3
4setfileoption("nc","SuppressClose",False)   ; alter default mode
5
6f = addfiles(fili, "r") ; add the files
7
8u = f[:]->U ; read U
9
10u_sin = sin(u)
11u_cos = cos(u)
12
13u_one = u_sin ^ 2 + u_cos ^ 2
14
15print(u_one)
16
17end
18