[ncl-talk] joint-histogram
Barry Lynn
barry.h.lynn at gmail.com
Tue Oct 17 22:43:58 MDT 2017
Hi Marston:
I have the code to make a typical histogram, but it is calculates values
based on the total number of occurrences within the range. This is
different than the standard code provided.
The question is would it be possible to adapt this program to make squares,
where the color indicates intensity (if I interpret this correctly). I
think so, but first you need a program that can map squares like a
checkerboard.
Barry
On Tue, Oct 17, 2017 at 9:33 PM, Marston Johnston <shejo284 at gmail.com>
wrote:
> Hi Barry,
>
>
>
> Yeah, that’s the one (top left hand corner). Apologies. I should have
> mentioned that before.
>
> /M
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Marston S. Ward, PhD
>
> Department of Earth Sciences
>
> University of Gothenburg, Sweden
>
> Email: marston.johnston at gu.se
>
> SkypeID: marston.johnston
>
> Phone: +46-31-7864901 <+46%2031%20786%2049%2001>
>
> Only the fruitful thing is true!
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
>
>
> *From: *Barry Lynn <barry.h.lynn at gmail.com>
> *Date: *Tuesday, 17 October 2017 at 18:04
>
> *To: *Marston Johnston <shejo284 at gmail.com>
> *Cc: *Mary Haley <haley at ucar.edu>, "ncl-talk at ucar.edu" <ncl-talk at ucar.edu>
> *Subject: *Re: [ncl-talk] joint-histogram
>
>
>
> Hi:
>
>
>
> Is it the plot in the top left hand corner?
>
>
>
> Barry
>
>
>
> On Tue, Oct 17, 2017 at 2:46 PM, Marston Johnston <shejo284 at gmail.com>
> wrote:
>
> Hi Barry,
>
>
>
> I’m doing some diagnosing of my COSP installation in IFS. I’m looking at
> CF, COT, CTP, and CLD re.
>
> The image is one made by R Pincus where he made a joint-histogram of the
> CTP and CLD re but instead of tracking the relative occurrence (CTP,RE) in
> each bin, he tracked the and plotted the CF instead. I think I know how to
> do this but I’m caught up in some other things at the moment to do some
> exploratory work on it. But if you have something that can create this
> plot, myself and at least 1 other NCL user would love it if you could
> share. Perhaps even contribute it to NCL.
>
>
>
> You can find the plot here: https://climatedataguide.ucar.
> edu/climate-data/isccp-international-satellite-cloud-climatology-project
>
>
>
> Best,
>
> /M
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Marston S. Ward, PhD
>
> Department of Earth Sciences
>
> University of Gothenburg, Sweden
>
> Email: marston.johnston at gu.se
>
> SkypeID: marston.johnston
>
> Phone: +46-31-7864901 <+46%2031%20786%2049%2001>
>
> Only the fruitful thing is true!
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
>
>
> *From: *Barry Lynn <barry.h.lynn at gmail.com>
> *Date: *Tuesday, 17 October 2017 at 13:37
> *To: *Marston Johnston <shejo284 at gmail.com>
> *Cc: *Mary Haley <haley at ucar.edu>, "ncl-talk at ucar.edu" <ncl-talk at ucar.edu>
> *Subject: *Re: [ncl-talk] joint-histogram
>
>
>
> Hi Marston:
>
>
>
> I made some histogram plots of WRF output data vs observations. However,
> I can't see your figure, so I am not sure what I did would be helpful to
> you.
>
>
>
> Barry
>
>
>
> On Mon, Oct 16, 2017 at 10:48 PM, Marston Johnston <shejo284 at gmail.com>
> wrote:
>
> Hi Mary & Dennis,
>
>
>
> The table looks like a good place to start.
>
> I’m currently unaware of a cloud fraction that is calculated from optical
> depth and cloud top pressure.
>
> However, I do have data for all there, i.e., I have ctp, cf, and cot
> (optical depth).
>
>
>
> I’ll take a look at the table tomorrow.
>
>
>
> Thanks guys ☺
>
>
>
> Best,
>
> /M
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Marston S. Ward, PhD
>
> Department of Earth Sciences
>
> University of Gothenburg, Sweden
>
> Email: marston.johnston at gu.se
>
> SkypeID: marston.johnston
>
> Phone: +46-31-7864901 <+46%2031%20786%2049%2001>
>
> Only the fruitful thing is true!
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
>
>
> *From: *Mary Haley <haley at ucar.edu>
> *Date: *Monday, 16 October 2017 at 21:31
> *To: *Marston Johnston <shejo284 at gmail.com>
> *Cc: *Dennis Shea <shea at ucar.edu>, "ncl-talk at ucar.edu" <ncl-talk at ucar.edu>
> *Subject: *Re: [ncl-talk] joint-histogram
>
>
>
> Marston,
>
>
>
> Take a look at this page:
>
>
>
> http://www.ncl.ucar.edu/Applications/table.shtml
>
>
> These are examples showing how to draw filed cells (square or triangle)
> based on some criteria. I think table_4.ncl colors the cells by ranges of
> values.
>
>
>
> --Mary
>
>
>
>
>
> On Mon, Oct 16, 2017 at 1:03 PM, Marston Johnston <shejo284 at gmail.com>
> wrote:
>
> Hi Dennis,
>
>
>
> At first glance it would appear so, but example 6 calculates the
> percentage. In the ucar example:
>
> https://climatedataguide.ucar.edu/climate-data/isccp-
> international-satellite-cloud-climatology-project
>
>
>
> The ISCCP cloud fraction is calculated for each bin instead of density of
> the frequency of occurrence. So in example 6 there are 2 datasets that are
> used as input data, but in the figure in question seems to use 3.
>
>
>
> /M
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Marston S. Ward, PhD
>
> Department of Earth Sciences
>
> University of Gothenburg, Sweden
>
> Email: marston.johnston at gu.se
>
> SkypeID: marston.johnston
>
> Phone: +46-31-7864901 <+46%2031%20786%2049%2001>
>
> Only the fruitful thing is true!
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
>
>
> *From: *ncl-talk <ncl-talk-bounces at ucar.edu> on behalf of Dennis Shea <
> shea at ucar.edu>
> *Date: *Monday, 16 October 2017 at 20:53
> *To: *Marston Ward <marston.johnston at gu.se>
> *Cc: *"ncl-talk at ucar.edu" <ncl-talk at ucar.edu>
> *Subject: *Re: [ncl-talk] joint-histogram
>
>
>
> I am not a graphics person.
>
> Looks like example 6
> https://www.ncl.ucar.edu/Applications/pdf.shtml
>
> ===
>
> Really, a contour plot with raster mode.
>
>
>
> On Mon, Oct 16, 2017 at 12:46 PM, Marston Ward <marston.johnston at gu.se>
> wrote:
>
> Hi guys!
>
>
>
> I’m trying to develop a NCL script to produce the attached figure, which
> is a joint-histogram, but a bit different from what pdfxy produces.
>
> I have a good idea of how this image is produced; but why reinvent the
> wheel? I don’t think that NCL has such a plot function, or am I mistaken?
>
> Does anyone have such a script – and would like to share?
>
> This is something I can definitely think of contributing to the NCL.
>
>
>
> Best,
>
> /M
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Marston S. Ward, PhD
>
> Department of Earth Sciences
>
> University of Gothenburg, Sweden
>
> Email: marston.johnston at gu.se
>
> SkypeID: marston.johnston
>
> Phone: +46-31-7864901 <+46%2031%20786%2049%2001>
>
> Only the fruitful thing is true!
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>
> _______________________________________________ ncl-talk mailing list
> ncl-talk at ucar.edu List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>
>
>
> --
>
> Barry H. Lynn, Ph.D
>
> Senior Lecturer,
>
> The Institute of the Earth Science,
> The Hebrew University of Jerusalem,
> Givat Ram, Jerusalem 91904, Israel
>
> Tel: 972 547 231 170
> Fax: (972)-25662581
>
>
>
> C.E.O, Weather It Is, LTD
> Weather and Climate Focus
> http://weather-it-is.com
> Jerusalem, Israel
> Local: 02 930 9525
> Cell: 054 7 231 170
> Int-IS: x972 2 930 9525
> US 914 432 3108 <(914)%20432-3108>
>
>
>
>
>
> --
>
> Barry H. Lynn, Ph.D
>
> Senior Lecturer,
>
> The Institute of the Earth Science,
> The Hebrew University of Jerusalem,
> Givat Ram, Jerusalem 91904, Israel
>
> Tel: 972 547 231 170
> Fax: (972)-25662581
>
>
>
> C.E.O, Weather It Is, LTD
> Weather and Climate Focus
> http://weather-it-is.com
> Jerusalem, Israel
> Local: 02 930 9525
> Cell: 054 7 231 170
> Int-IS: x972 2 930 9525
> US 914 432 3108 <(914)%20432-3108>
>
--
Barry H. Lynn, Ph.D
Senior Lecturer,
The Institute of the Earth Science,
The Hebrew University of Jerusalem,
Givat Ram, Jerusalem 91904, Israel
Tel: 972 547 231 170
Fax: (972)-25662581
C.E.O, Weather It Is, LTD
Weather and Climate Focus
http://weather-it-is.com
Jerusalem, Israel
Local: 02 930 9525
Cell: 054 7 231 170
Int-IS: x972 2 930 9525
US 914 432 3108
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171018/ca41b5ef/attachment.html>
More information about the ncl-talk
mailing list