ondas: Forecast of sea waves for coastal locations

View source: R/ondas.R

ondasR Documentation

Forecast of sea waves for coastal locations

Description

This function allows the user to retrieve data from CPTEC/INPE weather forecast API for sea waves. The data frame returned contain last updat, day, hour of the day, sea turmoil, wave's height and wind's direction and intensity

Usage

ondas(id, dia = "todos")

Arguments

id

The city's ID

dia

"todos" (default) or a numeric/character value with "0", "1" or "2"

Details

The dia argument can be set to:

  • 0: Return only the actual's day data

  • 1: Return only the tomorrow's data

  • 2: Return only the after tomorrow's data

  • todos: Return all data available

Value

The function returns a data frame printed by parameters input

Author(s)

Renato Prado Siqueira rpradosiqueira@gmail.com

See Also

iuv

Examples

## Requesting sea waves' forecast from the city of Rio de Janeiro/RJ
ondas(241)


rpradosiqueira/cptec documentation built on June 14, 2022, 7:41 a.m.