Since you are new, let us show you how Trendy works.

Close-button

Daylight Hours Bangor Maine

This trend is broken.

Your code has an error or you are requesting a feature that is not yet available.
  • Created by: John Cangelosi
  • Last ran: over 1 year ago.
  • Auto-run in: over 1 year.
  • Created on: 30 Jan 2013

1559

data points

Error

Description:

daylight hours in decimal format

Recently Collected Data (last 5 of 1559) Show All Data

Time Recorded (time1938) Data (data1938)
05 Apr 2013 17:03:22 NaN
05 Apr 2013 16:00:45 [9.73333333333333]
05 Apr 2013 15:00:38 [9.73333333333333]
05 Apr 2013 14:00:42 [9.73333333333333]
05 Apr 2013 13:00:51 [9.73333333333333]
% Daylight hours for Bangor

% find the target site
url = 'http://www.wunderground.com/history/airport/KBGR/2013/1/30/DailyHistory.html';

% find the target number to 'scrape'
daylight_h = urlfilter(url, 'Length of Day',1);

% this is the minute value assigned to another variable
daylight_m = urlfilter(url, 'Length of Day',2);

% convert minutes to decimal value
daylight_m = (daylight_m/60);

% assign variable to sum of data
partial_hour = (daylight_h + daylight_m);

%returns two values so just use the second
graphit = partial_hour(2);

% update trendy
updatetrend(graphit);
Tags:

    Add Tags


    0 comments