seaOscar.dl: OSCAR Sea currents data download

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/wind_functions2.R

Description

seaOscar.dl downloads sea currents data from the Ocean Surface Current Analyses Real-time (OSCAR) (https://coastwatch.pfeg.noaa.gov/erddap/info/jplOscar_LonPM180/index.html). Geospatial resolution is 0.33 degrees and sea currents are calculated for 15 m depth. CAUTION: OSCAR database has no data between 0 and 20 longitude degrees. You can use SCUD database instead (coming soon...)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
seaOscar.dl(
  yyyy,
  mm,
  dd,
  lon1,
  lon2,
  lat1,
  lat2,
  type = "read-data",
  trace = 1
)

Arguments

yyyy

Selected year.

mm

Selected month.

dd

Selected day.

lon1

Western longitude

lon2

Eastern longitude

lat1

Northern latitude

lat2

Southern latitude

type

Output type. "read-data" is selected by default, creating an R object. If you choose "csv", seaOscar.dl create a a CSV file in your working directory named "oscar_yyyy_mm_dd.csv".

trace

if trace = 1 (by default) track downloaded files

Details

The output type is determined by type="csv" or type="read-data". If type="csv" is selected, the function creates a "sea_yyyy_mm_dd.csv" file that is downloaded at the work directory. If type="read-data" is selected, an R object (data.frame) is created.

Value

"rWind" and "data.frame" class object or .csv file with U and V vector components and sea current direction and speed for each coordinate in the study area defined by lon1/lon2 and lat1/lat2.

Author(s)

Javier Fernández-López (jflopez.bio@gmail.com)

References

http://www.digital-geography.com/cloud-gis-getting-weather-data/#.WDOWmbV1DCL

https://coastwatch.pfeg.noaa.gov/erddap/info/jplOscar_LonPM180/index.html

See Also

wind.dl_2, wind2raster

Examples

1
2
3
4
5
6
# Download sea currents for Galapagos Islands
## Not run: 

seaOscar.dl(2015, 1, 1, -93, -88, 2, -3)

## End(Not run)

rWind documentation built on Oct. 19, 2021, 5:06 p.m.