Pulled these steps out of the for loop, perform first:
-instantiate the air temp array once
-nan out the null values (-9999)
-convert from c to f
In the for loop:
-create a copy of tair (subtair)
-use this copy to isolate values in the given threshold range
-when setting the data on the stationplot use the 'value' variable instead of using x again in the threshold to find the color value
Changes made to support automatically build and deployment of documentation website
Add a new directory and yml file for the auto-build/deployment:
.github/workflows/ dir was created
sphinx_build_deploy.yml was created which is triggered when a change is made to the docs/ or examples/ directories. This action builds the html pages using sphinx and then deploys them to our webpage by pushing them into the gh-pages branch
Updated the docs/requirements.txt file to include numpy so sphinx can build all the pages properly
Modified the index.rst page to have some of the environment install instructions in code blocks instead of a bulleted list
Updated notebooks to have the '%matplotlib inline' call after the imports in the code so that the webpage renders properly:
Colored_Surface_Tempertature_Plot.ipynb
METAR_Station_Plot_with_MetPy.ipynb
Regional_Surface_Obs_Plot.ipynb
-fixed the xlabels_top and ylabels_right warning by using top_labels and right_labels instead
-fixed the invalid transform error by using PlateCarree() instead of Geodetic()
-fixed the 'extend' warning by moving it from the colorbar() function to the contourf() function
Change the preview for Grid Levels and Parameters since the colorbar changed for the second example
Changed the preview for Model sounding data since the hodograph location moved
For the contourf function (last code block) the extend='both' parameter has to be passed into the contourf() function and removed from the colorbar() function in order to work and to not get a warning.