This file is indexed.

/usr/share/metview/app-defaults/CommonMacroFuncs/acc is in metview-data 5.0.0~beta.1-1build1.

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
# Metview Macro

# **************************** LICENSE START ***********************************
#
# Copyright 2012 ECMWF. This software is distributed under the terms
# of the Apache License version 2.0. In applying this license, ECMWF does not
# waive the privileges and immunities granted to it by virtue of its status as
# an Intergovernmental Organization or submit itself to any jurisdiction.
#
# ***************************** LICENSE END ************************************

function acc(z1,z2,cl)

	# computes anomaly correlation coefficient between 2 fields z1 and z2
	# cl is the monthly climate

	x1=z1-cl
	y1=integrate(x1*x1)-integrate(x1)*integrate(x1)
	x2=z2-cl
	y2=integrate(x2*x2)-integrate(x2)*integrate(x2)
	acc=(integrate(x1*x2)-integrate(x1)*integrate(x2))/sqrt(y1*y2)

	return acc
end acc