[ID,SRS] = isDaylight(dt, Lat, Long, [illumDef]);
Returns true if input time is during daylight for the input location.
Parameters |
Description |
dt [datetime] |
Date of observation. Can be a Matlab datetime object of a date vector. If not a datetime object, GMT is assumed. |
Lat [array] |
Latitude position, valid between -75 to 75 (deg) |
Long [array] |
Longitude position (deg) - uses military convention which has east longitudes as > 0 and west longitudes as < 0. |
illumDef [string] |
(Optional) Definition of solar illumination other than the standard definition (90 deg 50 min). Choose between 'Civil' - 96 deg (twilight), 'Nautical' - 102 deg, or 'Astro' - 108 deg. |
Return Values |
Description |
ID [bool] |
true if input time is during daylight hours |
SRS [struct] |
Contains the sun vector information (see SunRiseSet) |
Copyright (c) 2009. All rights reserved.
|
What do you think about this topic? Send feedback!
|