<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div></div><div><br><div><div>On Apr 30, 2010, at 8:11 AM, Erik Noble wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi.&nbsp;<div>Coordinate subscripting is a NCL method that I use every day. But I am am trying to understand how it actually "works."</div><div>I have read the description (below), but could some of the NCL developers please help me know more?</div><div>For instance, if I use coordinate subscripting to extract a randomly selected named lat,lon point from 2.5 degree Reanalysis 2 data, how does the function work? Is any averaging occurring?</div><div>Thank you ahead of time.</div><div>Sincerely,</div><div>Erik Noble</div><div><br></div><div><a href="http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclVariables.shtml#CoordinateSubscripts">http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclVariables.shtml#CoordinateSubscripts</a></div><div>"<span class="Apple-style-span" style="font-family: Georgia, Times, serif; font-size: 15px; font-weight: bold; line-height: 17px; ">Coordinate subscripts</span></div><span class="Apple-style-span" style="font-family: verdana, sans-serif; font-size: 13px; line-height: 16px; ">Coordinate subscripts use the&nbsp;<a href="http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclVariables.shtml#Coordinates" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-decoration: none; color: rgb(133, 45, 133); font-family: verdana, sans-serif; font-weight: normal; ">coordinate variables</a>&nbsp;associated with a variable to determine which indexes are used in the selection. When specifying a coordinate subscript, braces '{' and '}' indicate the start and end values of the coordinate variable that will be used to select the indexes. Essentially, the start and end values are "looked" up in the coordinate variable, and the indexes are used to make the subselection. The following are examples of coordinate subscripts. Note that coordinate and standard subscripting can be mixed in the same variable subscript. Also, stride is still specified as an integer stride. If the coordinate values used in the subscript do not exactly match values in the coordinate variable, all coordinate values that fall within the coordinate subscript range are selected. If the values do match, then they are selected in an inclusive fashion.<ul style="margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; list-style-position: inside; "><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 10pt; line-height: 12pt; font-family: courier; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 15px; border-left-width: 0px; border-top-color: transparent; border-right-color: transparent; border-bottom-color: transparent; border-left-color: transparent; text-indent: 0em; ">temperature(0,{20:60},{-95:-120})
temperature(0,{20},{-95})
temperature(0,{:20:2},{:-95:2})</pre></ul></span><div>&nbsp;</div></div>_______________________________________________<br>ncl-talk mailing list<br>List instructions, subscriber options, unsubscribe:<br><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br></blockquote></div><br></div></body></html>