AMBHAS
ambhas.sunlib.sun Class Reference

List of all members.

Public Member Functions

def __init__
def hourly_ETR
def solar_zenith_angle
def daily_ETR
def set_rise

Public Attributes

 doy
 lon_deg
 ze
 dr
 N

Detailed Description

This class estimate extral-terrestial solar radiation,
sunset time, sunrise time, daylight hours

Based on the article:
    Empirical Model for Estimating Global Solar Radiation
    on Horizontal Surfaces for Selected Cities in 
    the Six Geopolitical Zones in Nigeria
By:
    M.S. Okundamiya and A.N. Nzeako

    
Example:
    lat_deg = 11
    lon_deg = 76
    doy = 180
    foo = sun(doy, lat_deg, lon_deg)
    hourly_etr = foo.hourly_ETR(11.0)
    daily_etr = foo.daily_ETR()
    risetime, settime = foo.set_rise()

Definition at line 13 of file sunlib.py.


Constructor & Destructor Documentation

def ambhas.sunlib.sun.__init__ (   self,
  doy,
  lat_deg,
  lon_deg,
  ze = 5.5 
)
initialise the class
Input:
    doy:            day of year
    lat_deg:        latitude in degree ( south is negative)
    lon_deg:        longitude in degree (west is negative)
    ze :            time zone in hour

Definition at line 37 of file sunlib.py.


Member Function Documentation

Returns the daily Extra Terrestial Radiation (ETR)
Input:
    
Output:
    

Definition at line 112 of file sunlib.py.

def ambhas.sunlib.sun.hourly_ETR (   self,
  tc 
)
Input:
    tc:     local time in hours

Definition at line 71 of file sunlib.py.

Returns the sun set and rise time

Definition at line 133 of file sunlib.py.

def ambhas.sunlib.sun.solar_zenith_angle (   self,
  tc 
)
Input:
    tc:     local time in hours
Output:
    sza:    solar zenith angle in radian

Definition at line 91 of file sunlib.py.


Member Data Documentation

Definition at line 43 of file sunlib.py.

Definition at line 43 of file sunlib.py.

Definition at line 43 of file sunlib.py.

Definition at line 118 of file sunlib.py.

Definition at line 43 of file sunlib.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables