<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div class="" style="word-wrap:break-word">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://www.ncl.ucar.edu/Applications/Scripts/mask_9.ncl" class="">https://www.ncl.ucar.edu/Applications/Scripts/mask_9.ncl</a>), which looks similar to example 4 on the page you
linked (<a href="http://ncl.ucar.edu/Applications/Scripts/shapefiles_4.ncl" class="">http://ncl.ucar.edu/Applications/Scripts/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 (_shp.nc) 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://www.ncl.ucar.edu/Applications/Data/#shp" 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="">; *****************************************************************</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="">; *****************************************************************</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class="">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"</i></div>
<div class=""><i class="">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"</i></div>
<div class=""><i class="">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i 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="x_Apple-tab-span" style="white-space:pre">
</span> ; do-loop through the 12 calendar months</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> <span class="x_Apple-tab-span" style="white-space:pre">
</span>if (target_month .lt. 10) then</i></div>
<div class=""><i class=""> <span class="x_Apple-tab-span" style="white-space:pre">
</span> target_month_zero = "0" + target_month<span class="x_Apple-tab-span" style="white-space:pre">
</span>; turns "1"..."9" into "01"..."09" to match filename structure (months have 2 digits"</i></div>
<div class=""><i class=""> <span class="x_Apple-tab-span" style="white-space:pre">
</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="x_Apple-tab-span" style="white-space:pre">
</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=""> ; *****************************************************</i></div>
<div class=""><i class=""> ; READ IN FILE INFORMATION BY TARGET MONTH</i></div>
<div class=""><i 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/monthly/5b-4alt_GFDL_TAS_bias/avg_by_target_month/stack/GFDL_TAS_bias_1980-2014_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=""> ; ***********************************************</i></div>
<div class=""><i class=""> ; READ IN THE VARIABLE (precipitation)</i></div>
<div class=""><i 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_OBS_bias)<span class="x_Apple-tab-span" style="white-space:pre">
</span><span class="x_Apple-tab-span" style="white-space:pre"></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_2D),2,True)</i></div>
<div class=""><i class=""> max_bias = decimalPlaces(max(GFDL_bias_2D),2,True)</i></div>
<div class=""><i class=""> avg_bias = decimalPlaces(avg(GFDL_bias_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="">; *****************************************</i></div>
<div class=""><i class="">; ***** Read in shapefile information ***** (source: <a href="https://www.ncl.ucar.edu/Applications/Scripts/mask_9.ncl" class="">
https://www.ncl.ucar.edu/Applications/Scripts/mask_9.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_data/NCL/4_states_merged.shp","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://www.ncl.ucar.edu/Applications/Scripts/mask_9.ncl" class="">https://www.ncl.ucar.edu/Applications/Scripts/mask_9.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),typeof(GFDL_bias_2D),GFDL_bias_2D@_FillValue)</i></div>
<div class=""><i class=""> copy_VarCoords(GFDL_bias_2D,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://www.ncl.ucar.edu/Applications/Scripts/mask_9.ncl" class="">https://www.ncl.ucar.edu/Applications/Scripts/mask_9.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),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://www.ncl.ucar.edu/Applications/Scripts/mask_9.ncl" class="">https://www.ncl.ucar.edu/Applications/Scripts/mask_9.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),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=""> ; ***********************************************</i></div>
<div class=""><i class=""> ; WRITE THE AVERAGES INTO NEW netCDF FILE</i></div>
<div class=""><i 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="x_Apple-tab-span" style="white-space:pre">
</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/5b-4alt_GFDL_TAS_bias/avg_by_target_month/nc_shp/"<span class="x_Apple-tab-span" style="white-space:pre">
</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_target_month_" + target_month_zero + "_shp"<span class="x_Apple-tab-span" style="white-space:pre">
</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","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="x_Apple-tab-span" style="white-space:pre">
</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,"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),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,dimSizes,dimUnlim)</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> filevardef(ncdf,"target_month",typeof(target_month),(/"target_month"/))</i></div>
<div class=""><i class=""> filevardef(ncdf,"lat",typeof(lat),(/"lat"/))</i></div>
<div class=""><i class=""> filevardef(ncdf,"lon",typeof(lon),(/"lon"/))</i></div>
<div class=""><i class=""> filevardef(ncdf,"data_mask",typeof(data_mask),(/"lat","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=""> ; ***********************************************</i></div>
<div class=""><i class=""> ; CREATE MAP</i></div>
<div class=""><i 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="x_Apple-tab-span" style="white-space:pre">
</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="x_Apple-tab-span" style="white-space:pre">
</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="x_Apple-tab-span" style="white-space:pre">
</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/5b-4alt_GFDL_TAS_bias/avg_by_target_month/png_shp/"<span class="x_Apple-tab-span" style="white-space:pre">
</span>; output directory</i></div>
<div class=""><i class=""> wks = gsn_open_wks("png", diro + "GFDL_TAS_bias_1980-2014_target_month_" + target_month_zero + "_shp")<span class="x_Apple-tab-span" style="white-space:pre">
</span>; map name and file type</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> cmap = read_colormap_file("BlueGreen14")</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> res = True<span class="x_Apple-tab-span" style="white-space:pre">
</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="x_Apple-tab-span" style="white-space:pre"></span>; main title</i></div>
<div class=""><i class=""> res@cnFillOn = True<span class="x_Apple-tab-span" style="white-space:pre">
</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="x_Apple-tab-span" style="white-space:pre">
</span>; contour lines of the map fill on or off </i></div>
<div class=""><i class=""> res@mpProjection = "Mercator"<span class="x_Apple-tab-span" style="white-space:pre">
</span>; Mercator map projection</i></div>
<div class=""><i class=""> res@cnFillPalette = cmap<span class="x_Apple-tab-span" style="white-space:pre">
</span>; reverse color map</i></div>
<div class=""><i class=""><br class="">
</i></div>
<div class=""><i class=""> res@mpLimitMode = "LatLon"<span class="x_Apple-tab-span" style="white-space:pre">
</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="x_Apple-tab-span" style="white-space:pre">
</span>; lines and boundaries of USA and US States</i></div>
<div class=""><i class=""> res@mpGeophysicalLineThicknessF = 2 <span class="x_Apple-tab-span" style="white-space:pre">
</span> <span class="x_Apple-tab-span" style="white-space:pre"> </span>; thickness of the USA lines</i></div>
<div class=""><i class=""> res@mpUSStateLineThicknessF = 2<span class="x_Apple-tab-span" style="white-space:pre">
</span> <span class="x_Apple-tab-span" style="white-space:pre"> </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="x_Apple-tab-span" style="white-space:pre">
</span> <span class="x_Apple-tab-span" style="white-space:pre"> </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="x_Apple-tab-span" style="white-space:pre">
</span> ; manually set the contour levels with the following 3 resources</i></div>
<div class=""><i class="">; res@cnMinLevelValF = -2 <span class="x_Apple-tab-span" style="white-space:pre">
</span> <span class="x_Apple-tab-span" style="white-space:pre"> </span>; set the minimum contour level</i></div>
<div class=""><i class="">; res@cnMaxLevelValF = 4 <span class="x_Apple-tab-span" style="white-space:pre">
</span> <span class="x_Apple-tab-span" style="white-space:pre">
</span>; set the maximum contour level</i></div>
<div class=""><i class="">; res@cnLevelSpacingF = 0.25 <span class="x_Apple-tab-span" style="white-space:pre">
</span> <span class="x_Apple-tab-span" style="white-space:pre">
</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=""> ; ***********************************************</i></div>
<div class=""><i class=""> ; PLOT MAP</i></div>
<div class=""><i 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_mask, res)<span class="x_Apple-tab-span" style="white-space:pre">
</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="x_Apple-tab-span" style="white-space:pre">
</span> <span class="x_Apple-tab-span" style="white-space:pre"> </span> ; delete before the next loop or program will fail</i></div>
<div class=""><i class=""> delete(GFDL_bias_3D)<span class="x_Apple-tab-span" style="white-space:pre">
</span>; delete before the next loop or program will fail</i></div>
<div class=""><i class=""> delete(GFDL_bias_2D)<span class="x_Apple-tab-span" style="white-space:pre">
</span>; delete before the next loop or program will fail</i></div>
<div class=""><i class=""> delete(data_mask) <span class="x_Apple-tab-span" style="white-space:pre">
</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="x_Apple-tab-span" style="white-space:pre">
</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>
<div class=""><br class="">
</div>
<div class="">
<div class="">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class=""><b class="" style="color:rgb(51,51,153); background-color:rgb(255,255,255)">Toni Klemm</b><br class="" style="color:rgb(51,51,153); background-color:rgb(255,255,255)">
<span class="" style="color:rgb(51,51,153); background-color:rgb(255,255,255)">Ph.D. Candidate</span><br class="" style="color:rgb(51,51,153); background-color:rgb(255,255,255)">
<span class="" style="color:rgb(51,51,153); background-color:rgb(255,255,255)">The University of Oklahoma</span><br class="" style="color:rgb(51,51,153); background-color:rgb(255,255,255)">
<span class="" style="color:rgb(51,51,153); background-color:rgb(255,255,255)">South Central Climate Science Center</span><br class="" style="color:rgb(51,51,153); background-color:rgb(255,255,255)">
</div>
<div class=""><span class="" style="color:rgb(51,51,153); background-color:rgb(255,255,255)">phone: 405 325 1272</span></div>
<div class=""><span class="" style="color:rgb(51,51,153); background-color:rgb(255,255,255)"><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=""></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">
<div>
<div id="x_AppleMailSignature">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<div></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">
<div>
<div id="x_AppleMailSignature">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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><img src="cid:848bb57a-8d3f-4131-8b70-e31ed6753761@namprd03.prod.outlook.com">
</div>
<div style="word-wrap:break-word">
<div>
<div id="x_AppleMailSignature">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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; word-wrap:break-word">
<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="" style="word-wrap:break-word">
<div class="">
<div class="">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<div class="" 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; word-wrap:break-word">
<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="x_Apple-interchange-newline">
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On May 24, 2017, at 12:35 PM, Rick Brownrigg <<a href="mailto:brownrig@ucar.edu" class="">brownrig@ucar.edu</a>> wrote:</div>
<br class="x_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=" class="">http://ncl.ucar.edu/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="x_gmail_extra"><br class="">
<div class="x_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="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div class="" style="word-wrap:break-word">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 class="" style="font-family:Courier">TX_OK_KS_CO.<wbr class="">nc)</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 class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style="">Variable: shp</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style="">Type: file</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style="">File path:<span class="x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap">
</span>/home/States_shapefile_data/<wbr class="">GADM/TX_OK_KS_CO.nc</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style="">Number of global attributes:<span class="x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap">
</span>11</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style="">Number of dimensions:<span class="x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap">
</span>5</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style="">Number of variables:<span class="x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap">
</span>4</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style="">(0)<span class="x_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 class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style="">netcdf TX_OK_KS_CO {</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style="">dimensions:</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style=""><span class="x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>geometry = 2 ;</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style=""><span class="x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>segments = 2 ;</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style=""><span class="x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>num_features = 4 ;</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style=""><span class="x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>num_segments = 262 ;</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style=""><span class="x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>num_points = 102749 ;</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style="">variables:</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style=""><span class="x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>int geometry(num_features, geometry) ;</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style=""><span class="x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>int segments(num_segments, segments) ;</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style=""><span class="x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>double x(num_points) ;</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style=""><span class="x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>double y(num_points) ;</span></div>
<div class="" 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">
<span class="" style=""></span><br class="">
</div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style="">// global attributes:</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style=""><span class="x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>:segs_numPnts = 1 ;</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style=""><span class="x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>:segs_xyzIndex = 0 ;</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style=""><span class="x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>:geom_numSegs = 1 ;</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style=""><span class="x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>:geom_segIndex = 0 ;</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style=""><span class="x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>:geometry_type = "polygon" ;</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style=""><span class="x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>:layer_name = "TX_OK_KS_CO" ;</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style=""><span class="x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>:creation_date = "Mon May 22 17:20:46 EDT 2017" ;</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style=""><span class="x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>:NCL_Version = "6.4.0" ;</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style=""><span class="x_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 class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style=""><span class="x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>:Conventions = "None" ;</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style=""><span class="x_m_-6640439190133930147Apple-tab-span" style="white-space:pre-wrap"></span>:title = "NCL: convert-OGR-to-netCDF" ;</span></div>
<div class="" style="margin:0px; font-size:13px; line-height:normal; font-family:Courier; color:rgb(255,255,255); background-color:rgb(43,102,201)">
<span class="" style="">}</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="x_HOEnZb"><font color="#888888" class="">
<div class=""><br class="">
</div>
<div class=""><br class="">
<div class="">
<div class="">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word">
<div class=""><b class="" style="color:rgb(51,51,153); background-color:rgb(255,255,255)">Toni Klemm</b><br class="" style="color:rgb(51,51,153); background-color:rgb(255,255,255)">
<span class="" style="color:rgb(51,51,153); background-color:rgb(255,255,255)">Ph.D. Candidate</span><br class="" style="color:rgb(51,51,153); background-color:rgb(255,255,255)">
<span class="" style="color:rgb(51,51,153); background-color:rgb(255,255,255)">The University of Oklahoma</span><br class="" style="color:rgb(51,51,153); background-color:rgb(255,255,255)">
<span class="" style="color:rgb(51,51,153); background-color:rgb(255,255,255)">South Central Climate Science Center</span><br class="" style="color:rgb(51,51,153); background-color:rgb(255,255,255)">
</div>
<div class=""><span class="" style="color:rgb(51,51,153); background-color:rgb(255,255,255)">phone:
<a href="tel:(405)%20325-1272" value="+14053251272" target="_blank" class="">405 325 1272</a></span></div>
<div class=""><span class="" style="color:rgb(51,51,153); background-color:rgb(255,255,255)"><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="x_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" 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/<wbr class="">mailman/listinfo/ncl-talk</a><br class="">
<br class="">
</blockquote>
</div>
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>