Package xtractomatic

Similar documents
Package xtractomatic

Package cattonum. R topics documented: May 2, Type Package Version Title Encode Categorical Features

Package grec. R topics documented: August 13, Type Package

Package geojsonsf. R topics documented: January 11, Type Package Title GeoJSON to Simple Feature Converter Version 1.3.

Package opencage. January 16, 2018

Package nngeo. September 29, 2018

Package rnrfa. April 13, 2018

Package lumberjack. R topics documented: July 20, 2018

Package fastdummies. January 8, 2018

Package datasets.load

Package censusr. R topics documented: June 14, Type Package Title Collect Data from the Census API Version 0.0.

Package docxtools. July 6, 2018

Package jpmesh. December 4, 2017

Package robotstxt. November 12, 2017

Package fitbitscraper

Package githubinstall

Package nlgeocoder. October 8, 2018

Package vinereg. August 10, 2018

Package TrajDataMining

Package ggimage. R topics documented: November 1, Title Use Image in 'ggplot2' Version 0.0.7

Package angstroms. May 1, 2017

Package preprosim. July 26, 2016

Package tidytransit. March 4, 2019

Package TrafficBDE. March 1, 2018

Package kirby21.base

Package reval. May 26, 2015

Package ECctmc. May 1, 2018

Package ezsummary. August 29, 2016

Package calpassapi. August 25, 2018

Package ggimage. R topics documented: December 5, Title Use Image in 'ggplot2' Version 0.1.0

Package darksky. September 20, 2017

Package repec. August 31, 2018

Package barcoder. October 26, 2018

Package GetITRData. October 22, 2017

Package rnaturalearth

Package sfdct. August 29, 2017

Package facerec. May 14, 2018

Package validara. October 19, 2017

Package bsam. July 1, 2017

Package GetHFData. November 28, 2017

Package sdmpredictors

Package scrubr. August 29, 2016

Package statsdk. September 30, 2017

Package weco. May 4, 2018

Package readxl. April 18, 2017

Package cregulome. September 13, 2018

Package rpostgislt. March 2, 2018

Package bisect. April 16, 2018

Package tiler. June 9, 2018

Package gggenes. R topics documented: November 7, Title Draw Gene Arrow Maps in 'ggplot2' Version 0.3.2

Package projector. February 27, 2018

Package spelling. December 18, 2017

Package waver. January 29, 2018

Package splithalf. March 17, 2018

Package guardianapi. February 3, 2019

Package canvasxpress

Package benchmarkme. R topics documented: February 26, Type Package Title Crowd Sourced System Benchmarks Version 0.2.

Package qualmap. R topics documented: September 12, Type Package

Package geogrid. August 19, 2018

Package BANEScarparkinglite

Package ezknitr. September 16, 2016

Package svalues. July 15, 2018

Package SEMrushR. November 3, 2018

Package knitrprogressbar

Package liftr. R topics documented: May 14, Type Package

Package editdata. October 7, 2017

Package virustotal. May 1, 2017

Package oec. R topics documented: May 11, Type Package

Package reconstructr

Package dotcall64. January 11, 2018

Package rollply. R topics documented: August 29, Title Moving-Window Add-on for 'plyr' Version 0.5.0

Package rmapzen. October 7, 2018

Package geojson. November 8, 2017

Package cancensus. February 4, 2018

Package censusapi. August 19, 2018

Package marinespeed. February 17, 2017

Package gtrendsr. October 19, 2017

Package osrm. November 13, 2017

Package humanize. R topics documented: April 4, Version Title Create Values for Human Consumption

Package internetarchive

Package dkanr. July 12, 2018

Package messaging. May 27, 2018

Package mapsapi. March 12, 2018

Package goodpractice

Package ggseas. June 12, 2018

Package mapr. April 11, 2017

Package postal. July 27, 2018

Package catenary. May 4, 2018

Package fingertipsr. May 25, Type Package Version Title Fingertips Data for Public Health

Package loggit. April 9, 2018

Package xroi. February 13, 2019

Package rbgm. May 18, 2018

Package raker. October 10, 2017

Package mdftracks. February 6, 2017

Package timechange. April 26, 2018

Package BiocManager. November 13, 2018

Package edfreader. R topics documented: May 21, 2017

Package colf. October 9, 2017

Package fastqcr. April 11, 2017

Package frequencyconnectedness

Transcription:

