Algoritmo de posición solar

Solo disponible en BuenasTareas
  • Páginas : 22 (5322 palabras )
  • Descarga(s) : 0
  • Publicado : 30 de enero de 2011
Leer documento completo
Vista previa del texto
/////////////////////////////////////////////
// Solar Position Algorithm (SPA) //
// for //
// Solar Radiation Application //
// //
// May 12, 2003 //
// //
// Filename: SPA.C //
////
// Afshin Michael Andreas //
// afshin_andreas@nrel.gov (303)384-6383 //
// //
// Measurement & Instrumentation Team //
// Solar Radiation Research Laboratory //
// National Renewable Energy Laboratory //
// 1617 Cole Blvd, Golden, CO 80401 //
//////////////////////////////////////////////////////////////////////////////////////////
// See the SPA.H header file for usage //
// //
// This code is based on the NREL //
// technical report "Solar Position //
// Algorithm for Solar Radiation //
// Application" by I. Reda & A. Andreas //
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// NOTICE
// Copyright (C) 2008 Midwest Research Institute, All Rights Reserved
//
//This computer software is code in development prepared by Midwest Research Institute,
//(hereinafter the "Contractor"), under Contract DE-AC-99G010337 (Contract) with the Department
//of Energy (DOE). The United StatesGovernment has been granted for itself and others acting
//on its behalf a paid-up, non-exclusive, irrevocable, worldwide license in the Software to
//reproduce, prepare derivative works, and perform publicly and display publicly. Beginning
//five (5) years after the date permission to assert copyright is obtained from the DOE, and
//subject to any subsequent five (5) year renewals, theUnited States Government is granted
//for itself and others acting on its behalf a paid-up, non-exclusive, irrevocable, worldwide
//license in the Software to reproduce, prepare derivative works, distribute copies to the
//public, perform publicly and display publicly, and to permit others to do so. If the
//Contractor ceases to make this computer software available, it may be obtained fromDOE's
//Office of Scientific and Technical Information's Energy Science and Technology Software
//Center (ESTSC) at P.O. Box 1020, Oak Ridge, TN 37831-1020. THlS SOFTWARE IS PROVIDED BY THE
//CONTRACTOR "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING BUT NOT LIMITED TO, THE
//IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
//IN NO EVENTSHALL THE CONTRACTOR OR THE U.S. GOVERNMENT BE LIABLE FOR ANY SPECIAL, INDIRECT
//OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER, INCLUDING BUT NOT LIMITED TO CLAIMS
//ASSOCIATED WITH THE LOSS OF DATA OR PROFITS, WHICH MAY RESULT FROM AN ACTION IN CONTRACT,
//NEGLIGENCE OR OTHER TORTIOUS CLAIM THAT ARISES OUT OF OR IN CONNECTION WITH THE ACCESS, USE
//OR PERFORMANCE OF THIS SOFTWARE.
////As a condition of using the Software in an application, the developer of the application
//agrees to reference the use of the Software and make this Notice readily accessible to any
//end-user in a Help|About screen or equivalent manner.
//
//The Software is not being distributed for commercial purposes. Please contact Richard Bolin
//in the NREL Technology Transfer Office at 303-275-3028for information concerning a
//commercial license to use the Software.
//
///////////////////////////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////////////////////
// Revised 27-FEB-2004 Andreas
// Added bounds check on inputs and return value for spa_calculate().
// Revised...
tracking img