Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.335.246 Times

sun_position.m 1.0

  Date Added: July 15, 2013  |  Visits: 767

sun_position.m

Report Broken Link
Printer Friendly Version


Product Homepage
Download (57 downloads)



sun = sun_position(time, location)This function computes the sun position (zenith and azimuth angle at the observer location) as a function of the observer local time and position.It is an implementation of the algorithm presented by Reda et Andreas in: Reda, I., Andreas, A. (2003) Solar position algorithm for solar radiation application. National Renewable Energy Laboratory (NREL) Technical report NREL/TP-560-34302, Revised January 2008.This document is avalaible at http://rredc.nrel.gov/solar/codesandalgorithms/spa/ and is included in the .zip fileThis algorithm is based on numerical approximation of the exact equations. The authors of the original paper state that this algorithm should be precise at +/- 0.0003 degrees. I have compared it to NOAA solar table (http://www.srrb.noaa.gov/highlights/sunrise/azel.html) and to USNO solar table (http://aa.usno.navy.mil/data/docs/AltAz.html) and found very good correspondance (up to the precision of those tables), except for large zenith angle, where the refraction by the atmosphere is significant (difference of about 1 degree). Note that in this code the correction for refraction in the atmosphere has been implemented for a temperature of 10C (283 kelvins) and a pressure of 1010 mbar. See the subfunction dlTzsun_topocentric_zenith_angle_calculationdlT¬ for possible modification to explicitely model the effects of temperature and pressure as describe in Reda & Andreas (2003).Input parameters: time: a structure that specify the time when the sun position is calculated. time.year: year. Valid for [-2000, 6000] time.month: month [1-12] time.day: calendar day [1-31] time.hour: local hour [0-23] time.min: minute [0-59] time.sec: second [0-59] time.UTC: offset hour from UTC. Local time = Greenwich time + time.UTC This input can also be passed using the Matlab time format ('dd-mmm-yyyy HH:MM:SS'). In that case, the time has to be specified as UTC time (time.UTC = 0) location: a structure that specify the location of the observer location.latitude: latitude (in degrees, north of equator is positive) location.longitude: longitude (in degrees, positive for east of Greenwich) location.altitude: altitude above mean sea level (in meters) Output parameters sun: a structure with the calculated sun position sun.zenith = zenith angle in degrees (angle from the vertical) sun.azimuth = azimuth angle in degrees, eastward from the north.Only the sun zenith and azimuth angles are returned as output, but a lot of other parameters are calculated that could also be extracted as output of this function. See the documentation in the code.Exemple of uselocation.longitude = -105.1786;location.latitude = 39.742476;location.altitude = 1830.14;time.year = 2003;time.month = 10;time.day = 17;time.hour = 12;time.min = 30;time.sec = 30;time.UTC = -7;sun = sun_position(time, location); sun = zenith: 50.1080438859849 azimuth: 194.341174010338

Requirements: No special requirements
Platforms: Matlab
Keyword: Calendar Ddmmmyyyy Effects Format Greenwich Hhmmss Input Local Locationlatitude Matlab Minute Offset Passed Timehour Timemin Timesec Timeutc
Users rating: 0/10

License: Freeware Size: 1.3 MB
USER REVIEWS
More Reviews or Write Review


