<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I've modified (highlighted text) Lines 157 through 189 in xcbar.gs to save the result (a text file called ref_shade_info) of 'q shades' for future use. I'm having trouble figuring out how to use the _shdinfo variable you had suggested for use outside of xcbar.gs.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I've also attached ref_shade_info to this email for reference.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
My colorbar is</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<u><b>My Attempt:</b></u></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
*** get shade information ***
<div>  if( cnum = -1 )</div>
<div>*    'q shades'</div>
<div><span style="background-color: rgb(255, 255, 0);">     istat = 0</span></div>
<div><span style="background-color: rgb(255, 255, 0);">     while (istat != 2)</span></div>
<div><br>
</div>
<div><span style="background-color: rgb(255, 255, 0);">     data = read('ref_shade_info')</span></div>
<div><span style="background-color: rgb(255, 255, 0);">     shdinfo = sublin(data,2)</span></div>
<div><span style="background-color: rgb(255, 255, 0);">     say shdinfo</span></div>
<div>*    dummy=write('ref_shade_info',shdinfo)</div>
<div>    if ( subwrd( shdinfo, 1 ) = 'None' ) </div>
<div>      say 'Error in xcbar.gs: No shading information'</div>
<div>      return</div>
<div>    endif</div>
<div><br>
</div>
<div>* number of colors</div>
<div>    cnum = subwrd( shdinfo, 5 )</div>
<div>    if( cnum <= 0 )</div>
<div>      say 'Error in xcbar.gs: Number of color is zero'</div>
<div>      return</div>
<div>    endif</div>
<div><br>
</div>
<div>* color and (higher) levels</div>
<div>    i = 1</div>
<div>    while( i <= cnum )</div>
<div>      rec = sublin( shdinfo, i+1 )</div>
<div>      col.i = subwrd( rec, 1 )</div>
<div>      hi.i = subwrd( rec, 3 )</div>
<div>      i = i + 1</div>
<div>    endwhile</div>
<div><span style="background-color: rgb(255, 255, 0);">    endwhile</span></div>
<div><br>
</div>
  endif<br>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Am I on the right track?</div>
<div id="Signature">
<div>
<div id="divtagdefaultwrapper" dir="ltr" style="color:rgb(0,0,0); background-color:rgb(255,255,255); font-family:Calibri,Arial,Helvetica,sans-serif">
</div>
<div dir="ltr" style="color:rgb(0,0,0); background-color:rgb(255,255,255); font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="font-size:13px; color:rgb(0,0,0); font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><span style="font-size:12pt"><br>
</span></font></font></div>
<span style="font-size:12pt; font-size:12pt"></span>
<div style="font-size:13px; color:rgb(0,0,0); font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9" style=""><span style="font-size:11pt"><b><span style="font-size:14pt">Aaron
 Perry</span></b></span></font></font></div>
<div style="color:rgb(0,0,0); font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif" style=""><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9" style="font-size:13px"><span style="font-size:11pt"><span style="font-size:14pt"></span></span></font><font face="Calibri,Arial,Helvetica,sans-serif" color="#006FC9" style=""><span style="font-size:12pt">Meteorologist<br>
</span><span style="font-size:12pt"></span></font><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9" style="font-size:13px"><span style="font-size:12pt">Class of '16</span></font><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9" style="font-size:13px"><span style="font-size:12pt"><br>
</span></font><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9" style="font-size:13px"><span style="font-size:12pt">Northern Vermont University-Lyndon</span></font></font></div>
<div style="font-size:13px; color:rgb(0,0,0); font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><span style="font-size:12pt"><span style="font-size:10pt">(formerly </span><span style="font-size:10pt">Lyndon
 State College)</span></span></font><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><span style="font-size:12pt"><br>
