[gradsusr] Plotting xcbar.gs Even When There is No Valid Data

Perry, Aaron axp09171 at alumni.northernvermont.edu
Tue Apr 12 08:11:27 EDT 2022


Thank you very much for the quick reply, Jennifer!

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.


Aaron Perry
Meteorologist
Class of '16
Northern Vermont University-Lyndon
(formerly Lyndon State College)
Boston, Mass.
Twitter: @AaronPerryWx<https://twitter.com/AaronPerryWx><https://twitter.com/arnpry><https://twitter.com/AaronPerryWx>
Email: axp09171 at vsc.edu<mailto:axp09171 at vsc.edu>
________________________________
From: gradsusr <gradsusr-bounces at gradsusr.org> on behalf of Jennifer M Adams <jadams21 at gmu.edu>
Sent: Tuesday, April 12, 2022 7:31 AM
To: (gradsusr at gradsusr.org) <gradsusr at gradsusr.org>
Subject: Re: [gradsusr] Plotting xcbar.gs Even When There is No Valid Data

This message is from an external sender. Please be careful when clicking on links and attachments.


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:
'q shades'
_shdinfo = result

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.
--Jennifer

________________________________
From: gradsusr <gradsusr-bounces at gradsusr.org> on behalf of Perry, Aaron <axp09171 at alumni.northernvermont.edu>
Sent: Tuesday, April 12, 2022 4:29 AM
To: (gradsusr at gradsusr.org) <gradsusr at gradsusr.org>
Subject: [gradsusr] Plotting xcbar.gs Even When There is No Valid Data

Good Morning All,

I am trying to figure out a way to plot xcbar.gs even when there is no valid data in the grid to plot.

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.

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.

Any and all suggestions would be greatly appreciated.

Aaron Perry
Meteorologist
Class of '16
Northern Vermont University-Lyndon
(formerly Lyndon State College)
Boston, Mass.
Twitter: @AaronPerryWx<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%7C21e556e6178c4056b09c08da1c781cc4%7Cb17e9703dbdd49fa909c03dfd13086af%7C0%7C0%7C637853599937083767%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=PHZNIST1ZgEuXgHQn7bN1%2BPK7Gyi6fPjHNVrtgcwWn0%3D&reserved=0><https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsecure-web.cisco.com%2F1Jwrw2l3rbZg2fJIwt0T_-T6v7_qhACpl3meRj2Lh16RITugfAHgbhnR8bRFZfqRnKF0vw3BpAGOQQ5k4lYOkCcPI9aPRccC6WCKaGY8CWJnnu5wdfTZXoyjCiEaCsUD0QoyGWusdf34QLnUwoNQ5ZDGWTzf_zRlC4EU5qgjb8OrvTdUXS9UshGV0-sUpHV-MDzo0aR9cZ1ruTIGmaovcGRDK9YtM4mb98jmT0I6ODcJvikbSFEoBnOsWTwUTvJnDEgYNUBrvIFnH4mhVzKz2Shf2lfsyhWmIhGknv9P_Nx69N0yTOX-Yos8IEr6Mz2ZoBrY1yBNCZERLFrzRYcRGGoTeCbku7pUlhlJFyT2XtP_7r6Xld1OM46K2YBcXndhesBFaenI77KmsGDiheO4O4GYCSgLppre0h6PMtqiUdR_y9iRk00S1UAvTeeMORoNx7R0r8b5YW5Kxo080eT0puA%2Fhttps%253A%252F%252Ftwitter.com%252Farnpry&data=04%7C01%7Caxp09171%40alumni.northernvermont.edu%7C21e556e6178c4056b09c08da1c781cc4%7Cb17e9703dbdd49fa909c03dfd13086af%7C0%7C0%7C637853599937083767%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=yGpgfZ%2BBGvK0CS80vwp7T0CHn7pHmbcw%2Bydr9PVKiEg%3D&reserved=0><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%7C21e556e6178c4056b09c08da1c781cc4%7Cb17e9703dbdd49fa909c03dfd13086af%7C0%7C0%7C637853599937083767%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=PHZNIST1ZgEuXgHQn7bN1%2BPK7Gyi6fPjHNVrtgcwWn0%3D&reserved=0>
Email: axp09171 at vsc.edu<mailto:axp09171 at vsc.edu>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20220412/a2ef07cc/attachment-0001.html>


More information about the gradsusr mailing list