CDAT / uvcmetrics

metrics aka diagnostics for comparing models with observations or each other
BSD 3-Clause "New" or "Revised" License
3 stars 8 forks source link

Extensions on maps and colorbar in Diags.py #191

Closed glpotter closed 8 years ago

glpotter commented 8 years ago

It looks like we need to have extension arrows on the color maps for some plots. The NCAR AMWG doesn’t have them so it gives us a false sense of the magnitude of the variable. This may involve adding some logic. We are using prescribed ranges so you will have to check to see if the prescribed data range is larger than the variable range. I have attached 2 plots: one from DIAGS.py and the other from the AMWG diagnostic package. DIAGS.py puts white where the data is beyond the prescribed data range. NCAR’s AMWG seems to ignore the value. set5_ann_prect_gpcp_global-combined set5_ann_prect_gpcp_obsc

doutriaux1 commented 8 years ago

@glpotter @mcenerney1 to get the extension levels we do not need any new code. @glpotter got to the wiki page, list the variables that needs extensions (left or right or both) @mcenerney1 edit default_levels to have -1.e20 as first level for left arrow and 1.e20 as last level for right arrow. And VOILA!

glpotter commented 8 years ago

If the extensions are only plotted if they are needed, can't we add the extensions to all variables? @mcenerney1 @doutriaux1 ?

doutriaux1 commented 8 years ago

no they are not plotted only if needed, although that is a good idea for another time, for now it's on or off, so if you want we can always add extensions to the default_levels that is very easy. @mcenerney1 to do this after we retrieve the levels (or difflevels) simply add

levels.insert(0,-1.e20)
levels.append(1.e20)

Voila.

mcenerney1 commented 8 years ago

is ratio=“autot” a keyword to plot?

glpotter commented 8 years ago

Here is how I use it:

x.plot(s, iso, continents = 4, ratio="autot")

Jerry Potter UC Davis Department of Earth and Planetary Sciences One Shields Ave Davis, CA 95616 (707) 315-8314 jpotter@ucdavis.edu

From: James McEnerney notifications@github.com Reply-To: UV-CDAT/uvcmetrics reply@reply.github.com Date: Friday, June 3, 2016 at 12:00 PM To: UV-CDAT/uvcmetrics uvcmetrics@noreply.github.com Cc: Jerry Potter jpotter@ucdavis.edu, Mention mention@noreply.github.com Subject: Re: [UV-CDAT/uvcmetrics] Extensions on maps and colorbar in Diags.py (#191)

is ratio=“autot” a keyword to plot?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.