This file is indexed.

/usr/share/ncarg/nclex/xyplot/xy15n.ncl is in libncarg-data 6.1.2-7.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
;
;      $Id: xy15n.ncl,v 1.7 2010-03-15 22:49:25 haley Exp $
;
;***********************************************************************
;                                                                      *
;                Copyright (C)  1995                                   *
;        University Corporation for Atmospheric Research               *
;                All Rights Reserved                                   *
;                                                                      *
;***********************************************************************
;
;  File:       xy15n.ncl
;
;  Author:     David Brown (converted to NCL by Mary Haley)
;           National Center for Atmospheric Research
;           PO 3000, Boulder, Colorado
;
;  Date:       Wed Oct 18 16:38:51 MDT 1995
;
; Description:  
;       This example illustrates the creation of a set of 4
;       of 'stacked' XyPlots. Each plot has the same X axis.
;       By making the top 3 plots into annotations of the 
;       bottom plot, all four plots can be manipulated as
;       a unit. To demonstrate this concept the second frame sets
;       the viewport of the base plot. Because all the annotations
;       have their "amResizeNotify" resource set to true (in the
;       resource file), all the annotation plots resize themselves
;       proportionally to the change in the size of the base plot.
;       Each plot draws a variation of sinusoidal curve.
;

begin

;
; Define the number of points in each curve.
;
NPTS=500
PI100=0.031415926535898
EXP = 2.7182818
;
; Initialize data for the XyPlot object.
;
theta = PI100*ispan(0,NPTS-1,1)
ydra1 = sin(theta)
ydra2 = sin(theta * theta)
ydra3 = sin(EXP^theta)
ydra4 = sin(3*sqrt(fabs(theta)))
;
; Create an Application object so we are set up to use the "xy15.res"
; resource file.
;
appid = create "xy15" appClass defaultapp 
    "appDefaultParent" : True
    "appUsrDir" : "./"
end create

;
; Default is to display output to an X workstation
;
wks_type = "x11"

if (str_lower(wks_type).eq."ncgm") then
;
; Create an ncgmWorkstation object.
;
  xworkid = create "xy15Work" ncgmWorkstationClass defaultapp
    "wkMetaName" : "xy15n.ncgm"
  end create
end if
if (str_lower(wks_type).eq."x11") then
;
; Set up an X11 output workstation.
;
  xworkid = create "xy15Work" windowWorkstationClass defaultapp
    "wkPause" : True
  end create
end if
if (str_lower(wks_type).eq."oldps") then
;
; Create an older-style PostScript workstation.
;
  xworkid = create "xy15Work" psWorkstationClass defaultapp
    "wkPSFileName" : "xy15n.ps"
  end create
end if
if (str_lower(wks_type).eq."oldpdf") then
;
; Create an older-style PDF workstation.
;
  xworkid = create "xy15Work" pdfWorkstationClass defaultapp
    "wkPDFFileName" : "xy15n.pdf"
  end create
end if
if (str_lower(wks_type).eq."pdf".or.str_lower(wks_type).eq."ps") then
;
; Create a cairo PS/PDF Workstation object.
;
  xworkid = create "xy15Work" documentWorkstationClass defaultapp
    "wkFileName" : "xy15n"
    "wkFormat" : wks_type
  end create
end if
if (str_lower(wks_type).eq."png") then
;
; Create a cairo PNG Workstation object.
;
  xworkid = create "xy15Work" imageWorkstationClass defaultapp
    "wkFileName" : "xy15n"
    "wkFormat" : wks_type
  end create
end if
;
; Define 4 separate CoordArrays objects - one for each XYPlot. 
;
dataid1 = create "xyData1" coordArraysClass defaultapp
     "caYArray":    ydra1
end create

dataid2 = create "xyData2" coordArraysClass defaultapp
     "caYArray":    ydra2
end create

dataid3 = create "xyData3" coordArraysClass defaultapp
     "caYArray":    ydra3
end create

dataid4 = create "xyData4" coordArraysClass defaultapp
     "caYArray":    ydra4
end create

;
; Create 4 XyPlot objects. 
;

xy1 = create "xy1" xyPlotClass xworkid
     "xyCoordData":    dataid1
     "vpYF":           0.3
end create

xy2 = create "xy2" xyPlotClass xworkid
     "xyCoordData":    dataid2
end create

xy3 = create "xy3" xyPlotClass xworkid
     "xyCoordData":    dataid3
end create

xy4 = create "xy4" xyPlotClass xworkid
     "xyCoordData":    dataid4
end create

am2 = NhlAddAnnotation(xy1,xy2)
am3 = NhlAddAnnotation(xy1,xy3)
am4 = NhlAddAnnotation(xy1,xy4)

;
; Draw the plot.
;
draw(xy1)
frame(xworkid)

;
; Now set the viewport of the base plot only; redrawing the base plot
; causes all the other plots to be redrawn as well. Notice that they
; are all resized and repositioned to match the new size and position
; of the base plot. The whole assemblage functions as a single 
; composite plot object.
;
setvalues xy1
     "vpWidthF":    0.65
     "vpXF":        0.25
     "vpYF":        0.4
     "vpHeightF":   0.16
end setvalues
    
draw(xy1)
frame(xworkid)
;
; Destroy the workstation, all the plots, and the data objects are all
; descended from the App object, so it is only necessary to 
; destroy the App object in order to destroy all the objects created
; in this example.
;
delete(xworkid)

end