[ncl-talk] Issues with Date Strings in Plots

Zach Rieck zrr817 at gmail.com
Mon Apr 29 19:17:50 MDT 2019


Yeah I had been trying to use this function. I keep running into issues
with time_axis_labels function returning as an undefined procedure.

-Zach Rieck
zrr817 at gmail.com
(513)-502-5652


On Mon, Apr 29, 2019 at 10:36 AM Rick Brownrigg <brownrig at ucar.edu> wrote:

> You might take a look at this function to address your time-axis labelling:
>
>
> http://ncl.ucar.edu/Document/Functions/User_contributed/time_axis_labels.shtml
>
> Its quite flexible and you'll need/want to experiment a bit, but its basic
> usage is it modifies the "res" resources variable you pass into plotting
> routines; something like:
>
> res = True
> .....
> restick = True
> restick at ttmFormat = "%Y/%N"     ;; will give labels like yyyy/mm
> time_axis_labels(time_f, res, restick)
> ;;;  now "res" will have additional labeling resources added to it
> plot = .....
>
> I hope that helps. I don't really understand your second issue.
>
> Rick
>
> On Fri, Apr 26, 2019 at 8:15 PM Zach Rieck <zrr817 at gmail.com> wrote:
>
>> To Whom it May Concern-
>>
>> I have two issues that I am beating my head against the table trying to
>> solve. The 1st, along the lines of my subject is regarding getting my plot
>> to show dates instead of "days since 2001" in the x-axis. I've tried using
>> some supplied code in the documentation regarding time resources, but I
>> can't get it to work with my code. The time snippet I have is correct, so
>> if I can just solve this issue my plot will be good to go.
>>
>> The 2nd issue I am running into is that my 2nd plot (from WRF data) is
>> showing 0 for all my values when I am plotting it, despite the fact that
>> printing the gridpoint variable gives the right output. I can't provide the
>> file due to its massive side and location on cloud storage (it would take
>> at least 10 hours to download locally). I know this isn't particularly
>> helpful, but if it its at all possible to look at my code and see if there
>> is something I might be doing wrong I'd really appreciate it.
>>
>> I'll attach here the code file as well as the data file for my 1st plot
>> and the output so you can see it. Any advice/ help is greatly appreciated.
>>
>> -Zach Rieck
>> zrr817 at gmail.com
>> (513)-502-5652
>> _______________________________________________
>> 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/20190429/0a3d8bad/attachment.html>


More information about the ncl-talk mailing list