[ncl-talk] trend_query

Kunal Bali kunal.bali9 at gmail.com
Sun Jul 10 07:54:50 MDT 2016


Dear NCL users

I need to draw the trend plot of a file which has the time from 1 to 184.
The file has the 3 months data of 2015  (March-April-May) and same with
2016 year. So in the attached script, I used the code to calculate
regression coeff. or trend but could not get the correct result (see the
attached figure).

 var1    = short2flt(a->frpfire)
  ts      = var1(latitude|:,longitude|:,time|:)

  time        = ts&time
  rc           = regCoef(time,ts)

So could you please let me the mistakes in the script?

 Rec :       Date  Time    Param        Level    Size    Miss :
Minimum        Mean     Maximum
     1 : 2015-03-01 00:00:00 -1               0  128700       0 :
0.0000  0.00038583     0.90799
     2 : 2015-03-02 00:00:00 -1               0  128700       0 :
0.0000  0.00041996      10.667
     3 : 2015-03-03 00:00:00 -1               0  128700       0 :
0.0000  0.00087247      18.458
     4 : 2015-03-04 00:00:00 -1               0  128700       0 :
0.0000  0.00049727      4.8686
     5 : 2015-03-05 00:00:00 -1               0  128700       0 :
0.0000  0.00040626      3.4830
     6 : 2015-03-06 00:00:00 -1               0  128700       0 :
0.0000  0.00061191      2.4734
     7 : 2015-03-07 00:00:00 -1               0  128700       0 :
0.0000  0.00056151      12.073
     8 : 2015-03-08 00:00:00 -1               0  128700       0 :
0.0000  0.00065962      2.3245
     9 : 2015-03-09 00:00:00 -1               0  128700       0 :
0.0000  0.00061865      6.2506


Regards
Kunal Bali
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160710/acb0cda5/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trend.png
Type: image/png
Size: 108791 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160710/acb0cda5/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: frp_trend.ncl
Type: application/octet-stream
Size: 2723 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160710/acb0cda5/attachment.obj 


More information about the ncl-talk mailing list