[ncl-talk] Removing repeated times from concatenated files in an NCL script
Carlos J. Valle-Diaz
cj.vallediaz at gmail.com
Thu Feb 25 13:35:03 MST 2016
Hello,
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?
Example -> When I print out the Times in the file (by typing ncdump -v
Times wrfout_d03_2011-07-12.nc) I get:
Times =
"2011-07-12_00:00:00",
"2011-07-12_01:00:00",
"2011-07-12_02:00:00",
"2011-07-12_03:00:00",
"2011-07-12_04:00:00",
"2011-07-12_05:00:00",
"2011-07-12_06:00:00",
"2011-07-12_07:00:00",
"2011-07-12_08:00:00",
"2011-07-12_09:00:00",
"2011-07-12_10:00:00",
"2011-07-12_11:00:00",
"2011-07-12_12:00:00",
"2011-07-12_13:00:00",
"2011-07-12_14:00:00",
"2011-07-12_15:00:00",
"2011-07-12_16:00:00",
"2011-07-12_17:00:00",
"2011-07-12_18:00:00",
"2011-07-12_19:00:00",
"2011-07-12_20:00:00",
"2011-07-12_21:00:00",
"2011-07-12_22:00:00",
"2011-07-12_21:00:00",
"2011-07-12_22:00:00",
"2011-07-12_23:00:00",
"2011-07-13_00:00:00",
"2011-07-13_01:00:00",
"2011-07-13_02:00:00",
"2011-07-13_03:00:00",
"2011-07-13_04:00:00",
"2011-07-13_05:00:00",
"2011-07-13_06:00:00",
"2011-07-13_07:00:00",
"2011-07-13_08:00:00",
"2011-07-13_09:00:00",
"2011-07-13_10:00:00",
"2011-07-13_11:00:00",
"2011-07-13_12:00:00" ;
where "2011-07-12_21:00:00", "2011-07-12_22:00:00", occur twice.
Thank you for the attention and help,
--
Carlos J. Valle Diaz
Ph.D. Chemistry Student
University of Puerto Rico Rio Piedras Campus
Department of Graduate Chemistry and Environmental Sciences
cj.vallediaz at gmail.com
Tel. 787-764-0000 x88192
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160225/15b46a39/attachment.html
More information about the ncl-talk
mailing list