SUN_POSITION.M RELATED
Desktop Utilities  -  Calgoo Calendar 1.5
Calgoo Calendar synchronizes with Google Calendar, Outlook Calendar and iCal format. Calgoo Calendar is unique calendar software that manages multiple calendars and schedules, contacts and tasks online and offline & lets you create and share your...
19.21 MB  
Audio Editors  -  Wavosaur free wav editor 1.0.2.0
Wavosaur is a portable digital audio editing software wich can perform visual editing, creating, recording, and playing audio files, applying various audio VST effects, format conversion, loop edition, audio analysis and more. It supports many...
484 KB  
Business  -  VTCalendar 550
VTCalendar is a web-based event calendar that allows for decentralized data input and includes an approval mechanism. It supports calendar hosting for individual organizations and the forwarding of events from these calendars to the main event...
598.68 KB  
Libraries  -  DateTime::Format::Epoch::JD 0.10
DateTime::Format::Epoch::JD is Perl module Convert DateTimes to/from Julian Days. SYNOPSIS use DateTime::Format::Epoch::JD; my $dt = DateTime::Format::Epoch::JD->parse_datetime( 2453244.5 ); # 2004-08-27T00:00:00...
17.41 KB  
E-Mail Tools  -  Evolution Jescs 2.9.1
Evolution Jescs is the Evolution Connector for Sun Java Enterprise System Calendar Server (SJESCS). This connector supports the WCAP (Web Calendar Access Protocol) 2.0, 3.0, 3.1. How to setup a JESCS account? Now it is integrated into "Mail...
696.32 KB  
Development Tools  -  Covariance NMR Toolbox 1.0
Covariance NMR toolbox, version 1.1 (C) (2010)David A. Snyder(1) along with Timothy Short(1), Leigh Alzapiedi(1) and Rafael Bruschweiler (2)(1) Department of Chemistry, College of Science and Health, William Paterson University; (2) Department of...
8.25 MB  
Multimedia & Graphics  -  Vnc2flv 20100207
Vnc2flv is a screen recorder utility. It captures a VNC desktop session and saves it as a Flash Video (FLV) file. Vnc2flv is a rewrite of its predecessor, vnc2swf. As FLV format is more prevalent today, vnc2flv is specialized for FLV...
30.72 KB  
Programming  -  cutadapt 0.9.3
cutadapt is used to remove adapter sequences from high-throughput sequencing data. This is usually necessary when the read length of the sequencing machine is longer than the molecule that is sequenced, for example when sequencing microRNAs.
30.72 KB  
Log Analyzers  -  Wflogs 0.9.8
Wflogs is a firewall log analysis tool. It can be used to produce a log summary report in plain text, HTML and XML, or to monitor firewalling logs in real-time. This project is part of the WallFire project, but can be used independently. Usage...
747.52 KB  
Audio Tools  -  RasmusDSP 0.1 pre1
RasmusDSP is an embeddable Audio/MIDI processor. Has a script interpreter which is used to describe instruments, route Audio/MIDI signal between processor units. List of available units: Math Operators (audio and number domain) +, -, *, /,...
901.12 KB  
NEW DOWNLOADS IN SCRIPTS, DEVELOPMENT TOOLS
Scripts  -  Free Ecommerce website creator 1.2
Free Ecommerce website creator is a free PHP shop creating script. This allows you to put a online shop on your own website. Create your own free ecommerce website for Your Business. Create an online shop using easyGUI online shop creator. The...
1.44 KB  
Scripts  -  MochiGames PHP Script ZDR 1.00
MochiGames PHP Script ZDR is web site, ready for use, for flash games. These flash games are downloaded automatically by "MochiGames PHP Script ZDR" from MochiGames media. The use of the games is free, you can use your own Mochi Publisher ID and...
368.54 KB  
Scripts  -  Php Chat 2.0
Add a free php site, single sign-on and multiple skins, 100% free 1. Server Modes: The chat server has paid mode and free mode. If the free chat mode, a free chat room will be assigned to your website with your domain as the room name. 2....
938.87 KB  
Scripts  -  Nibbleblog 3.0.1
Nibbleblog it's a powerful engine for creation and manipulation of BLOG's completely free. Very simple to install and configure (Only 1 step). The database used is based on XML files and this way it is not necessary to use MySQL or similar DBMS....
371.09 KB  
Scripts  -  PHP File Manager | CloudOsys 2.9b8
CloudOsys is a PHP file manager, a tool that allows your visitors upload files such as media content directly to your website. Your visitors will upload files directly to your website, where they can share and comment on them. Through cloud...
1.41 MB  
Development Tools  -  Aml2CHM 3.50
Those who use the popular Aml Pages text editor might be looking out for a way of generating help files from their text and notes. Aml2CHM is a plug-in that was developed to offer people a quick and efficient way of converting Aml Pages documents...
549.99 KB  
Development Tools  -  VMP Viewer 1.0
This is a very rudimentary tool to visualize the VMP files generated by BrainVoyager. Useful to share files with people who do not have BV.
10 KB  
Development Tools  -  7-Zip for Script 4.42
7-Zip is a file archiver with a high compression ratio.Features:- High compression ratio in new 7z format with LZMA compression- Supported formats:- Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR- Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM,...
624.64 KB  
Development Tools  -  PHP Docbook Displayer for Scripts 1.0b
PHP Docbook Displayer provides XSL and CSS stylesheets, and PHP scripts, to generate easily and dynamically websites from Docbook files.It aims at simplifying to the max the web publication process : simply drop the docbook file under the site root !
102.4 KB  
Development Tools  -  WP Translate 1.0
This simple language translation plugin allows your users to quickly translate your webpages, through a widget on your blog.You have the option to select the title of the Widget, which will be displayed above the language translation form. Users...
10 KB