<span style="font-size:12pt"></span><span style="font-size:12pt">Boston, Mass.</span></span></font></font></div>
<span style="font-size:12pt"></span>
<div style="font-size:13px; color:rgb(0,0,0); font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font size="2" color="#006FC9"><span style="font-size:12pt"><span style="font-size:12pt">Twitter:
</span><a href="https://twitter.com/AaronPerryWx" class="OWAAutoLink"><span style="font-size:12pt">@AaronPerryWx</span></a></span></font><font size="2"><span style="font-size:11pt"><span style="font-size:12pt"><a href="https://twitter.com/arnpry" target="_blank" id="LPNoLP"></a><a href="https://twitter.com/AaronPerryWx" class="OWAAutoLink"></a></span></span></font></font></div>
<span style="font-size:12pt"></span>
<div style="font-size:13px; color:rgb(0,0,0); font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><span style="font-size:12pt">Email: </span></font><font face="Calibri,Arial,Helvetica,sans-serif" size="2"><span style="font-size:12pt"><a href="mailto:axp09171@vsc.edu" title="axp09171@vsc.edu">axp09171@vsc.edu</a></span></font></font></div>
</div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> gradsusr <gradsusr-bounces@gradsusr.org> on behalf of Perry, Aaron <axp09171@alumni.northernvermont.edu><br>
<b>Sent:</b> Tuesday, April 12, 2022 9:08 AM<br>
<b>To:</b> GrADS Users Forum <gradsusr@gradsusr.org><br>
<b>Subject:</b> Re: [gradsusr] [EXTERNAL] Re: Plotting xcbar.gs Even When There is No Valid Data</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<h4 style="display:block; color:#ff0000; background-color:white; font-size:16px; font-weight:bold">
This message is from an external sender. Please be careful when clicking on links and attachments.</h4>
<br>
<br>
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Ok, thank you for that clarification!</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I will give the process a try and update back later today.</div>
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div id="x_Signature">
<div>
<div dir="ltr" style="color:rgb(0,0,0); background-color:rgb(255,255,255); font-family:Calibri,Arial,Helvetica,sans-serif">
<span style="font-size:12pt; font-size:12pt"></span>
<div style="font-size:13px; color:rgb(0,0,0); font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9" style=""><span style="font-size:11pt"><b><span style="font-size:14pt">Aaron
 Perry</span></b></span></font></font></div>
<div style="color:rgb(0,0,0); font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif" style=""><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9" style="font-size:13px"><span style="font-size:11pt"><span style="font-size:14pt"></span></span></font><font face="Calibri,Arial,Helvetica,sans-serif" color="#006FC9" style=""><span style="font-size:12pt">Meteorologist<br>
</span><span style="font-size:12pt"></span></font><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9" style="font-size:13px"><span style="font-size:12pt">Class of '16</span></font><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9" style="font-size:13px"><span style="font-size:12pt"><br>
</span></font><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9" style="font-size:13px"><span style="font-size:12pt">Northern Vermont University-Lyndon</span></font></font></div>
<div style="font-size:13px; color:rgb(0,0,0); font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><span style="font-size:12pt"><span style="font-size:10pt">(formerly </span><span style="font-size:10pt">Lyndon
 State College)</span></span></font><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><span style="font-size:12pt"><br>