Package xtractomatic May 19, 2017 Version 3.3.2 Title Accessing Environmental Data from ERD's ERDDAP Server Contains three functions that access environmental data from ERD's ERDDAP service <http://coastwatch.pfeg.noaa.gov/erddap>. The xtracto() function extracts data along a trajectory for a given ``radius'' around the point. The xtracto_3d() function extracts data in a box. The xtractogon() function extracts data in a polygon. There are also two helper functions to obtain information about available data. Depends R (>= 3.3.0) License CC0 LazyData true URL https://github.com/rmendels/xtractomatic BugReports http://www.github.com/rmendels/xtractomatic/issues Imports httr, ncdf4, sp, stats, utils Suggests DT, ggplot2, knitr, lubridate, mapdata, RColorBrewer, reshape2 VignetteBuilder knitr RoxygenNote 6.0.1 NeedsCompilation no Author Roy Mendelssohn [aut, cre], Cindy Bessey [ctb], Dave Foley [ctb] Maintainer Roy Mendelssohn <roy.mendelssohn@noaa.gov> Repository CRAN Date/Publication 2017-05-19 12:55:05 UTC 1

2 getinfo R topics documented: getinfo............................................ 2 Marlintag38606....................................... 3 mbnms............................................ 4 searchdata.......................................... 4 xtracto............................................ 6 xtractogon.......................................... 7 xtractomatic......................................... 8 xtracto_3d......................................... 9 Index 11 getinfo Extract dataset information for a given dtype name or number getinfo displays the dataset information for a given dtype or dtypename getinfo(dtype) Arguments dtype - character string or integer (1-138) for given dataset Value Details prints out dataset information getinfo gives the dataset information for the given dataset. This includes: dtypename,datasetname,longname,varname. It will return the following information about any dataset that matches the string: dtypename datasetname longname varname hasalt latsouth lon360 minlongitude maxlongitude

Marlintag38606 3 longitudespacing minlatitude maxlatitude latitudespacing minaltitude maxaltitude mintime maxtime timespacing infourl Examples getinfo('atsstamday') Marlintag38606 Marlin Tag Data Telemetry data of a blue marlin tagged in the Pacific Ocean in 2003 Marlintag38606 Format A data frame with 152 obs. of 7 variables: date time of observation given as YYYY-MM-DD lon longitude of observation lat latitude of observation lowlon low error on longitude higlon high error on longitude lowlat low error on latitude higlat high error on latitude Source Dr. Mike Musyl, Pelagic Research Group LLC

4 searchdata mbnms MBNMS Boundaries A dataset containing the latitudes and longitudes of a polygon that define boundaries of the Monterey Bay National Marine Sanctuary. mbnms Format A data frame with 6666 obs. of 2 variables: Longitude Longitudes of a boundary polygon Latitude Latitudes of a boundary polygon Source http://sanctuaries.noaa.gov/library/imast_gis.html searchdata Extract dataset information based on a list of character strings searchdata finds the all datasets that contain the supplied string in the given dataset field searchdata(searchlist = list(list("varname", "chl"))) Arguments searchlist - A list of lists each list will contain the field to search and the search string Value dataframe with any matching information

searchdata 5 Details searchdata will search for the given string in any of the fields dtypename,datasetname,longname,varname. Over the list of searchs provided, the search sequentially refines the search result based on the next list in the list of lists. It will return the following information about any dataset that matches the string: dtypename datasetname longname varname hasalt latsouth lon360 minlongitude maxlongitude longitudespacing minlatitude maxlatitude latitudespacing minaltitude maxaltitude mintime maxtime timespacing infourl Examples list1 <- 'varname:x_wind' list2 <- 'datasetname:8day' mylist <- c(list1, list2) searchresult <- searchdata(mylist)

6 xtracto xtracto Extract environmental data along a trajectory using ERDDAP. xtracto uses the ERD ERDDAP data web service to extact environmental data along a longitude, latitude and time trajectory xtracto(xpos, ypos, tpos, dtype, xlen, ylen, verbose = FALSE) Arguments xpos ypos tpos dtype xlen ylen verbose - a real array with the longitudes of the trajectory (in decimal degrees East, either 0-360 or -180 to 180) - a real array with the latitudes of the trajectory (in decimal degrees N; -90 to 90) - a character array with the times of the trajectory in "YYYY-MM-DD" - number or string identfying the ERDDAP parameter to extract - real array defining the longitude box around the given point (xlen/2 around the point) - real array defining the latitude box around the given point (tlen/2 around the point) - logical for verbose download out, default FALSE Value A dataframe containing: column 1 = mean of data within search radius column 2 = standard deviation of data within search radius column 3 = number of points found within search radius column 4 = time of returned value column 5 = min longitude of call (decimal degrees) column 6 = max longitude of call (decimal degrees) column 7 = min latitude of call (decimal degrees) column 8 = max latitude of call (decimal degrees) column 9 = requested time in tag column 10 = median of data within search radius column 11 = median absolute deviation of data within search radius

