<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">One question is why are there repeat times?<div class="">But you could see if any time before the current are equal to the current.&nbsp;</div><div class=""><br class=""><div class=""><br class=""></div><div class="">do t=0,dimsizes(Times)-1</div><div class=""><br class=""></div><div class="">if( t .gt. 0 .and. &nbsp; any( Times(:t-1).eq.Times(t) ) &nbsp;)then &nbsp; &nbsp; ;; &nbsp;first check, prevents a subscript error</div><div class=""><div class="">&nbsp; &nbsp; continue</div><div class="">end if</div><div class="">&nbsp;</div><div class="">… rest of your plotting loop.</div><div class=""><br class=""></div><div class="">end do</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Alan</div><div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">##############################<br class="">Alan Brammer,<div class="">Post-Doc Researcher</div><div class=""><br class=""></div><div class="">Department of Atmospheric and&nbsp;Environmental Sciences,<br class="">University at Albany,&nbsp;State University of New&nbsp;York,&nbsp;Albany, NY, 12222<div class=""><a href="mailto:abrammer@albany.edu" class="">abrammer@albany.edu</a><br class="">##############################</div></div></div></span></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 25 Feb 2016, at 15:35, Carlos J. Valle-Diaz &lt;<a href="mailto:cj.vallediaz@gmail.com" class="">cj.vallediaz@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Hello,<br class=""><br class=""></div>I'm doing some NCL plots to WRF output files. I concatenated the wrfout files to have them as one. But, in that concatenated file I have times that are repeated and are plotted twice. Is there a way to write in the script to not count those repeated times? <br class=""><br class="">Example -&gt; When I print out the Times in the file (by
            typing ncdump -v Times <a href="http://wrfout_d03_2011-07-12.nc/" target="_blank" class="">wrfout_d03_2011-07-12.nc</a>)
            I get:<br class="">
            <br class="">Times =<br class="">
            &nbsp; "2011-07-12_00:00:00",<br class="">
            &nbsp; "2011-07-12_01:00:00",<br class="">
            &nbsp; "2011-07-12_02:00:00",<br class="">
            &nbsp; "2011-07-12_03:00:00",<br class="">
            &nbsp; "2011-07-12_04:00:00",<br class="">
            &nbsp; "2011-07-12_05:00:00",<br class="">
            &nbsp; "2011-07-12_06:00:00",<br class="">
            &nbsp; "2011-07-12_07:00:00",<br class="">
            &nbsp; "2011-07-12_08:00:00",<br class="">
            &nbsp; "2011-07-12_09:00:00",<br class="">
            &nbsp; "2011-07-12_10:00:00",<br class="">
            &nbsp; "2011-07-12_11:00:00",<br class="">
            &nbsp; "2011-07-12_12:00:00",<br class="">
            &nbsp; "2011-07-12_13:00:00",<br class="">
            &nbsp; "2011-07-12_14:00:00",<br class="">
            &nbsp; "2011-07-12_15:00:00",<br class="">
            &nbsp; "2011-07-12_16:00:00",<br class="">
            &nbsp; "2011-07-12_17:00:00",<br class="">
            &nbsp; "2011-07-12_18:00:00",<br class="">
            &nbsp; "2011-07-12_19:00:00",<br class="">
            &nbsp; "2011-07-12_20:00:00",<br class="">
            &nbsp; <span style="background-color:rgb(255,255,0)" class="">"2011-07-12_21:00:00",<br class="">
            &nbsp; "2011-07-12_22:00:00",<br class="">
            &nbsp; "2011-07-12_21:00:00",<br class="">
            &nbsp; "2011-07-12_22:00:00",</span><br class="">
            &nbsp; "2011-07-12_23:00:00",<br class="">
            &nbsp; "2011-07-13_00:00:00",<br class="">
            &nbsp; "2011-07-13_01:00:00",<br class="">
            &nbsp; "2011-07-13_02:00:00",<br class="">
            &nbsp; "2011-07-13_03:00:00",<br class="">
            &nbsp; "2011-07-13_04:00:00",<br class="">
            &nbsp; "2011-07-13_05:00:00",<br class="">
            &nbsp; "2011-07-13_06:00:00",<br class="">
            &nbsp; "2011-07-13_07:00:00",<br class="">
            &nbsp; "2011-07-13_08:00:00",<br class="">
            &nbsp; "2011-07-13_09:00:00",<br class="">
            &nbsp; "2011-07-13_10:00:00",<br class="">
            &nbsp; "2011-07-13_11:00:00",<br class="">
            &nbsp; "2011-07-13_12:00:00" ;<br class="">
            <br class="">where "2011-07-12_21:00:00", "2011-07-12_22:00:00", occur
            twice. <br class=""><div class=""><div class=""><br class=""></div><div class="">Thank you for the attention and help,<br class=""></div><div class="">-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class="">Carlos J. Valle Diaz<br class="">Ph.D. Chemistry Student<br class="">University of Puerto Rico Rio Piedras Campus<div class="">Department of Graduate Chemistry and Environmental Sciences<br class=""><a href="mailto:cj.vallediaz@gmail.com" target="_blank" class="">cj.vallediaz@gmail.com</a></div><div class="">Tel. 787-764-0000 x88192<br class=""></div></div></div></div></div>
</div></div></div>
_______________________________________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br class=""></div></blockquote></div><br class=""></div></div></div></body></html>