This file is indexed.

/usr/share/ncarg/nclex/contourplot/cn09n.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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;                                                                       ;
;                Copyright (C)  1995                                    ;
;        University Corporation for Atmospheric Research                ;
;                All Rights Reserved                                    ;
;                                                                       ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
;   File:       cn09n.ncl
;
;   Author:     Ethan Alpert
;           National Center for Atmospheric Research
;           PO 3000, Boulder, Colorado
;
;           Converted to NCL by Ed Stautler
;
;   Date:       Fri Apr 28 11:37:28 MDT 1995
;
;   Description:    Reads a netCDF file and produces a series of
;                   surface pressure contour plots.
;

begin

;
; Open up data file containing surface pressure data for
; entire globe
;
filedir = ncargpath("data")
filename = filedir + "/cdf/contour.cdf"
a = addfile(filename,"r")

;
; set color table
;
cmap = (/ (/0.0, 0.0, 0.0/), \
	 (/1.0, 1.0, 1.0/), \
	 (/0.0, 0.0, 0.0/), \
	 (/1.0, 0.0, 0.0/), \
	 (/0.0, 1.0, 0.0/), \
	 (/0.0, 0.0, 1.0/), \
	 (/1.0, 1.0, 0.0/), \
	 (/0.0, 1.0, 1.0/), \
	 (/1.0, 0.0, 1.0/), \
	 (/0.5, 0.0, 0.0/), \
	 (/0.5, 1.0, 1.0/), \
	 (/0.0, 0.0, 0.5/), \
	 (/1.0, 1.0, 0.5/), \
	 (/0.5, 0.0, 1.0/), \
	 (/1.0, 0.5, 0.0/), \
	 (/0.0, 0.5, 1.0/), \
	 (/0.5, 1.0, 0.0/), \
	 (/0.5, 0.0, 0.5/), \
	 (/0.5, 1.0, 0.5/), \
	 (/1.0, 0.5, 1.0/), \
	 (/0.0, 0.5, 0.0/), \
	 (/0.5, 0.5, 1.0/), \
	 (/1.0, 0.0, 0.5/) /)

wks_type = "ncgm"

if (str_lower(wks_type).eq."ncgm")
;
; Open NCGM workstation.
;
  wks = create "cn09Work" ncgmWorkstationClass defaultapp
    "wkMetaName" : "cn09n.ncgm"
    "wkColorMap" : cmap
  end create
end if
if (str_lower(wks_type).eq."x11") then
;
; Create an X workstation.
;
  wks = create "cn09Work" windowWorkstationClass defaultapp
      "wkColorMap" : cmap
      "wkPause" : True
  end create
end if
if (str_lower(wks_type).eq."oldps") then
;
; Open PS workstation.
;
  wks = create "cn09Work" psWorkstationClass defaultapp
    "wkColorMap" : cmap
    "wkPSFileName" : "cn09n.ps"
  end create
end if
if (str_lower(wks_type).eq."oldpdf") then
;
; Open PDF workstation.
;
  wks = create "cn09Work" pdfWorkstationClass defaultapp
    "wkColorMap" : cmap
    "wkPDFFileName" : "cn09n.pdf"
  end create
end if
if (str_lower(wks_type).eq."pdf".or.str_lower(wks_type).eq."ps") then
;
; Open cairo PS/PDF workstation.
;
  wks = create "cn09Work" documentWorkstationClass defaultapp
    "wkColorMap" : cmap
    "wkFileName" : "cn09n"
    "wkFormat" : wks_type
  end create
end if
if (str_lower(wks_type).eq."png") then
;
; Open cairo PNG workstation.
;
  wks = create "cn09Work" imageWorkstationClass defaultapp
    "wkColorMap" : cmap
    "wkFileName" : "cn09n"
    "wkFormat" : wks_type
  end create
end if

;
; Read in surface pressure and convert it to millibars
;
p = a->Psl/100.0
frtime = a->frtime

;
; Creates scalar field configured with first time step
; of pressure data
;
field1 = create "field1" scalarFieldClass defaultapp
    "sfDataArray" : p(0,:,:) 
    "sfMissingValueV" : p@_FillValue
    "sfXCStartV" : a->lon(0)
    "sfXCEndV" : a->lon(filevardimsizes(a,"lon")- 1)
    "sfYCStartV" : a->lat(0)
    "sfYCEndV" : a->lat(filevardimsizes(a,"lat") - 1)
end create

;
; Creates contour object using manual level spacing and solid
; color fill
;
con1 = create "con1" contourPlotClass wks
    "cnScalarFieldData" : field1
    "cnLevelSelectionMode" : "ManualLevels"
    "cnMinLevelValF" : 960.0
    "cnMaxLevelValF" : 1040.0
    "cnLevelSpacingF" : 5.0
    "cnMaxLevelCount" : 25
    "cnInfoLabelOn" : "OFF"
    "cnHighLabelsOn" : "OFF"
    "cnLowLabelsOn" : "OFF"
    "cnLineLabelsOn" : False
    "cnLinesOn" : False
    "cnFillOn" : True
    "tiMainString" : "Forecast Time " + 0
end create

; 
; Draw first frame
;
draw(con1)
frame(wks)

;
; Loop and draw remaining frames reseting the scalar field object
; with a new array for each iteration
;
do i = 1, dimsizes(frtime) - 1 
    setvalues field1
        "sfDataArray" : p(i,:,:)
    end setvalues
    setvalues con1
        "tiMainString" : "Forecast Time " + frtime(i)
    end setvalues
    draw(con1)
    frame(wks)
end do

delete(a)
delete(con1)
delete(wks)
delete(field1)
delete(i)
delete(p)
delete(frtime)

end