xtractogon 7 Examples xpos <- c(230, 235) ypos <- c(40, 45) tpos <- c('2006-01-15', '2006-01-20') xlen <- 0.2 ylen <- 0.2 extract <- xtracto(xpos, ypos, tpos, 'erdmbsstd8day', xlen, ylen) extract <- xtracto(xpos, ypos,tpos, 'erdmbsstd8day', xlen, ylen, verbose = TRUE) xtractogon Extract environmental data in a polygon using ERDDAP. xtractogon uses the ERD ERDDAP data web service to extact environmental data inside a polygon defined by vectors of latitudes and longitudes xtractogon(xpos, ypos, tpos, dtype, verbose = FALSE) Arguments xpos - array giving longitudes (in decimal degrees East, either 0-360 or -180 to 180) of polygon ypos tpos dtype verbose - array giving latitudes (in decimal degrees N; -90 to 90)of polygon - 2-array of minimum and maximum times as YYYY-MM-DD - number or string identfying the ERDDAP parameter to extract - logical for verbose download out, default FALSE Value structure with data and dimensions extract$data - the masked data array dimensioned (lon,lat,time) extract$varname - the name of the parameter extracted extract$datasetname - ERDDAP dataset name extract$longitude - the longitudes on some scale as request extract$latitude - the latitudes always going south to north extract$time - the times of the extracts

8 xtractomatic Details xtractogon extracts the data from the smallest bounding box that contains the polygon, and then uses the function "point.in.polygon" from the "sp" package to mask out the areas outside of the polygon. Examples tpos <- c("2014-09-01", "2014-10-01") xpos <- mbnms$longitude ypos <- mbnms$latitude sanctchl <- xtractogon(xpos, ypos, tpos, 'erdvh3chlamday') xtractomatic xtractomatic: Routines to simplify data extraction using ERD s ERD- DAP web service. The xtractomatic package is a set of routines to simplify accessing data using ERD s ERDDAP data web service. The package contains three main functions and two helper functions. Main Functions xtracto - Extracts an environmental variable along a track defined by its longtiude, latitude and time. xtracto_3d - Extracts an environmental variable in a 3D (longitude,latitude, time) bounding box xtractogon - Extracts an environmental variable in a spatial polygon through time. Helper Functions searchdata - Searches to see if given string is contained in the datasetname, varname, or dtypename. See?searchData. getinfo - Returns information about a given environmental variable. See?getInfo. @section Details: When the xtractomatic package is loaded ("library(xtractomatic)") a data structure called erddapstruct is automatically loaded into memory, and is explicitly used in searchdata and getinfo, as well implicitly in the other functions. Not all ERDDAP variables are accessed in the routines, and this structure defines information about the datasets, including: dtypename datasetname longname varname hasalt latsouth

xtracto_3d 9 lon360 minlongitude maxlongitude longitudespacing minlatitude maxlatitude latitudespacing minaltitude maxaltitude mintime maxtime timespacing infourl Besides the terse help documents, more detail in using the functions are given in the included vignette "Usingxtractomatic". The datasets used in the vignette are included in the "data" directory. xtracto_3d Extract environmental data in a 3-D bounding box using ERDDAP. xtracto_3d uses the ERD ERDDAP data web service to extact environmental data in a given longitude, latitude and time bounding box xtracto_3d(xpos, ypos, tpos, dtype, verbose = FALSE) Arguments xpos - 2-element array giving min and max longitude (in decimal degrees East, either 0-360 or -180 to 180) ypos - 2-element array giving min and max latitude (in decimal degrees N; -90 to 90) tpos dtype verbose - 2-element array giving min and max time (specify both minimum and maximum dates). For the last available time, use "last". - number or string identfying the ERDDAP parameter to extract - logical for verbose download output, default FALSE

10 xtracto_3d Value structure with data and dimensions: Examples extract$data - the data array dimensioned (lon,lat,time) extract$varname - the name of the parameter extracted extract$datasetname - ERDDAP dataset name extract$longitude - the longitudes on some scale as request extract$latitude - the latitudes always going south to north extract$time - the times of the extracts xpos <- c(230, 231) ypos <- c(40, 41) tpos <- c('2006-05-05', '2006-05-06') extract <- xtracto_3d(xpos, ypos, tpos, 'ncdcoisst2agg') extract <- xtracto_3d(xpos, ypos, tpos, 'erdmbsstd8day', verbose=true)

Index Topic datasets Marlintag38606, 3 mbnms, 4 getinfo, 2 Marlintag38606, 3 mbnms, 4 searchdata, 4 xtracto, 6 xtracto_3d, 9 xtractogon, 7 xtractomatic, 8 xtractomatic-package (xtractomatic), 8 11