<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title></title><style type="text/css">.felamimail-body-blockquote {margin: 5px 10px 0 3px;padding-left: 10px;border-left: 2px solid #000088;} </style></head><body><div><div>Hello</div><div><br></div><div>I have been trying to get winter
climatology from my data by selecting specific months of Dec, Jan, Feb
using NCL coordinate subscripting; however it is not working and i am
hopfull someone could point me in the right direction?I can extract Jan
and Feb but no Dec month.<br></div><div><br></div><div>I have also tried using indices without success.<br></div><div><br></div><div>Heres the code:</div><div><br></div><div> time=f->time<br> print(time) <br></div><div><br> TIME = time({136358.5:136386.5}) ; coordinate subscripting<br> print(TIME) <br> <br> do nmo=0,11,1 ; loop over the months<br><br> EGR(i) = egr(nmo,:,:,:)<br> printVarSummary(EGR) <br><br> end do</div></div><div><br></div><div><br></div><div>Variable: time</div>Type: double<br>Total Size: 96 bytes<br> 12 values<br>Number of Dimensions: 1<br>Dimensions and sizes: [time | 12]<br>Coordinates: <br> time: [136358.5..136692.5]<br>Number Of Attributes: 5<br> long_name : time<br> units : days since 0001-01-01 00:00:00<br> calendar : noleap<br> bounds : time_bnds<br> cell_methods : time: mean<br>(0) 136358.5<br>(1) 136386.5<br>(2) 136417.5<br>(3) 136447.5<br>(4) 136478.5<br>(5) 136508.5<br>(6) 136539.5<br>(7) 136570.5<br>(8) 136600.5<br>(9) 136631.5<br>(10) 136661.5<br>(11) 136692.5<br><br><br>Variable: TIME<br>Type: double<br>Total Size: 16 bytes<br> 2 values<br>Number of Dimensions: 1<br>Dimensions and sizes: [time | 2]<br>Coordinates: <br> time: [136358.5..136386.5]<br>Number Of Attributes: 5<br> cell_methods : time: mean<br> bounds : time_bnds<br> calendar : noleap<br> units : days since 0001-01-01 00:00:00<br> long_name : time<br>(0) 136358.5<br>(1) 136386.5<br>fatal:Undefined identifier: (EGR) is undefined, can't continue<br><br><br>Would be grateful<br><br></body></html>