rsunglobals.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*******************************************************************************
  2. r.sun: rsunglobals.h. This program was writen by Jaro Hofierka in Summer 1993 and re-engineered
  3. in 1996-1999. In cooperation with Marcel Suri and Thomas Huld from JRC in Ispra
  4. a new version of r.sun was prepared using ESRA solar radiation formulas.
  5. See manual pages for details.
  6. (C) 2002 Copyright Jaro Hofierka, Gresaka 22, 085 01 Bardejov, Slovakia,
  7. and GeoModel, s.r.o., Bratislava, Slovakia
  8. email: hofierka@geomodel.sk,marcel.suri@jrc.it,suri@geomodel.sk
  9. *******************************************************************************/
  10. /*
  11. * This program is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU General Public License
  13. * as published by the Free Software Foundation; either version 2
  14. * of the License, or (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the
  23. * Free Software Foundation, Inc.,
  24. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  25. */
  26. /*v. 2.0 July 2002, NULL data handling, JH */
  27. /*v. 2.1 January 2003, code optimization by Thomas Huld, JH */
  28. #define EARTHRADIUS 6371000.
  29. /* undefined value for terrain aspect */
  30. #define UNDEF 0.
  31. /* internal undefined value for NULL */
  32. #define UNDEFZ -9999.
  33. /* Constant for calculating angular loss */
  34. #define a_r 0.155
  35. extern int varCount_global;
  36. extern int bitCount_global;
  37. extern int arrayNumInt;
  38. /*
  39. extern double xp;
  40. extern double yp;
  41. */
  42. extern double angular_loss_denom;
  43. extern const double invScale;
  44. extern const double pihalf;
  45. extern const double pi2;
  46. extern const double deg2rad;
  47. extern const double rad2deg;
  48. extern struct pj_info iproj;
  49. extern struct pj_info oproj;
  50. extern void (*func) (int, int);