coordinate subscripting question

From: Erik Noble <enoble_at_nyahnyahspammersnyahnyah>
Date: Fri Apr 30 2010 - 08:11:52 MDT

Hi.
Coordinate subscripting is a NCL method that I use every day. But I am
am trying to understand how it actually "works."
I have read the description (below), but could some of the NCL
developers please help me know more?
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?
Thank you ahead of time.
Sincerely,
Erik Noble

http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclVariables.shtml#CoordinateSubscripts
"Coordinate subscripts
Coordinate subscripts use the coordinate variables 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.
temperature(0,{20:60},{-95:-120})
temperature(0,{20},{-95})
temperature(0,{:20:2},{:-95:2})
  

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Apr 30 08:14:28 2010

This archive was generated by hypermail 2.1.8 : Mon May 03 2010 - 14:51:26 MDT