forked from perabrahamsen/daisy-model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastronomy.h
46 lines (41 loc) · 1.75 KB
/
astronomy.h
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
// astronomy.h --- Astronomic utility functions.
//
// Copyright 1996-2001 Per Abrahamsen and Søren Hansen
// Copyright 2010 KU
//
// This file is part of Daisy.
//
// Daisy is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser Public License as published by
// the Free Software Foundation; either version 2.1 of the License, or
// (at your option) any later version.
//
// Daisy is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser Public License for more details.
//
// You should have received a copy of the GNU Lesser Public License
// along with Daisy; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#ifndef ASTRONOMY_H
#define ASTRONOMY_H
class Time;
namespace Astronomy
{
double SolarDeclination (const Time&); // [rad]
double RelativeSunEarthDistance (const Time&); // []
double SunsetHourAngle (double Dec, double Lat); // [rad]
double DailyExtraterrestrialRadiation (const Time&,
const double latitude); // [W/m2]
double ExtraterrestrialRadiation (const Time&,
const double latitude,
const double longitude,
const double timezone); // [W/m2]
double SinSolarElevationAngle (const Time& time,
const double latitude,
const double longitude,
const double timezone); // []
double DayLength (const Time& time, const double latitude); // [h]
}
#endif // ASTRONOMY_H