<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
h4
        {mso-style-priority:9;
        mso-style-link:"Heading 4 Char";
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;
        font-weight:bold;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.Heading4Char
        {mso-style-name:"Heading 4 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 4";
        font-family:"Calibri Light",sans-serif;
        color:#2F5496;
        font-style:italic;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Yes, but you also need to use a modified version of xcbar.gs that uses your saved shade information instead of calling ‘q shades’ again.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt">-- <span style="color:black"><br>
Jennifer Miletta Adams<br>
Senior Scientific Software Developer<br>
Goddard Earth Sciences Data and Information Services Center (GES DISC)<o:p></o:p></span></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;color:black">NASA/GSFC, Code 610.2</span><span style="font-size:9.0pt">
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;color:#AFABAB">Building 32, Room S159<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">gradsusr <gradsusr-bounces@gradsusr.org> on behalf of "Perry, Aaron" <axp09171@alumni.northernvermont.edu><br>
<b>Reply-To: </b>GrADS Users Forum <gradsusr@gradsusr.org><br>
<b>Date: </b>Tuesday, April 12, 2022 at 8:45 AM<br>
<b>To: </b>GrADS Users Forum <gradsusr@gradsusr.org><br>
<b>Subject: </b>[EXTERNAL] Re: [gradsusr] Plotting xcbar.gs Even When There is No Valid Data<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Thank you very much for the quick reply, Jennifer!<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">So to reiterate, I need to save the 'q shades' output from a forecast hour with valid data and then use that same output for a forecast hour that has no data, (instead of running 'q shades' again
 on the forecast hour with no data) therefore preserving the desired colorbar on the plot.<o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div id="Signature">
<div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><b><span style="font-size:14.0pt;color:#006FC9">Aaron Perry</span></b><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;color:#006FC9">Meteorologist<br>
Class of '16<br>
Northern Vermont University-Lyndon</span><span style="font-family:"Tahoma",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;color:#006FC9">(formerly Lyndon State College)</span><span style="font-size:12.0pt;color:#006FC9"><br>
Boston, Mass.</span><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;color:#006FC9">Twitter:
<a href="https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FAaronPerryWx&data=04%7C01%7Cjennifer.m.adams%40nasa.gov%7C212c8c7fc97745df511608da1c826154%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637853643559040830%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=%2FeZ1nh7ml9FrDOrEP%2Bs3hm1bQQf44wxKNlhYa8RNb5g%3D&reserved=0">
@AaronPerryWx</a></span><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;color:#006FC9">Email: </span><span style="font-size:12.0pt;color:black"><a href="mailto:axp09171@vsc.edu" title="axp09171@vsc.edu">axp09171@vsc.edu</a></span><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="0" width="100%" align="center">
</div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> gradsusr <gradsusr-bounces@gradsusr.org> on behalf of Jennifer M Adams <jadams21@gmu.edu><br>
<b>Sent:</b> Tuesday, April 12, 2022 7:31 AM<br>
<b>To:</b> (gradsusr@gradsusr.org) <gradsusr@gradsusr.org><br>
<b>Subject:</b> Re: [gradsusr] Plotting xcbar.gs Even When There is No Valid Data</span>
<o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<h4 style="background:white"><span style="color:red">This message is from an external sender. Please be careful when clicking on links and attachments.<o:p></o:p></span></h4>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">The colorbar scripts generally run 'q shades' and then parse the output in the 'result' variable. I have worked around this by setting up a plot with the contour levels and colors I want, then
 saving the output from 'q shades' in a script variable for later use:<br>
'q shades'<br>
_shdinfo = result<br>
<br>
Then I append a modified copy of the colorbar script as a function in my main drawing script that uses _shdinfo instead of running 'q shades' again.
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">--Jennifer<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="0" width="100%" align="center">
</div>
<div id="x_divRplyFwdMsg">
<p class="MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> gradsusr <gradsusr-bounces@gradsusr.org> on behalf of Perry, Aaron <axp09171@alumni.northernvermont.edu><br>
<b>Sent:</b> Tuesday, April 12, 2022 4:29 AM<br>
<b>To:</b> (gradsusr@gradsusr.org) <gradsusr@gradsusr.org><br>
<b>Subject:</b> [gradsusr] Plotting xcbar.gs Even When There is No Valid Data</span>
<o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Good Morning All,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">I am trying to figure out a way to plot xcbar.gs even when there is no valid data in the grid to plot.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">For instance, there is no GFS precipitation values in a certain domain, say the Northeastern US, for Forecast Hour 12. xcbar.gs says that there is no shading information and therefore, does not
 plot a colorbar for that one frame. I want to have that precipitation colorbar plot for every frame regardless of if there is data in the grid or not.<o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">I've tried going into xcbar.gs to see if there is an override to plot regardless of valid data or not but, there doesn't appear to be.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Any and all suggestions would be greatly appreciated.<o:p></o:p></span></p>
</div>
<div id="x_x_Signature">
<div>
<div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><b><span style="font-size:14.0pt;color:#006FC9">Aaron Perry</span></b><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;color:#006FC9">Meteorologist<br>
Class of '16<br>
Northern Vermont University-Lyndon</span><span style="font-family:"Tahoma",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;color:#006FC9">(formerly Lyndon State College)</span><span style="font-size:12.0pt;color:#006FC9"><br>
Boston, Mass.</span><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;color:#006FC9">Twitter:
<a href="https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsecure-web.cisco.com%2F1egToesz6FY1dQvl09040rrssQtgZSpZ37u0JC_BhMIqqGXDaOKm_GcDP8OZxfw5NJlqqFuoRKoKn2aXLLHz9lGrlKhdHibrlncd2fl0OlueWSALz8zjKx2Izbrd-LyQCFWj0MqKzgH_mksX34UIKC1VbG1_FBggf_vjEgGoxBL4zBoj1MVHm6S4jxv_uKfwbNLx3eKyftRZwBp2AWbzJ1CmTLAzSyX6MIl2g5HJ1zXFiGCIsLCK13RYrT53_lKb3Td_kTlxK4Q5KlGLw1UjBqktTn1Tp-yowSGIvKMO9CTBSsEyShaWNwIN6GLt1aw4CJj1NXJPDTnS4ANRpo3RphXFkpbfklh77_t-H9dgk-5yCcr3D8gt8zas1IivafPUV0EgxvOIzWrcY5zClfmgVUq2nOZUWKttKxLA2XKWtwLgt9CSk1kLr63d5eQykYA2fPEs3gXwIs5wJ7We-gs1AzQ%2Fhttps%253A%252F%252Ftwitter.com%252FAaronPerryWx&data=04%7C01%7Cjennifer.m.adams%40nasa.gov%7C212c8c7fc97745df511608da1c826154%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637853643559040830%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=zCySWJLj%2FU%2BukbJHA3NSX3I%2FTnLUwZDT47NS6gtLaFE%3D&reserved=0">
@AaronPerryWx</a></span><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:12.0pt;color:#006FC9">Email: </span><span style="font-size:12.0pt;color:black"><a href="mailto:axp09171@vsc.edu" title="axp09171@vsc.edu">axp09171@vsc.edu</a></span><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>