"Extraction and Visualization of Hurricane Isabel Data"

Marcelo O. S. GuimarĂ£es
2016-12-11

Data Source

  • All data used on this project were obtained at this link
  • Details about the data structure were obtained at this link

Script: getGraphs.R

  • The file function getdata from the file “getGraphs.R” automatically downloads the necessary files and returns a data.table
  • function getData(tstep=2,tmax=43,step=10,path=“data/”)
  • tstep, how much of the time data will it skip?
  • tmax, at what point in time it will collect?
  • For the default values the time sequence will be:
seq(1,43,2)
 [1]  1  3  5  7  9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43
  • Simillary step indicates how much data will it skip in the x,y,z direction

Running the script: Collecting Data

source("getGraphs.R")
source("functions.R")
library(data.table)
fullDb=getData()
[1] "Took 5.00715827941895 secs to collect the data"

Running the script: Plotting Data

  • the interface is choose(fullDb,mx,my,mz,mt,mvariable)
  • fullDb is a data.table containing all the data downloaded and retained
  • mx,my,mz,mt are the dimensional variables of the data source
  • mvariable is the type of plot you want to produce
  • the possible types are:
+ temperature, pressure,both 

Running the script: Plotting Function

choose(fullDb,mx=39,my=29,mz=1,mt=1,
       mvariable="temperature")

plot of chunk unnamed-chunk-3

Running the script inside Rstudio

Inside R studio you set set the above options interactively via the package manipulate. A helper function getFilter deals with it all and you just need to worry with the database fullDb that can be obtained through the getData() function. The interactive output can only be show inside the rstudio.

Deliverable:

#This may take a long time since you may download 3.5G of data.

fullDb=getData()

getFilter(fullDb)

getFilter(fullDb)