<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Rick, it worked! Thank you so much for your time and investigation into this! I deleted the islands in QGIS, ran the script again, and now it is working beautifully!
<div class=""><br class="">
</div>
<div class="">Best regards,</div>
<div class="">Toni</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class=""><b style="color: rgb(51, 51, 153); background-color: rgb(255, 255, 255);" class="">Toni Klemm</b><br style="color: rgb(51, 51, 153); background-color: rgb(255, 255, 255);" class="">
<span style="color: rgb(51, 51, 153); background-color: rgb(255, 255, 255);" class="">Ph.D. Candidate</span><br style="color: rgb(51, 51, 153); background-color: rgb(255, 255, 255);" class="">
<span style="color: rgb(51, 51, 153); background-color: rgb(255, 255, 255);" class="">The University of Oklahoma</span><br style="color: rgb(51, 51, 153); background-color: rgb(255, 255, 255);" class="">
<span style="color: rgb(51, 51, 153); background-color: rgb(255, 255, 255);" class="">South Central Climate Science Center</span><br style="color: rgb(51, 51, 153); background-color: rgb(255, 255, 255);" class="">
</div>
<div class=""><span style="color: rgb(51, 51, 153); background-color: rgb(255, 255, 255);" class="">phone: 405 325 1272</span></div>
<div class=""><span style="color: rgb(51, 51, 153); background-color: rgb(255, 255, 255);" class=""><a href="http://www.toni-klemm.de" class="">www.toni-klemm.de</a></span></div>
<div class=""><a href="https://www.eccforum.org" class="">Early Career Climate Forum</a></div>
<div class="">Twitter: <a href="https://twitter.com/ToniKlemm" class="">@toniklemm</a></div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br class="Apple-interchange-newline">
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On May 25, 2017, at 3:15 PM, Rick Brownrigg <<a href="mailto:brownrig@ucar.edu" class="">brownrig@ucar.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div class="">Hi Toni,<br class="">
<br class="">
</div>
Sorry for the delay...this took a bit to figure out.<br class="">
<br class="">
</div>
This *may* be a bug in gc_inout, or perhaps the documentation is misleading. The issue is that although the shapefile says it contains 1 feature, that feature is comprised of 6 "segments": 1 for the large 4 state area and 5 for the islands off the coast of
Texas (see the attached png). This apparently is confusing the in/out tests.<br class="">
<br class="">
</div>
I don't know of a good way of programmatically working around this. As a hack (an extreme hack!), I know from looking at the shapefile that the large 4-state area's coordinates begin at index 56, and extend to the end of the x/y arrays. So if I change your
script from:<br class="">
<br class="">
shp = addfile("./<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__4-5Fstates-5Fmerged.nc&d=DwMFaQ&c=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8sGNk&r=trcSnQNnUT2ddBXcpd358A&m=yJKWezSUje6we6fxpkzLjE7jtiGQ1kGaXuaMupFyefY&s=7NPENOYYTc5LXWJHVC9CzI7gs6KoCRKqxMV-orMtQfo&e=" class="">4_states_merged.nc</a>","r")<br class="">
shp_lat = shp->y<br class="">
shp_lon = shp->x+360 ; adding 360 to get shapefile longitudes in same value range as data longitudes<br class="">
<br class="">
</div>
to<br class="">
<br class="">
shp = addfile("./<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__4-5Fstates-5Fmerged.nc&d=DwMFaQ&c=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8sGNk&r=trcSnQNnUT2ddBXcpd358A&m=yJKWezSUje6we6fxpkzLjE7jtiGQ1kGaXuaMupFyefY&s=7NPENOYYTc5LXWJHVC9CzI7gs6KoCRKqxMV-orMtQfo&e=" class="">4_states_merged.nc</a>","r")<br class="">
shp_lat = shp->y(56:)<br class="">
shp_lon = shp->x(56:)+360 ; adding 360 to get shapefile longitudes in same value range as data longitudes<br class="">
<br class="">
</div>
Then it works, as seen in the second png. <br class="">
<br class="">
</div>
The docs for gc_inout() suggest one should be able to pass in multiple polygons to test against, but as practical matter, I don't see how they would be delineated in the lat/lon arguments, so I suspect the docs are wrong, or maybe the implementation incomplete.<br class="">
<br class="">
</div>
If you have access to something like ArcGIS that can edit shapefiles, the better solution would be to create a simpler mask excluding the island polygons.<br class="">
<br class="">
</div>
Wish I had a better answer, but I hope that helps.<br class="">
</div>
Rick<br class="">
<br class="">
<br class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div class=""><br class="">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Wed, May 24, 2017 at 3:19 PM, Klemm, Toni <span dir="ltr" class="">
<<a href="mailto:toni@ou.edu" target="_blank" class="">toni@ou.edu</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">
<div style="word-wrap:break-word" class="">Hi Rick,
<div class=""><br class="">
</div>
<div class="">Thanks for getting back to me!</div>
<div class=""><br class="">
</div>
<div class="">I got it to work in the meantime using masking example 9 (<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ncl.ucar.edu_Applications_Scripts_mask-5F9.ncl&d=DwMFaQ&c=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8sGNk&r=trcSnQNnUT2ddBXcpd358A&m=yJKWezSUje6we6fxpkzLjE7jtiGQ1kGaXuaMupFyefY&s=ylM244pXeKWXrgrLrfc52xrVmOM31ChELZkdcBRprSw&e=" target="_blank" class="">https://www.ncl.ucar.edu/<wbr class="">Applications/Scripts/mask_9.<wbr class="">ncl</a>),
which looks similar to example 4 on the page you linked (<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__ncl.ucar.edu_Applications_Scripts_shapefiles-5F4.ncl&d=DwMFaQ&c=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8sGNk&r=trcSnQNnUT2ddBXcpd358A&m=yJKWezSUje6we6fxpkzLjE7jtiGQ1kGaXuaMupFyefY&s=6JyGs2nQ3Pgnkmm4jcgRn8kB0Ks0IPIHtcNyKNEPwQw&e=" target="_blank" class="">http://ncl.ucar.edu/<wbr class="">Applications/Scripts/<wbr class="">shapefiles_4.ncl</a>).
The masking worked, but for some reason there is large wedge with missing data right in the middle of my plot now. I imagine it has somewhere to do with the “<i class="">if (MASK_INSIDE) then</i>” loop in my script below, but I can’t figure it out. Do you
have any suggestions? I also attached my original data file, the resulting datafile (_<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__shp.nc&d=DwMFaQ&c=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8sGNk&r=trcSnQNnUT2ddBXcpd358A&m=yJKWezSUje6we6fxpkzLjE7jtiGQ1kGaXuaMupFyefY&s=9z-ZdsoHo55bNj8sxbMN37AfvDWtsfEEJBhFNHPs7qw&e=" target="_blank" class="">shp.nc</a>)
and plot, and the .nc file of my study area. This shapefile was created in ArcMap 10.3 from the states.* files in the <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ncl.ucar.edu_Applications_Data_-23shp&d=DwMFaQ&c=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8sGNk&r=trcSnQNnUT2ddBXcpd358A&m=yJKWezSUje6we6fxpkzLjE7jtiGQ1kGaXuaMupFyefY&s=VUSaP80OlWKgR2W9u6MrYascvWy6DMd8D4Jr1ocakfI&e=" target="_blank" class="">NCL
shapefile set</a> and converted to .nc using ncl_convert2nc. </div>
<div class=""><br class="">
</div>
<div class="">Again, thank you very much!</div>
<div class=""><br class="">
</div>
<div class="">Best,</div>
<div class="">Toni</div>
<div class=""><br class="">
</div>
<div class="">Script:</div>
<div class=""><br class="">
</div>
<div class="">
<div class=""><i class="">; ******************************<wbr class="">******************************<wbr class="">*****</i></div>
<div class=""><i class="">; Create map of GFDL-OBS bias averages by FORECAST MONTH 1980-2014</i></div>
<div class=""><i class="">; </i></div>
<div class=""><i class="">; Use SHAPEFILE OF STUDY REGION to define subset and plot</i></div>
<div class=""><i class="">; ******************************<wbr class="">******************************<wbr class="">*****</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class="">load "$NCARG_ROOT/lib/ncarg/<wbr class="">nclscripts/csm/gsn_code.ncl"</i></div>
<div class=""><i class="">load "$NCARG_ROOT/lib/ncarg/<wbr class="">nclscripts/csm/gsn_csm.ncl"</i></div>
<div class=""><i class="">load "$NCARG_ROOT/lib/ncarg/<wbr class="">nclscripts/csm/contributed.<wbr class="">ncl"</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class="">; ******************************<wbr class="">******************************</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class="">begin</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class="">do target_month = 1,12<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span> ; do-loop through the 12 calendar months</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> <span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>if (target_month .lt. 10) then</i></div>
<div class=""><i class=""> <span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span> target_month_zero = "0" + target_month<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; turns "1"..."9" into "01"..."09" to match filename structure (months have 2 digits"</i></div>
<div class=""><i class=""> <span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>end if</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> if (target_month .gt. 9) then</i></div>
<div class=""><i class=""> target_month_zero = target_month<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; leaves "10..."12" unchanged</i></div>
<div class=""><i class=""> end if</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> print("**** START: target_month " + target_month + " ****")</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> ; ******************************<wbr class="">***********************</i></div>
<div class=""><i class=""> ; READ IN FILE INFORMATION BY TARGET MONTH</i></div>
<div class=""><i class=""> ; ******************************<wbr class="">***********************</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class="">; *****</i></div>
<div class=""><i class="">print("1 - Read in file information")</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> bias_f = addfile("~/GFDL/TAS/DATAFILES/<wbr class="">monthly/5b-4alt_GFDL_TAS_bias/<wbr class="">avg_by_target_month/stack/<wbr class="">GFDL_TAS_bias_1980-2014_<wbr class="">target_" + target_month_zero + ".nc","r")</i></div>
<div class=""><i class=""> print("Finished: 1/8 Read in multiple files")</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> ; ******************************<wbr class="">*****************</i></div>
<div class=""><i class=""> ; READ IN THE VARIABLE (precipitation)</i></div>
<div class=""><i class=""> ; ******************************<wbr class="">*****************</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> print("2 - Read in variable and dimensions and average all years")</i></div>
<div class=""><i class=""> lat = (/bias_f->lat/)</i></div>
<div class=""><i class=""> lon = (/bias_f->lon/)</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> printMinMax(lat, False)</i></div>
<div class=""><i class=""> printMinMax(lon, False)</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> nlat = dimsizes(lat)</i></div>
<div class=""><i class=""> lat!0 = "lat"</i></div>
<div class=""><i class=""> lat&lat = lat</i></div>
<div class=""><i class=""> lat@long_name = "latitude"</i></div>
<div class=""><i class=""> lat@units = "degrees_north"</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> mlon = dimsizes(lon)</i></div>
<div class=""><i class=""> lon!0 = "lon"</i></div>
<div class=""><i class=""> lon&lon = lon</i></div>
<div class=""><i class=""> lon@long_name = "longitude"</i></div>
<div class=""><i class=""> lon@units = "degrees_east"</i></div>
<div class=""><i class=""> </i></div>
<div class=""><i class=""> GFDL_bias_3D = rm_single_dims(bias_f->GFDL_<wbr class="">OBS_bias)<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span><span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap"></span>; extract precipitation into new variable, output is mm/day</i></div>
<div class=""><i class=""> GFDL_bias_2D = dim_avg_n(GFDL_bias_3D,0) ; averaging all bias for GFDL and LTM made in that month for 1985-2010</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> min_bias = decimalPlaces(min(GFDL_bias_<wbr class="">2D),2,True)</i></div>
<div class=""><i class=""> max_bias = decimalPlaces(max(GFDL_bias_<wbr class="">2D),2,True)</i></div>
<div class=""><i class=""> avg_bias = decimalPlaces(avg(GFDL_bias_<wbr class="">2D),2,True)</i></div>
<div class=""><i class=""> </i></div>
<div class=""><i class="">; printVarSummary(GFDL_bias_2D)</i></div>
<div class=""><i class=""> </i></div>
<div class=""><i class="">; GFDL_bias_2D@_FillValue = 1.0E20</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class="">; printVarSummary(GFDL_bias_2D)</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class="">; printVarSummary(GFDL_bias_3D)</i></div>
<div class=""><i class="">; printVarSummary(GFDL_bias_2D)</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class="">; ******************************<wbr class="">***********</i></div>
<div class=""><i class="">; ***** Read in shapefile information ***** (source: <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ncl.ucar.edu_Applications_Scripts_mask-5F9.ncl&d=DwMFaQ&c=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8sGNk&r=trcSnQNnUT2ddBXcpd358A&m=yJKWezSUje6we6fxpkzLjE7jtiGQ1kGaXuaMupFyefY&s=ylM244pXeKWXrgrLrfc52xrVmOM31ChELZkdcBRprSw&e=" target="_blank" class="">
https://www.ncl.ucar.edu/<wbr class="">Applications/Scripts/mask_9.<wbr class="">ncl</a>)</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> MASK_INSIDE = True ; Whether to mask data inside or outside the given geographical area.</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> shp = addfile("~/States_shapefile_<wbr class="">data/NCL/4_states_merged.shp",<wbr class="">"r")</i></div>
<div class=""><i class=""> shp_lat = shp->y</i></div>
<div class=""><i class=""> shp_lon = shp->x+360 ; adding 360 to get shapefile longitudes in same value range as data longitudes</i></div>
<div class=""><i class="">; printVarSummary(shp_lat)</i></div>
<div class=""><i class="">; printVarSummary(shp_lon)</i></div>
<div class=""><i class=""> printMinMax(shp_lat, False)</i></div>
<div class=""><i class=""> printMinMax(shp_lon, False)</i></div>
<div class=""><i class=""> </i></div>
<div class=""><i class=""> nshp = dimsizes(shp_lon)</i></div>
<div class=""><i class=""> </i></div>
<div class=""><i class=""> min_shp_lat = min(shp_lat)</i></div>
<div class=""><i class=""> max_shp_lat = max(shp_lat)</i></div>
<div class=""><i class=""> min_shp_lon = min(shp_lon)</i></div>
<div class=""><i class=""> max_shp_lon = max(shp_lon)</i></div>
<div class=""><i class=""> </i></div>
<div class=""><i class=""> </i></div>
<div class=""><i class="">; ***** Create new subset based on shapefile ***** (source:
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ncl.ucar.edu_Applications_Scripts_mask-5F9.ncl&d=DwMFaQ&c=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8sGNk&r=trcSnQNnUT2ddBXcpd358A&m=yJKWezSUje6we6fxpkzLjE7jtiGQ1kGaXuaMupFyefY&s=ylM244pXeKWXrgrLrfc52xrVmOM31ChELZkdcBRprSw&e=" target="_blank" class="">
https://www.ncl.ucar.edu/<wbr class="">Applications/Scripts/mask_9.<wbr class="">ncl</a>)</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> if(MASK_INSIDE) then</i></div>
<div class=""><i class="">;---Start with data filled in.</i></div>
<div class=""><i class=""> data_mask = GFDL_bias_2D</i></div>
<div class=""><i class=""> else</i></div>
<div class=""><i class="">;---Start with data all missing</i></div>
<div class=""><i class=""> data_mask = new(dimsizes(GFDL_bias_2D),<wbr class="">typeof(GFDL_bias_2D),GFDL_<wbr class="">bias_2D@_FillValue)</i></div>
<div class=""><i class=""> copy_VarCoords(GFDL_bias_2D,<wbr class="">data_mask)</i></div>
<div class=""><i class=""> end if</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class="">; ***** Determine the boundary lat/lons of the subset region within the lat/lon box </i></div>
<div class=""><i class=""> ilt_mn = ind(min_shp_lat.gt.lat)</i></div>
<div class=""><i class=""> ilt_mx = ind(max_shp_lat.lt.lat)</i></div>
<div class=""><i class=""> iln_mn = ind(min_shp_lon.gt.lon)</i></div>
<div class=""><i class=""> iln_mx = ind(max_shp_lon.lt.lon)</i></div>
<div class=""><i class=""> ilt1 = ilt_mn(dimsizes(ilt_mn)-1) ; Start of lat box</i></div>
<div class=""><i class=""> iln1 = iln_mn(dimsizes(iln_mn)-1) ; Start of lon box</i></div>
<div class=""><i class=""> ilt2 = ilt_mx(0) ; End of lat box</i></div>
<div class=""><i class=""> iln2 = iln_mx(0) ; End of lon box</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> if (MASK_INSIDE) then</i></div>
<div class=""><i class="">; ***** Put missing values in the areas that we want masked. (source:
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ncl.ucar.edu_Applications_Scripts_mask-5F9.ncl&d=DwMFaQ&c=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8sGNk&r=trcSnQNnUT2ddBXcpd358A&m=yJKWezSUje6we6fxpkzLjE7jtiGQ1kGaXuaMupFyefY&s=ylM244pXeKWXrgrLrfc52xrVmOM31ChELZkdcBRprSw&e=" target="_blank" class="">
https://www.ncl.ucar.edu/<wbr class="">Applications/Scripts/mask_9.<wbr class="">ncl</a>)</i></div>
<div class=""><i class=""> do ilt=ilt1,ilt2</i></div>
<div class=""><i class=""> do iln=iln1,iln2</i></div>
<div class=""><i class=""> if(gc_inout(lat(ilt),lon(iln),<wbr class="">shp_lat,shp_lon)) then</i></div>
<div class=""><i class=""> data_mask(ilt,iln) = data_mask@_FillValue ; replace data inside and outside study region with missing values</i></div>
<div class=""><i class=""> end if</i></div>
<div class=""><i class=""> end do</i></div>
<div class=""><i class=""> end do</i></div>
<div class=""><i class=""> else</i></div>
<div class=""><i class="">; ***** Put data back in the areas that we don't want masked. (source:
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ncl.ucar.edu_Applications_Scripts_mask-5F9.ncl&d=DwMFaQ&c=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8sGNk&r=trcSnQNnUT2ddBXcpd358A&m=yJKWezSUje6we6fxpkzLjE7jtiGQ1kGaXuaMupFyefY&s=ylM244pXeKWXrgrLrfc52xrVmOM31ChELZkdcBRprSw&e=" target="_blank" class="">
https://www.ncl.ucar.edu/<wbr class="">Applications/Scripts/mask_9.<wbr class="">ncl</a>)</i></div>
<div class=""><i class=""> do ilt=ilt1,ilt2</i></div>
<div class=""><i class=""> do iln=iln1,iln2</i></div>
<div class=""><i class=""> if(gc_inout(lat(ilt),lon(iln),<wbr class="">shp_lat,shp_lon)) then</i></div>
<div class=""><i class=""> data_mask(ilt,iln) = GFDL_bias_2D(ilt,iln) ; replace missing values *inside* study region with data again</i></div>
<div class=""><i class=""> end if</i></div>
<div class=""><i class=""> end do</i></div>
<div class=""><i class=""> end do</i></div>
<div class=""><i class=""> end if</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> ; ******************************<wbr class="">*****************</i></div>
<div class=""><i class=""> ; WRITE THE AVERAGES INTO NEW netCDF FILE</i></div>
<div class=""><i class=""> ; ******************************<wbr class="">*****************</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> print("3 - Write the averages into new netCDF file")</i></div>
<div class=""><i class=""> </i></div>
<div class=""><i class=""> netCDF1 = False<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; Output format is NetCDF</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> if (netCDF1) then</i></div>
<div class=""><i class=""> diro = "~/GFDL/TAS/DATAFILES/monthly/<wbr class="">5b-4alt_GFDL_TAS_bias/avg_by_<wbr class="">target_month/nc_shp/"<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; output in subdirectory "subset" within input directory</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> filename = "GFDL_TAS_bias_1980-2014_<wbr class="">target_month_" + target_month_zero + "_shp"<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; output filename for subset using initialization year and month to differentiate</i></div>
<div class=""><i class=""> filo = filename +".nc"</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> end if</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> setfileoption("nc","Format","<wbr class="">LargeFile")</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> if (netCDF1) then</i></div>
<div class=""><i class=""> system("/bin/rm -f "+ diro + filo)<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; removes old files with the same name if they are present</i></div>
<div class=""><i class=""> ncdf = addfile(diro + filo,"c")</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> setfileoption(ncdf,"<wbr class="">DefineMode",True)</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> ; create attributes</i></div>
<div class=""><i class=""> fAtt = True</i></div>
<div class=""><i class=""> fAtt@title = "Data: GFDL FLOR-B01 for the Contiguous U.S., Forecast Month " + target_month_zero</i></div>
<div class=""><i class=""> fAtt@source = "Vecchi et al. 2014"</i></div>
<div class=""><i class=""> fAtt@Conventions = "None"</i></div>
<div class=""><i class=""> fAtt@creation_date = systemfunc("date")</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> fileattdef(ncdf,fAtt)</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> dimNames = (/"target_month","lat","lon"/)</i></div>
<div class=""><i class=""> dimSizes = (/dimsizes(target_month),<wbr class="">dimsizes(lat),dimsizes(lon)/)</i></div>
<div class=""><i class=""> dimUnlim = (/True,False,False/)</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> filedimdef(ncdf,dimNames,<wbr class="">dimSizes,dimUnlim)</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> filevardef(ncdf,"target_month"<wbr class="">,typeof(target_month),(/"<wbr class="">target_month"/))</i></div>
<div class=""><i class=""> filevardef(ncdf,"lat",typeof(<wbr class="">lat),(/"lat"/))</i></div>
<div class=""><i class=""> filevardef(ncdf,"lon",typeof(<wbr class="">lon),(/"lon"/))</i></div>
<div class=""><i class=""> filevardef(ncdf,"data_mask",<wbr class="">typeof(data_mask),(/"lat","<wbr class="">lon"/))</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> ; now write all the variables to the file</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> ncdf->target_month = (/target_month/)</i></div>
<div class=""><i class=""> ncdf->lat = (/lat/)</i></div>
<div class=""><i class=""> ncdf->lon = (/lon/)</i></div>
<div class=""><i class=""> ncdf->data_mask = (/data_mask/)</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> end if</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> ; ******************************<wbr class="">*****************</i></div>
<div class=""><i class=""> ; CREATE MAP</i></div>
<div class=""><i class=""> ; ******************************<wbr class="">*****************</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> ; Define boundaries for map</i></div>
<div class=""><i class=""> data_mask!0 = "lat"<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; latitude information come from variable lat_subdomain</i></div>
<div class=""><i class=""> data_mask&lat = lat</i></div>
<div class=""><i class=""> data_mask!1 = "lon"<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; longitude information come from variable lon_subdomain</i></div>
<div class=""><i class=""> data_mask&lon = lon</i></div>
<div class=""><i class=""> data_mask@long_name = "Range: " + min_bias + " - " + max_bias + " mm/day" ; map subtitle, printed on the top left</i></div>
<div class=""><i class=""> data_mask@units = "Avg.: " + avg_bias + " mm/day"<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; map units, printed on the top right</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> diro = "~/GFDL/TAS/DATAFILES/monthly/<wbr class="">5b-4alt_GFDL_TAS_bias/avg_by_<wbr class="">target_month/png_shp/"<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; output directory</i></div>
<div class=""><i class=""> wks = gsn_open_wks("png", diro + "GFDL_TAS_bias_1980-2014_<wbr class="">target_month_" + target_month_zero + "_shp")<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; map name and file type</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> cmap = read_colormap_file("<wbr class="">BlueGreen14")</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> res = True<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; plot mods desired</i></div>
<div class=""><i class=""> res@tiMainString = "Avg. GFDL bias, Forecast Month " + target_month_zero + ", 1980-2014, no bias correction"
<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; main title</i></div>
<div class=""><i class=""> res@cnFillOn = True<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; turn on color fill, works with gsn_csm_map() function 3 lines down</i></div>
<div class=""><i class=""> res@gsnAddCyclic = False</i></div>
<div class=""><i class=""> res@cnLinesOn = False<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; contour lines of the map fill on or off </i></div>
<div class=""><i class=""> res@mpProjection = "Mercator"<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; Mercator map projection</i></div>
<div class=""><i class=""> res@cnFillPalette = cmap<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; reverse color map</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> res@mpLimitMode = "LatLon"<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; define plotted area by lats and lons, namely those of the selection (20-50N, 230-300E)</i></div>
<div class=""><i class=""> res@mpMaxLatF = 41.5</i></div>
<div class=""><i class=""> res@mpMinLatF = 25</i></div>
<div class=""><i class=""> res@mpMaxLonF = 267</i></div>
<div class=""><i class=""> res@mpMinLonF = 250</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> res@mpOutlineBoundarySets = "GeophysicalAndUSStates"<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; lines and boundaries of USA and US States</i></div>
<div class=""><i class=""> res@<wbr class="">mpGeophysicalLineThicknessF = 2
<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span> <span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; thickness of the USA lines</i></div>
<div class=""><i class=""> res@mpUSStateLineThicknessF = 2<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span> <span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; thickness of the state lines</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> res@mpSpecifiedFillColors = (/0,100/) <span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span> <span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; fill with background color, works with gsn_map() 2 lines down</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class="">; res@cnLevelSelectionMode = "ManualLevels"<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span> ; manually set the contour levels with the following 3 resources</i></div>
<div class=""><i class="">; res@cnMinLevelValF = -2 <span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span> <span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; set the minimum contour level</i></div>
<div class=""><i class="">; res@cnMaxLevelValF = 4 <span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span> <span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; set the maximum contour level</i></div>
<div class=""><i class="">; res@cnLevelSpacingF = 0.25 <span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span> <span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; set the interval between contours</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> ; ******************************<wbr class="">*****************</i></div>
<div class=""><i class=""> ; PLOT MAP</i></div>
<div class=""><i class=""> ; ******************************<wbr class="">*****************</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> print ("5 - Plot map")</i></div>
<div class=""><i class=""> </i></div>
<div class=""><i class=""> plot = gsn_csm_contour_map(wks,data_<wbr class="">mask, res)<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; universal map projection, define in res@mpProjection</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> print("**** ALL DONE: target_month " + target_month + " ****")</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> delete(bias_f)<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span> <span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span> ; delete before the next loop or program will fail</i></div>
<div class=""><i class=""> delete(GFDL_bias_3D)<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; delete before the next loop or program will fail</i></div>
<div class=""><i class=""> delete(GFDL_bias_2D)<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; delete before the next loop or program will fail</i></div>
<div class=""><i class=""> delete(data_mask) <span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; delete before the next loop or program will fail</i></div>
<div class=""><i class=""> </i></div>
<div class=""><i class="">end do<span class="m_3164076619572964805x_Apple-tab-span" style="white-space:pre-wrap">
</span>; end the loop through the 12 calendar months (1-12)</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class="">end</i></div>
</div>
<span class="">
<div class=""><br class="">
</div>
<div class="">
<div class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div class=""><b style="color:rgb(51,51,153);background-color:rgb(255,255,255)" class="">Toni Klemm</b><br style="color:rgb(51,51,153);background-color:rgb(255,255,255)" class="">
<span style="color:rgb(51,51,153);background-color:rgb(255,255,255)" class="">Ph.D. Candidate</span><br style="color:rgb(51,51,153);background-color:rgb(255,255,255)" class="">
<span style="color:rgb(51,51,153);background-color:rgb(255,255,255)" class="">The University of Oklahoma</span><br style="color:rgb(51,51,153);background-color:rgb(255,255,255)" class="">
<span style="color:rgb(51,51,153);background-color:rgb(255,255,255)" class="">South Central Climate Science Center</span><br style="color:rgb(51,51,153);background-color:rgb(255,255,255)" class="">
</div>
<div class=""><span style="color:rgb(51,51,153);background-color:rgb(255,255,255)" class="">phone:
<a href="tel:(405)%20325-1272" value="+14053251272" target="_blank" class="">405 325 1272</a></span></div>
<div class=""><span style="color:rgb(51,51,153);background-color:rgb(255,255,255)" class=""><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.toni-2Dklemm.de&d=DwMFaQ&c=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8sGNk&r=trcSnQNnUT2ddBXcpd358A&m=yJKWezSUje6we6fxpkzLjE7jtiGQ1kGaXuaMupFyefY&s=WQc3GB-ur2qv3crEfh486hHrTNM9_W2wW_lRnDzS6vw&e=" target="_blank" class="">www.toni-klemm.de</a></span></div>
<div class=""><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.eccforum.org&d=DwMFaQ&c=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8sGNk&r=trcSnQNnUT2ddBXcpd358A&m=yJKWezSUje6we6fxpkzLjE7jtiGQ1kGaXuaMupFyefY&s=JfnBVqnY8ot6dhKlHP7_rdIQpRnK7RTyvk5rkvu2PQc&e=" target="_blank" class="">Early
Career Climate Forum</a></div>
<div class="">Twitter: <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__twitter.com_ToniKlemm&d=DwMFaQ&c=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8sGNk&r=trcSnQNnUT2ddBXcpd358A&m=yJKWezSUje6we6fxpkzLjE7jtiGQ1kGaXuaMupFyefY&s=hNxdFfUOc4W-DuBFvw3cfz-9NKnq4b6JMIW-8fnrJ9A&e=" target="_blank" class="">@toniklemm</a></div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</span></div>
<div style="word-wrap:break-word" class="">
<div class="">
<div id="m_3164076619572964805x_AppleMailSignature" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div class=""></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="word-wrap:break-word" class="">
<div class="">
<div id="m_3164076619572964805x_AppleMailSignature" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div class=""></div>
<div class=""></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=""><span id="cid:848bb57a-8d3f-4131-8b70-e31ed6753761@namprd03.prod.outlook.com"><GFDL_TAS_bias_1980-2014_target_month_01_shp.png></span>
</div>
<div class="">
<div class="h5">
<div style="word-wrap:break-word" class="">
<div class="">
<div id="m_3164076619572964805x_AppleMailSignature" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div class=""></div>
<div class=""></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="word-wrap:break-word" class="">
<div class="">
<div class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">
<div class=""></div>
<div class=""><br class="">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br class="m_3164076619572964805x_Apple-interchange-newline">
</div>
<br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On May 24, 2017, at 12:35 PM, Rick Brownrigg <<a href="mailto:brownrig@ucar.edu" target="_blank" class="">brownrig@ucar.edu</a>> wrote:</div>
<br class="m_3164076619572964805x_Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">
<div class="">Hi Toni,<br class="">
<br class="">
</div>
Sorry for the delay in response. There are several examples of using shapefiles to mask out data, if that's what are wanting to do. In particular, look at examples 4, 5, and 21 at:<br class="">
<br class="">
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__ncl.ucar.edu_Applications_shapefiles.shtml&d=DwMFaQ&c=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8sGNk&r=trcSnQNnUT2ddBXcpd358A&m=_2unS1RvDS7egGpkWknJW0V9KMHhv2GWDckbCG7ZOcQ&s=VqnvWQCKomt1QM_SAC2MNal5QUSSlnZmBwXdI3_KjO0&e=" target="_blank" class="">http://ncl.ucar.edu/<wbr class="">Applications/shapefiles.shtml</a><br class="">
<br class="">
</div>
II think there's a utility script they make use that you'll need to download. Hopefully this gets you at least started -- please post back the list if you have other questions.<br class="">
<br class="">
</div>
Rick<br class="">
</div>
<div class="m_3164076619572964805x_gmail_extra"><br class="">
<div class="m_3164076619572964805x_gmail_quote">On Mon, May 22, 2017 at 10:10 PM, Klemm, Toni
<span dir="ltr" class=""><<a href="mailto:toni@ou.edu" target="_blank" class="">toni@ou.edu</a>></span> wrote:<br class="">
<blockquote class="m_3164076619572964805x_gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word" class="">Good evening,
<div class=""><br class="">
</div>
<div class="">I am analyzing seasonal climate forecasts skill for the U.S. Great Plains, specifically Texas, Oklahoma, Kansas, and Colorado. So far I’ve been using lat/lon to define my study region. However, this rectangular box includes parts of Mexico and
the Gulf of Mexico that are outside my study region and which have extreme outliers that distort my results.</div>
<div class=""><br class="">
</div>
<div class="">To get more accurate results, I’d like to use a shapefile of my 4 states (<font face="Courier" class="">TX_OK_KS_CO.shp</font>, created in QGIS 2.18 from a U.S. states shapefile) to define my study region. However, I’m not sure how to interpret
and use the results I’m getting. I used “<font face="Courier" class="">ncl_convert2nc TX_OK_KS_CO.shp -nc2c</font>“ to create “<font face="Courier" class="">TX_OK_KS_CO.nc</font>“ .</div>
<div class=""><br class="">
</div>
<div class="">“<font face="Courier" class="">printVarSummary</font>(<span style="font-family:Courier" class="">TX_OK_KS_CO.n<wbr class="">c)</span>” and ”<font face="Courier" class="">PrintMinMax</font>“ of the x-coordinate (longitude) as well as y-coordinate
(latitude) look like this:</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class="">Variable: shp</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class="">Type: file</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class="">File path:<span class="m_3164076619572964805x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap">
</span>/home/States_shapefile_data/GA<wbr class="">DM/TX_OK_KS_CO.nc</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class="">Number of global attributes:<span class="m_3164076619572964805x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap">
</span>11</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class="">Number of dimensions:<span class="m_3164076619572964805x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap">
</span>5</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class="">Number of variables:<span class="m_3164076619572964805x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap">
</span>4</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class="">(0)<span class="m_3164076619572964805x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap">
</span>min=0 max=0</span></div>
</div>
<div class=""><br class="">
</div>
<div class=""><font face="Courier" class="">ncdump -h TX_OK_KS_CO.nc</font> returns this:</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class="">netcdf TX_OK_KS_CO {</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class="">dimensions:</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class=""><span class="m_3164076619572964805x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>geometry = 2 ;</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class=""><span class="m_3164076619572964805x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>segments = 2 ;</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class=""><span class="m_3164076619572964805x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>num_features = 4 ;</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class=""><span class="m_3164076619572964805x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>num_segments = 262 ;</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class=""><span class="m_3164076619572964805x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>num_points = 102749 ;</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class="">variables:</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class=""><span class="m_3164076619572964805x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>int geometry(num_features, geometry) ;</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class=""><span class="m_3164076619572964805x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>int segments(num_segments, segments) ;</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class=""><span class="m_3164076619572964805x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>double x(num_points) ;</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class=""><span class="m_3164076619572964805x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>double y(num_points) ;</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201);min-height:16px" class="">
<span class=""></span><br class="">
</div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class="">// global attributes:</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class=""><span class="m_3164076619572964805x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>:segs_numPnts = 1 ;</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class=""><span class="m_3164076619572964805x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>:segs_xyzIndex = 0 ;</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class=""><span class="m_3164076619572964805x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>:geom_numSegs = 1 ;</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class=""><span class="m_3164076619572964805x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>:geom_segIndex = 0 ;</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class=""><span class="m_3164076619572964805x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>:geometry_type = "polygon" ;</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class=""><span class="m_3164076619572964805x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>:layer_name = "TX_OK_KS_CO" ;</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class=""><span class="m_3164076619572964805x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>:creation_date = "Mon May 22 17:20:46 EDT 2017" ;</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class=""><span class="m_3164076619572964805x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>:NCL_Version = "6.4.0" ;</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class=""><span class="m_3164076619572964805x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>:system = "Linux
<a href="http://ou.edu/" target="_blank" class="">ou.edu</a> x86_64 #1 SMP Fri Mar 3 00:04:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux" ;</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class=""><span class="m_3164076619572964805x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>:Conventions = "None" ;</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class=""><span class="m_3164076619572964805x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>:title = "NCL: convert-OGR-to-netCDF" ;</span></div>
<div style="margin:0px;font-size:13px;line-height:normal;font-family:Courier;color:rgb(255,255,255);background-color:rgb(43,102,201)" class="">
<span class="">}</span></div>
</div>
<div class=""><br class="">
</div>
<div class="">I am not sure how to use this information, or if this is even the information I should be getting, to define the study region when extracting data from my global forecast dataset. I am fairly sure the shapefile is correct. Opening it again in
QGIS showed the four states with their outlines and filling, and nothing else.</div>
<div class=""><br class="">
</div>
<div class="">I appreciate any help!</div>
<div class=""><br class="">
</div>
<div class="">Thank you very much,</div>
<div class="">Toni</div>
<span class="m_3164076619572964805x_HOEnZb"><font color="#888888" class="">
<div class=""><br class="">
</div>
<div class=""><br class="">
<div class="">
<div class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class="">
<div style="letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word" class="">
<div class=""><b style="color:rgb(51,51,153);background-color:rgb(255,255,255)" class="">Toni Klemm</b><br style="color:rgb(51,51,153);background-color:rgb(255,255,255)" class="">
<span style="color:rgb(51,51,153);background-color:rgb(255,255,255)" class="">Ph.D. Candidate</span><br style="color:rgb(51,51,153);background-color:rgb(255,255,255)" class="">
<span style="color:rgb(51,51,153);background-color:rgb(255,255,255)" class="">The University of Oklahoma</span><br style="color:rgb(51,51,153);background-color:rgb(255,255,255)" class="">
<span style="color:rgb(51,51,153);background-color:rgb(255,255,255)" class="">South Central Climate Science Center</span><br style="color:rgb(51,51,153);background-color:rgb(255,255,255)" class="">
</div>
<div class=""><span style="color:rgb(51,51,153);background-color:rgb(255,255,255)" class="">phone:
<a href="tel:(405)%20325-1272" value="+14053251272" target="_blank" class="">405 325 1272</a></span></div>
<div class=""><span style="color:rgb(51,51,153);background-color:rgb(255,255,255)" class=""><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.toni-2Dklemm.de&d=DwMFaQ&c=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8sGNk&r=trcSnQNnUT2ddBXcpd358A&m=_2unS1RvDS7egGpkWknJW0V9KMHhv2GWDckbCG7ZOcQ&s=QAW2_xJ9gp71I8wBvMBw6JI7Kb7j7d8KF0tlyNuhEYE&e=" target="_blank" class="">www.toni-klemm.de</a></span></div>
<div class=""><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.eccforum.org&d=DwMFaQ&c=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8sGNk&r=trcSnQNnUT2ddBXcpd358A&m=_2unS1RvDS7egGpkWknJW0V9KMHhv2GWDckbCG7ZOcQ&s=BsFxGtcxiOomgvIRjvEfgPA7YppuvrO0n-TW0SLSiok&e=" target="_blank" class="">Early
Career Climate Forum</a></div>
<div class="">Twitter: <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__twitter.com_ToniKlemm&d=DwMFaQ&c=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8sGNk&r=trcSnQNnUT2ddBXcpd358A&m=_2unS1RvDS7egGpkWknJW0V9KMHhv2GWDckbCG7ZOcQ&s=B5YLwKe0WRmXO4D2nzE_HgiPLcFnIFvPX6Z-kf3KSrw&e=" target="_blank" class="">@toniklemm</a></div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br class="m_3164076619572964805x_m_-6640439190133930147Apple-interchange-newline">
</div>
<br class="">
</div>
</div>
</font></span></div>
<br class="">
______________________________<wbr class="">_________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@ucar.edu" target="_blank" class="">ncl-talk@ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.ucar.edu_mailman_listinfo_ncl-2Dtalk&d=DwMFaQ&c=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8sGNk&r=trcSnQNnUT2ddBXcpd358A&m=_2unS1RvDS7egGpkWknJW0V9KMHhv2GWDckbCG7ZOcQ&s=g_J7lY2OPhdO6e1uZkyCAbj2G1XmDbXoRk01EanWTdI&e=" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/mailma<wbr class="">n/listinfo/ncl-talk</a><br class="">
<br class="">
</blockquote>
</div>
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
<span id="cid:9AB0C65A-79D4-4769-9115-1C5C9384234B@ou.edu"><texasCoast.png></span><span id="cid:CC4E8DD6-3F00-4473-8DCF-18F6D52663ED@ou.edu"><GFDL.png.png></span></div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>