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

Close-button

Average magnitude of earthquakes past day

This trend is broken.

Your code has an error or you are requesting a feature that is not yet available.
  • Created by: Semin Ibisevic
  • Last ran: 8 months ago.
  • Auto-run in: 8 months.
  • Created on: 03 Jun 2012

487

data points

Error

Description:

Including all earthquakes in the world. Data provided by the Eearthquake Notification Service ENS.

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

Time Recorded (time1713) Data (data1713)
12 Feb 2014 05:33:16 NaN
11 Feb 2014 05:31:14 [1.83314606741573]
10 Feb 2014 05:30:34 [1.72364532019704]
09 Feb 2014 05:30:33 [NaN]
08 Feb 2014 05:30:34 [NaN]
% -------------------------
% import and prepare data

url = 'http://earthquake.usgs.gov/earthquakes/feed/csv/all/day';
block = urlread(url);
fmt = '%s %s %s %s %s %s %s %s %s %s %s %s %s';
readData = textscan(block, fmt, 'delimiter', ',');


% -------------------------
% process
T = size(readData{5},1);
magnitudes = zeros(T-1,1);
for t = 2:T
magnitudes(t-1) = str2double( char( readData{5}(t) ) );
end

avgMagn = mean(magnitudes);

updatetrend(avgMagn );
Tags:

    Add Tags


    0 comments