-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
brasmus
committed
Dec 13, 2024
1 parent
e4c4e53
commit 5d4ba7a
Showing
12 changed files
with
311 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Package: esd | ||
Version: 1.10.91 | ||
Date: 2024-11-04 | ||
Version: 1.10.92 | ||
Date: 2024-12-11 | ||
Title: Climate analysis and empirical-statistical downscaling (ESD) package for monthly and daily data | ||
Author: Rasmus E. Benestad, Abdelkader Mezghani, Kajsa M. Parding, Helene B. Erlandsen, Ketil Tunheim, and Cristian Lussana | ||
Maintainer: Rasmus E. Benestad <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
station.YR <- function(is,url="https://api.met.no/weatherapi/locationforecast/2.0/",verbose=TRUE) { | ||
# Load jsonlite package | ||
library(jsonlite) | ||
|
||
if (inherits(is,'station')) is <- list(lon=lon(is),lat=lat(is)) | ||
## If field, then need to repeat so that there is equal lons and lats | ||
# URL | ||
#url <- "https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=60.10&lon=9.58" | ||
|
||
URL <- paste0(url,'compact?lat=',lat,'&lon=',lon) | ||
# Read JSON data from the URL | ||
data <- fromJSON(url) | ||
|
||
# View the data | ||
View(data) | ||
} |
Oops, something went wrong.