Java Doc for SunRelativePosition.java in  » GIS » GeoTools-2.4.1 » org » geotools » nature » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoTools 2.4.1 » org.geotools.nature 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.geotools.nature.SunRelativePosition

SunRelativePosition
public class SunRelativePosition (Code)
Calcule la position du soleil relativement à la position de l'observateur. Cette classe reçoit en entrés les coordonnées spatio-temporelles de l'observateur, soit:
 
  • La longitude (en degrées) de l'observateur;
  • La latitude (en degrées) de l'observateur;
  • La date et heure en heure universelle (GMT).
La position du soleil calculée en sortie comprend les valeurs suivantes:
  • L'azimuth du soleil (en degrés dans le sens des aiguilles d'une montre depuis le nord);
  • L'élévation du soleil (en degrés par rapport a l'horizon).
Les algorithmes utilisés dans cette classe sont des adaptations des algorithmes en javascript écrit par le "National Oceanic and Atmospheric Administration, Surface Radiation Research Branch". L'application original est le Solar Position Calculator.

The approximations used in these programs are very good for years between 1800 and 2100. Results should still be sufficiently accurate for the range from -1000 to 3000. Outside of this range, results will be given, but the potential for error is higher.
since:
   2.1
version:
   $Id: SunRelativePosition.java 20874 2006-08-07 10:00:01Z jgarnett $
author:
   Remi Eve
author:
   Martin Desruisseaux



Field Summary
final public static  doubleASTRONOMICAL_TWILIGHT
     of astronomical twilight, in degrees.
final public static  doubleCIVIL_TWILIGHT
     of civil twilight, in degrees.
final public static  doubleNAUTICAL_TWILIGHT
     of nautical twilight, in degrees.

Constructor Summary
public  SunRelativePosition()
     Constructs a sun relative position calculator.
public  SunRelativePosition(double twilight)
     Constructs a sun relative position calculator with the specified value for the .

Method Summary
public  doublegetAzimuth()
     Retourne l'azimuth en degrés.
public  Point2DgetCoordinate()
     Returns the coordinate used for and computation.
public  DategetDate()
     Returns the date used for and computation.
public  doublegetElevation()
     Retourne l'élévation en degrés.
public  DategetNoonDate()
     Retourne la date à laquelle le soleil est au plus haut dans la journée.
public  longgetNoonTime()
     Retourne l'heure à laquelle le soleil est au plus haut.
public  doublegetTwilight()
     Returns the sun's at twilight, in degrees.
public static  voidmain(String[] args)
     Affiche la position du soleil à la date et coordonnées spécifiée.
public  voidsetCoordinate(double longitude, double latitude)
     Set the geographic coordinate where to compute the and .
Parameters:
  longitude - The longitude in degrees.
public  voidsetCoordinate(Point2D point)
     Set the geographic coordinate where to compute the and .
public  voidsetDate(Date date)
     Set the date and time when to compute the and .
public  voidsetTwilight(double twilight)
     Set the sun's at twilight, in degrees. Common values are defined for the (-18°), (-12°) and (-6°). The and are set to when the sun elevation is below the twilight value (i.e.

Field Detail
ASTRONOMICAL_TWILIGHT
final public static double ASTRONOMICAL_TWILIGHT(Code)
of astronomical twilight, in degrees. Astronomical twilight is the time of morning or evening when the sun is 18° below the horizon (solar elevation angle of -18°).



CIVIL_TWILIGHT
final public static double CIVIL_TWILIGHT(Code)
of civil twilight, in degrees. Civil twilight is the time of morning or evening when the sun is 6° below the horizon (solar elevation angle of -6°).



NAUTICAL_TWILIGHT
final public static double NAUTICAL_TWILIGHT(Code)
of nautical twilight, in degrees. Nautical twilight is the time of morning or evening when the sun is 12° below the horizon (solar elevation angle of -12°).




Constructor Detail
SunRelativePosition
public SunRelativePosition()(Code)
Constructs a sun relative position calculator.



SunRelativePosition
public SunRelativePosition(double twilight) throws IllegalArgumentException(Code)
Constructs a sun relative position calculator with the specified value for the .
Parameters:
  twilight - The new sun elevation at twilight, or Double.NaNif no twilight value should be taken in account.
throws:
  IllegalArgumentException - if the twilight value is illegal.




Method Detail
getAzimuth
public double getAzimuth()(Code)
Retourne l'azimuth en degrés. L'azimuth en degrés.



getCoordinate
public Point2D getCoordinate()(Code)
Returns the coordinate used for and computation. This is the coordinate specified during the last call to a SunRelativePosition.setCoordinate(double,double)setCoordinate(...) method.



getDate
public Date getDate()(Code)
Returns the date used for and computation. This is the date specified during the last call to SunRelativePosition.setDate .



getElevation
public double getElevation()(Code)
Retourne l'élévation en degrés. L'élévation en degrés.



getNoonDate
public Date getNoonDate()(Code)
Retourne la date à laquelle le soleil est au plus haut dans la journée. Cette méthode est équivalente à SunRelativePosition.getNoonTime mais inclue le jour de la date qui avait été spécifiée à la méthode SunRelativePosition.compute .



getNoonTime
public long getNoonTime()(Code)
Retourne l'heure à laquelle le soleil est au plus haut. L'heure est retournée en nombre de millisecondes écoulées depuis le debut de la journée (minuit) en heure UTC.



getTwilight
public double getTwilight()(Code)
Returns the sun's at twilight, in degrees. This is the value set during the last call to SunRelativePosition.setTwilight .



main
public static void main(String[] args) throws ParseException(Code)
Affiche la position du soleil à la date et coordonnées spécifiée. Cette application peut être lancée avec la syntaxe suivante:
SunRelativePosition [longitude] [latitude] [date]
date est un argument optionel spécifiant la date et l'heure. Si cet argument est omis, la date et heure actuelles seront utilisées.



setCoordinate
public void setCoordinate(double longitude, double latitude)(Code)
Set the geographic coordinate where to compute the and .
Parameters:
  longitude - The longitude in degrees. Positive values are East; negative values are West.
Parameters:
  latitude - The latitude in degrees. Positive values are North, negative values are South.



setCoordinate
public void setCoordinate(Point2D point)(Code)
Set the geographic coordinate where to compute the and .
Parameters:
  point - The geographic coordinates in degrees of longitude and latitude.



setDate
public void setDate(Date date)(Code)
Set the date and time when to compute the and .
Parameters:
  date - The date and time.



setTwilight
public void setTwilight(double twilight) throws IllegalArgumentException(Code)
Set the sun's at twilight, in degrees. Common values are defined for the (-18°), (-12°) and (-6°). The and are set to when the sun elevation is below the twilight value (i.e. during night). The default value is SunRelativePosition.CIVIL_TWILIGHT .
Parameters:
  twilight - The new sun elevation at twilight, or Double.NaNif no twilight value should be taken in account.
throws:
  IllegalArgumentException - if the twilight value is illegal.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.