Returns the ids of the parent workstations of the given objects.
function NhlGetParentWorkstation ( objs : graphic ) return_val [dimsizes(objs)] : graphic
An array of one or more NCL View objects whose parent workstation ids are desired.
This function returns an array of parent Workstation ids that are the parent workstations of the given objects. If an object is not a View object and hence does not have a parent workstation associated with it, a missing value is returned.
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" begin wks = gsn_open_wks("ncgm","test") npts = 500 x = fspan(0,npts-1,npts) y = 500.+ 0.9 * x * sin(0.031415926535898*x) xy = gsn_y(wks,y,False) parent_ids = NhlGetParentWorkstation((/wks,xy/)) print(parent_ids) end