[ncl-talk] sfYCStartV and sfYCEndV
Adam Phillips
asphilli at ucar.edu
Fri Mar 8 14:03:09 MST 2019
Hi Dave,
No matter what I do I'm ending up in the same place as you: A blank plot.
Altering the range of the Y-axis outside the y-axis range of your data does
not look possible when the grid is curvilinear/irregular as Rick stated.
Short of manually using gsn_add_annotation and adding a blank plot on
either end of your y-axis, I'm not sure what to suggest here.
Adam
On Fri, Mar 8, 2019 at 9:53 AM David Bailey <dbailey at ucar.edu> wrote:
> Hi Adam,
>
> I am trying overlay, but it is not happy with me. I have attached the
> script. My overlay plot is not showing up. Just the blank plot.
>
> Dave
>
> On Thu, Mar 7, 2019 at 3:06 PM Adam Phillips <asphilli at ucar.edu> wrote:
>
>> I don't know if this would work or not, but Dave could you create a blank
>> plot (with the fixed Y-axis that you'd like), and then overlay your
>> original plot on it?
>>
>> https://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_csm_blank_plot.shtml
>> Adam
>>
>> On Thu, Mar 7, 2019 at 2:56 PM David Bailey <dbailey at ucar.edu> wrote:
>>
>>> Thank Rick. I had been thinking later that I could rebin my data so that
>>> it would have a regular Y axis and then fill with missing values. This
>>> however seems like a lot of extra work. I would have to average into the
>>> bins and it would be ugly. I can probably live with the different Y axis in
>>> each plot.
>>>
>>> Dave
>>>
>>> On Thu, Mar 7, 2019 at 2:49 PM Rick Brownrigg <brownrig at ucar.edu> wrote:
>>>
>>>> Hi Dave,
>>>>
>>>> I am stumped here. It would appear that trYMinF *should* be the way to
>>>> go. But I'm getting this error message:
>>>>
>>>> warning:ContourPlotSetValues: current transformation requires
>>>> trYMinF to be within data coordinate range: resetting
>>>>
>>>> And I track that down in the code, and for whatever reason, if the axis
>>>> is irregular or curvilinear (as in your case), the values of trYMinF/MaxF
>>>> are constrained to be within the data range of the y-coordinate. This is
>>>> mentioned in example #6 here:
>>>>
>>>> http://ncl.ucar.edu/Applications/axes.shtml
>>>>
>>>> Is it possible to manipulate your data that the grid for Tinzs always
>>>> has a common y coordinate, constrained to be in the desired range? (I don't
>>>> understand you data well enough to know if this even makes sense).
>>>>
>>>> I wish I had a better answer -- perhaps someone else on ncl-talk can
>>>> step up.
>>>>
>>>> Rick
>>>>
>>>> On Thu, Mar 7, 2019 at 1:28 PM David Bailey <dbailey at ucar.edu> wrote:
>>>>
>>>>> That is correct. Feel free to run it.
>>>>>
>>>>> Dave
>>>>>
>>>>> On Thu, Mar 7, 2019 at 1:27 PM Rick Brownrigg <brownrig at ucar.edu>
>>>>> wrote:
>>>>>
>>>>>> May I run a copy of that script against the datasets -- it looks like
>>>>>> the only output are plots?
>>>>>>
>>>>>> On Thu, Mar 7, 2019 at 11:41 AM David Bailey <dbailey at ucar.edu>
>>>>>> wrote:
>>>>>>
>>>>>>> My script is in:
>>>>>>>
>>>>>>> /glade/u/home/dbailey/ncl/tinz_contour.ncl
>>>>>>>
>>>>>>> Dave
>>>>>>>
>>>>>>> On Thu, Mar 7, 2019 at 11:39 AM Rick Brownrigg <brownrig at ucar.edu>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi Dave, which plotting function are you using? Is it just
>>>>>>>> gsn_csm_contour()?
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Thu, Mar 7, 2019 at 11:31 AM David Bailey <dbailey at ucar.edu>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Hi all,
>>>>>>>>>
>>>>>>>>> I am using the sfAXArray and sfYArray capability to contour a
>>>>>>>>> two-dimensional field of temperature versus depth in the sea ice where the
>>>>>>>>> vertical axis (depth) changes in time. This works *almost* as expected for
>>>>>>>>> me (see attached). The one nit-picky issue I have is that I would like to
>>>>>>>>> fix the lower bound on the Y-axis to say -5m. I have tried trYMax and
>>>>>>>>> sfYCEndV, but these are ignored and the minimum value in on the sfYArray
>>>>>>>>> axis is always chosen. Has anyone had experience with this and have a
>>>>>>>>> workaround? Thanks!
>>>>>>>>>
>>>>>>>>> Dave
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>>
>>>>>>>>> David A Bailey
>>>>>>>>> email: dbailey_at_ucar.edu
>>>>>>>>> National Center for Atmospheric Research phone: 303-497-1737
>>>>>>>>> PO Box 3000
>>>>>>>>> fax : 303-497-1700
>>>>>>>>> Boulder, CO 80307-3000
>>>>>>>>> http://www.cgd.ucar.edu/staff/dbailey
>>>>>>>>> _______________________________________________
>>>>>>>>> ncl-talk mailing list
>>>>>>>>> ncl-talk at ucar.edu
>>>>>>>>> List instructions, subscriber options, unsubscribe:
>>>>>>>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>>
>>>>>>> David A Bailey
>>>>>>> email: dbailey_at_ucar.edu
>>>>>>> National Center for Atmospheric Research phone: 303-497-1737
>>>>>>> PO Box 3000
>>>>>>> fax : 303-497-1700
>>>>>>> Boulder, CO 80307-3000
>>>>>>> http://www.cgd.ucar.edu/staff/dbailey
>>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> David A Bailey
>>>>> email: dbailey_at_ucar.edu
>>>>> National Center for Atmospheric Research phone: 303-497-1737
>>>>> PO Box 3000
>>>>> fax : 303-497-1700
>>>>> Boulder, CO 80307-3000
>>>>> http://www.cgd.ucar.edu/staff/dbailey
>>>>>
>>>>
>>>
>>> --
>>>
>>> David A Bailey
>>> email: dbailey_at_ucar.edu
>>> National Center for Atmospheric Research phone: 303-497-1737
>>> PO Box 3000
>>> fax : 303-497-1700
>>> Boulder, CO 80307-3000
>>> http://www.cgd.ucar.edu/staff/dbailey
>>> _______________________________________________
>>> ncl-talk mailing list
>>> ncl-talk at ucar.edu
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>>
>>
>> --
>> Adam Phillips
>> Associate Scientist, Climate and Global Dynamics Laboratory, NCAR
>> www.cgd.ucar.edu/staff/asphilli/ 303-497-1726
>>
>> <http://www.cgd.ucar.edu/staff/asphilli>
>>
>
>
> --
>
> David A Bailey
> email: dbailey_at_ucar.edu
> National Center for Atmospheric Research phone: 303-497-1737
> PO Box 3000
> fax : 303-497-1700
> Boulder, CO 80307-3000
> http://www.cgd.ucar.edu/staff/dbailey
>
--
Adam Phillips
Associate Scientist, Climate and Global Dynamics Laboratory, NCAR
www.cgd.ucar.edu/staff/asphilli/ 303-497-1726
<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190308/22166449/attachment.html>
More information about the ncl-talk
mailing list