<span style="font-size:12pt"></span><span style="font-size:12pt">Boston, Mass.</span></span></font></font></div>
<span style="font-size:12pt"></span>
<div style="font-size:13px; color:rgb(0,0,0); font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font size="2" color="#006FC9"><span style="font-size:12pt"><span style="font-size:12pt">Twitter:
</span><a href="https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FAaronPerryWx&data=04%7C01%7Caxp09171%40alumni.northernvermont.edu%7C6b8e23658adc4d3da1d908da1c85936b%7Cb17e9703dbdd49fa909c03dfd13086af%7C0%7C0%7C637853657280406001%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=vEITpmkWlT0v3np04coH2eVD0lnENPdXcm1i81gQZL4%3D&reserved=0" originalsrc="https://twitter.com/AaronPerryWx" shash="Xqw5c4wif/mxkstRBAUYJcZ6wD7w3Nf8dDJWhQgMmxzWhRgk2dqTnbBsmlu2DM4gBwp+OehXTRhzCQ34UDseaqUiCs6Xbp8e5jxmWCvipxHks8LAvfeMahvFpjytwIvo5hfy0yerF4QUTx1yR1Ca8zhRON/uAZ8s0DO2PjZ1BlM=" class="x_OWAAutoLink"><span style="font-size:12pt">@AaronPerryWx</span></a></span></font><font size="2"><span style="font-size:11pt"><span style="font-size:12pt"><a href="https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2Farnpry&data=04%7C01%7Caxp09171%40alumni.northernvermont.edu%7C6b8e23658adc4d3da1d908da1c85936b%7Cb17e9703dbdd49fa909c03dfd13086af%7C0%7C0%7C637853657280406001%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=EVRRI4Ir6rf9ngT7E7aIV5UsOtl%2FHRzRHhqHv7lH5Kk%3D&reserved=0" originalsrc="https://twitter.com/arnpry" shash="kpl9ilKpFTQCW8VHKfy8qwsRkKBiQGn3fOGgWbjL3K3JJy5jbaiBFUfZC23fZvBoV8zAYWTWLlGCIp3CLY3m7rA0bylODQOTZf7Q4Px2y8Vha/1ZU3LQ3XYYy0gGSd6uBTToVoaZ3q4cPkbKSPBnKdT3Q5kTJYEcb/emjBF0Q7M=" target="_blank" id="LPNoLP"></a><a href="https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FAaronPerryWx&data=04%7C01%7Caxp09171%40alumni.northernvermont.edu%7C6b8e23658adc4d3da1d908da1c85936b%7Cb17e9703dbdd49fa909c03dfd13086af%7C0%7C0%7C637853657280406001%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=vEITpmkWlT0v3np04coH2eVD0lnENPdXcm1i81gQZL4%3D&reserved=0" originalsrc="https://twitter.com/AaronPerryWx" shash="Xqw5c4wif/mxkstRBAUYJcZ6wD7w3Nf8dDJWhQgMmxzWhRgk2dqTnbBsmlu2DM4gBwp+OehXTRhzCQ34UDseaqUiCs6Xbp8e5jxmWCvipxHks8LAvfeMahvFpjytwIvo5hfy0yerF4QUTx1yR1Ca8zhRON/uAZ8s0DO2PjZ1BlM=" class="x_OWAAutoLink"></a></span></span></font></font></div>
<span style="font-size:12pt"></span>
<div style="font-size:13px; color:rgb(0,0,0); font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font face="Calibri,Arial,Helvetica,sans-serif" size="2" color="#006FC9"><span style="font-size:12pt">Email: </span></font><font face="Calibri,Arial,Helvetica,sans-serif" size="2"><span style="font-size:12pt"><a href="mailto:axp09171@vsc.edu" title="axp09171@vsc.edu">axp09171@vsc.edu</a></span></font></font></div>
</div>
</div>
</div>
</div>
<div id="x_appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> gradsusr <gradsusr-bounces@gradsusr.org> on behalf of Adams, Jennifer M. (GSFC-610.2)[ADNET SYSTEMS INC] <jennifer.m.adams@nasa.gov><br>
<b>Sent:</b> Tuesday, April 12, 2022 8:49 AM<br>
<b>To:</b> GrADS Users Forum <gradsusr@gradsusr.org><br>
<b>Subject:</b> Re: [gradsusr] [EXTERNAL] Re: Plotting xcbar.gs Even When There is No Valid Data</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
p.x_x_MsoNormal, li.x_x_MsoNormal, div.x_x_MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
h4
        {margin-right:0in;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;
        font-weight:bold}
a:link, span.x_x_MsoHyperlink
        {color:blue;
        text-decoration:underline}
span.x_x_Heading4Char
        {font-family:"Calibri Light",sans-serif;
        color:#2F5496;
        font-style:italic}
