[ncl-talk] label the plot using the own created list
Mary Haley
haley at ucar.edu
Fri Apr 27 13:45:48 MDT 2018
If you know that the date strings will always start and end in the exact
same columns, then you can use str_get_cols. As an example:
filenames = (/"th1001_2015_05_07_18.l100", \
"th1001_2015_05_08_00.l100", \
"th1001_2015_05_08_06.l100", \
"th1001_2015_05_08_12.l100" /)
date_list
= str_get_cols(filenames,7,19)
print("dates = '" + dates + "'")
The error message you're getting is because "date_list" is not a defined
variable. I assume that date_list was supposed to be the date extractions,
so that error should go away once you set this.
--Mary
On Thu, Apr 26, 2018 at 7:42 PM, Ying Song <ying.song at sjsu.edu> wrote:
> Hi, NCL helper,
>
> I have a questions self defined labelbar want extract date info from a
> list of ascii files. The filenames are following these pattern: (th1001_
> *2015_05_07*_18.l100)
>
> I created a new list(date_list) and use it to label my plot. I tried:
> res at tmXBLabels = date_list
>
>
> Received the err:
> warning:attsetvalues: the value associated with (lbLabelStrings) does not
> have
> warning:The value associated with (lbLabelStrings) does not have an HLU
> representation.
>
> Any thoughts or suggestions about this error? Thank you very much!
>
> Jiashu
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180427/87beb3ad/attachment.html>
More information about the ncl-talk
mailing list