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

Close-button

Snow Predictor: Portes du Soleil (Green Channel)

This trend is broken.

Warning: JPEG library error: Invalid component ID 255 in SOS.
Error using jpeg_depth
JPEG library error: Invalid component ID 255 in SOS.

Error in readjpg (line 13)
depth = jpeg_depth(filename);

Error in imread (line 434)
    [X, map] = feval(fmt_s.read, filename, extraArgs{:});
  • Created by: Hugo Carr
  • Last ran: almost 2 years ago.
  • Auto-run in: almost 2 years.
  • Created on: 25 Sep 2012

81

data points

Error

Description:

I am interested in tracking the snow season of my favourite ski resort in the Alps, to help get a good idea of when are the best times to go. MATLAB Trendy is a good way of tracking this kind of information on a day by day basis. However, in order to achieve this I would like to be able to analyse webcam data to measure snow coverage.

Image data is obtained from http://www.snoweye.com/

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

Time Recorded (time1820) Data (data1820)
15 Dec 2012 08:16:51 NaN
14 Dec 2012 08:16:52 [128.831352476702]
13 Dec 2012 08:16:45 [121.456211375749]
12 Dec 2012 08:16:43 [132.950049288429]
11 Dec 2012 08:16:48 [140.745737198113]
%% Read in the website which does screen caps of webcams
a = urlread('http://www.snoweye.com/?page=fr-ch-portesdusoleil');

%% Find the image which corresponds to Avoriaz
[~, ~, ~, matches] = regexp(a, '/grabs/[0-9]+/[0-9]+\.jpg');
uniqueMatches = unique(matches);
urls = cellfun(...
    @(x)['http://www.snoweye.com' x], ...
    uniqueMatches, ...
    'UniformOutput', false ...
    );

%% Read that image
red = zeros(length(urls),1);
green = zeros(length(urls),1);
blue = zeros(length(urls),1);
for i = 1:length(urls)
    myUrl = urls{i};
    im = imread(myUrl);

    red(i) = mean(mean(im(:,:,1)));
    green(i) = mean(mean(im(:,:,2)));
    blue(i) = mean(mean(im(:,:,3)));
end

redPredictor = mean(red);
bluePredictor = mean(blue);
greenPredictor = mean(green);

updatetrend(greenPredictor)
Tags:

    Add Tags


    0 comments