span.x_x_EmailStyle20
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
-->
</style>
<div lang="EN-US" style="word-wrap:break-word">
<h4 style="display:block; color:#ff0000; background-color:white; font-size:16px; font-weight:bold">
This message is from an external sender. Please be careful when clicking on links and attachments.</h4>
<br>
<br>
<div>
<div class="x_x_WordSection1">
<p class="x_x_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.
</p>
<p class="x_x_MsoNormal"> </p>
<div>
<p class="x_x_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)</span></span></p>
<p class="x_x_MsoNormal"><span style="font-size:9.0pt; color:black">NASA/GSFC, Code 610.2</span><span style="font-size:9.0pt">
</span></p>
<p class="x_x_MsoNormal"><span style="font-size:9.0pt; color:#AFABAB">Building 32, Room S159</span></p>
</div>
<p class="x_x_MsoNormal"> </p>
<p class="x_x_MsoNormal"> </p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_x_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</span></p>
</div>
<div>
<p class="x_x_MsoNormal"> </p>
</div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black">Thank you very much for the quick reply, Jennifer!</span></p>
</div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_x_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.</span></p>
</div>
<div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div id="x_x_Signature">
<div>
<div>
<div>
<p class="x_x_MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black"> </span></p>
</div>
<div>
<p class="x_x_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"></span></p>
</div>
<div>
<p class="x_x_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"></span></p>
</div>
<div>
<p class="x_x_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"></span></p>
</div>
<div>
<p class="x_x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:#006FC9">Twitter:
<a href="https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2FAaronPerryWx&data=04%7C01%7Caxp09171%40alumni.northernvermont.edu%7C6b8e23658adc4d3da1d908da1c85936b%7Cb17e9703dbdd49fa909c03dfd13086af%7C0%7C0%7C637853657280406001%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=vEITpmkWlT0v3np04coH2eVD0lnENPdXcm1i81gQZL4%3D&reserved=0" originalsrc="https://twitter.com/AaronPerryWx" shash="Xqw5c4wif/mxkstRBAUYJcZ6wD7w3Nf8dDJWhQgMmxzWhRgk2dqTnbBsmlu2DM4gBwp+OehXTRhzCQ34UDseaqUiCs6Xbp8e5jxmWCvipxHks8LAvfeMahvFpjytwIvo5hfy0yerF4QUTx1yR1Ca8zhRON/uAZ8s0DO2PjZ1BlM=" originalsrc="https://twitter.com/AaronPerryWx" shash="IA9UMf+WWu50lD8hc8xBxmhKf1qhbDq5sdkfq7a7fEzsnWQ0gn4+BLCJZ9wIHaaowk76QiLV0nElsGkSctdrCbQKbG9Yped/Vs64pGjjKPIyc+D+SuTq3CoJDlwV5LS+hh9fkcmShkIZpthywAcqaauFmHH9aofBs7YiQaykWNg=">
@AaronPerryWx</a></span><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black"></span></p>
</div>
<div>
<p class="x_x_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"></span></p>
</div>
</div>
</div>
</div>
</div>
<div class="x_x_MsoNormal" align="center" style="text-align:center">
<hr size="0" width="100%" align="center">
</div>
<div id="x_x_divRplyFwdMsg">
<p class="x_x_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>
</p>
<div>
<p class="x_x_MsoNormal"> </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.</span></h4>
<p class="x_x_MsoNormal" style="margin-bottom:12.0pt"> </p>
<div>
<div>
<p class="x_x_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.
</span></p>
</div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black">--Jennifer</span></p>
</div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div class="x_x_MsoNormal" align="center" style="text-align:center">
<hr size="0" width="100%" align="center">
</div>
<div id="x_x_x_divRplyFwdMsg">
<p class="x_x_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>
</p>
<div>
<p class="x_x_MsoNormal"> </p>
</div>
</div>
<div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black">Good Morning All,</span></p>
</div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_x_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.</span></p>
</div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_x_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.</span></p>
</div>
<div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_x_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.</span></p>
</div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black">Any and all suggestions would be greatly appreciated.</span></p>
</div>
<div id="x_x_x_x_Signature">
<div>
<div>
<div>
<p class="x_x_MsoNormal" style="background:white"><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black"> </span></p>
</div>
<div>
<p class="x_x_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"></span></p>
</div>
<div>
<p class="x_x_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"></span></p>
</div>
<div>
<p class="x_x_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"></span></p>
</div>
<div>
<p class="x_x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:#006FC9">Twitter:
<a href="https://nam04.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%7Caxp09171%40alumni.northernvermont.edu%7C6b8e23658adc4d3da1d908da1c85936b%7Cb17e9703dbdd49fa909c03dfd13086af%7C0%7C0%7C637853657280406001%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=aCZ4zn5ezSyngffCAkEoK2hvEnU154arCKFzegvQGgY%3D&reserved=0" originalsrc="https://secure-web.cisco.com/1egToesz6FY1dQvl09040rrssQtgZSpZ37u0JC_BhMIqqGXDaOKm_GcDP8OZxfw5NJlqqFuoRKoKn2aXLLHz9lGrlKhdHibrlncd2fl0OlueWSALz8zjKx2Izbrd-LyQCFWj0MqKzgH_mksX34UIKC1VbG1_FBggf_vjEgGoxBL4zBoj1MVHm6S4jxv_uKfwbNLx3eKyftRZwBp2AWbzJ1CmTLAzSyX6MIl2g5HJ1zXFiGCIsLCK13RYrT53_lKb3Td_kTlxK4Q5KlGLw1UjBqktTn1Tp-yowSGIvKMO9CTBSsEyShaWNwIN6GLt1aw4CJj1NXJPDTnS4ANRpo3RphXFkpbfklh77_t-H9dgk-5yCcr3D8gt8zas1IivafPUV0EgxvOIzWrcY5zClfmgVUq2nOZUWKttKxLA2XKWtwLgt9CSk1kLr63d5eQykYA2fPEs3gXwIs5wJ7We-gs1AzQ/https%3A%2F%2Ftwitter.com%2FAaronPerryWx" shash="xABnfR061srVAF0wGLXu+2s6j1RgKE4mNIaiS8OvRVH1eFJMY5xDg4LQKlONbORNjIWhv4lZRTiwM/A2Uzx43ZlgsZjApYlpTuhDaMMZEr0RPIXzGpzVVjrIij4I03jAGGHJVLTwVISfJs70+xJvxwHg0+rGtv5bocw6Pqvsj7U=" originalsrc="https://secure-web.cisco.com/1egToesz6FY1dQvl09040rrssQtgZSpZ37u0JC_BhMIqqGXDaOKm_GcDP8OZxfw5NJlqqFuoRKoKn2aXLLHz9lGrlKhdHibrlncd2fl0OlueWSALz8zjKx2Izbrd-LyQCFWj0MqKzgH_mksX34UIKC1VbG1_FBggf_vjEgGoxBL4zBoj1MVHm6S4jxv_uKfwbNLx3eKyftRZwBp2AWbzJ1CmTLAzSyX6MIl2g5HJ1zXFiGCIsLCK13RYrT53_lKb3Td_kTlxK4Q5KlGLw1UjBqktTn1Tp-yowSGIvKMO9CTBSsEyShaWNwIN6GLt1aw4CJj1NXJPDTnS4ANRpo3RphXFkpbfklh77_t-H9dgk-5yCcr3D8gt8zas1IivafPUV0EgxvOIzWrcY5zClfmgVUq2nOZUWKttKxLA2XKWtwLgt9CSk1kLr63d5eQykYA2fPEs3gXwIs5wJ7We-gs1AzQ/https%3A%2F%2Ftwitter.com%2FAaronPerryWx" shash="YP4cXjv0upkSwR/cqluPTsTS2fRarAbz5mZGOTy+4eztWkmN1yKDEunVah1ekbEpS/D2cRWBn5RUMWHdz/ANBV86Gdm0oltQwse1QpJ7OjrK5OZ3w+DeO0yfg2u/tI6YeAyifgOe4iqVJgBPAM9pfXInq2YFjkPj43IhH8465eg=">
@AaronPerryWx</a></span><span style="font-size:10.0pt; font-family:"Tahoma",sans-serif; color:black"></span></p>
</div>
<div>
<p class="x_x_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"></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>