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
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
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.
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.