[GRASS-SVN] r34327 - grass-addons/raster/r.sun_horizon/r.sun2
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Nov 16 04:19:53 EST 2008
Author: neteler
Date: 2008-11-16 04:19:53 -0500 (Sun, 16 Nov 2008)
New Revision: 34327
Modified:
grass-addons/raster/r.sun_horizon/r.sun2/main.c
Log:
fixed includes order
Modified: grass-addons/raster/r.sun_horizon/r.sun2/main.c
===================================================================
--- grass-addons/raster/r.sun_horizon/r.sun2/main.c 2008-11-16 09:13:06 UTC (rev 34326)
+++ grass-addons/raster/r.sun_horizon/r.sun2/main.c 2008-11-16 09:19:53 UTC (rev 34327)
@@ -1,4 +1,3 @@
-
/*******************************************************************************
r.sun: This program was writen by Jaro Hofierka in Summer 1993 and re-engineered
in 1996-1999. In cooperation with Marcel Suri and Thomas Huld from JRC in Ispra
@@ -29,6 +28,16 @@
/*v. 2.0 July 2002, NULL data handling, JH */
/*v. 2.1 January 2003, code optimization by Thomas Huld, JH */
+#include <stdio.h>
+#include <stdlib.h>
+#include <math.h>
+#include <grass/gis.h>
+#include <grass/gprojects.h>
+#include <grass/glocale.h>
+#include "sunradstruct.h"
+#include "local_proto.h"
+#include "rsunglobals.h"
+
#define NUM_PARTITIONS "1"
#define SKIP "1"
#define BIG 1.e20
@@ -49,18 +58,6 @@
#define DISTANCE1(x1, x2, y1, y2) (sqrt((x1 - x2)*(x1 - x2) + (y1 - y2)*(y1 - y2)))
#define DISTANCE2(x00, y00) ((xx0 - x00)*(xx0 - x00) + (yy0 - y00)*(yy0 - y00))
-#include <stdio.h>
-#include <stdlib.h>
-#include <math.h>
-#include <grass/gis.h>
-#include <grass/gprojects.h>
-#include <grass/glocale.h>
-#include "sunradstruct.h"
-#include "local_proto.h"
-#include "rsunglobals.h"
-
-
-
const double pihalf = M_PI * 0.5;
const double pi2 = M_PI * 2.;
const double deg2rad = M_PI / 180.;
More information about the grass-commit
mailing list