Skip to content

Commit efc9e08

Browse files
committed
Prepare for CRAN
1 parent eb87e94 commit efc9e08

12 files changed

+78
-90
lines changed

CITATION.cff

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ message: 'To cite package "climaemet" in publications use:'
88
type: software
99
license: GPL-3.0-only
1010
title: 'climaemet: Climate AEMET Tools'
11-
version: 1.1.1.9000
11+
version: 1.2.0
1212
doi: 10.5281/zenodo.5205573
1313
abstract: Tools to download the climatic data of the Spanish Meteorological Agency
1414
(AEMET) directly from R using their API and create scientific graphs (climate charts,
@@ -177,9 +177,6 @@ references:
177177
178178
orcid: https://orcid.org/0000-0002-4035-0289
179179
year: '2023'
180-
identifiers:
181-
- type: url
182-
value: https://arxiv.org/abs/1403.2805
183180
version: '>= 1.7.0'
184181
- type: software
185182
title: rappdirs

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: climaemet
22
Title: Climate AEMET Tools
3-
Version: 1.1.1.9000
3+
Version: 1.2.0
44
Authors@R: c(
55
person("Manuel", "Pizarro", role = c("aut", "cph"),
66
comment = c(ORCID = "0000-0002-6981-0154")),

NEWS.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# climaemet (development version)
1+
# climaemet 1.2.0
22

33
- Now it is possible to extract metadata from each API call using the
44
parameter `extract_metadata = TRUE` (#40).
@@ -81,18 +81,13 @@
8181
# climaemet 0.2.0
8282

8383
- rename `ggstripes_station()` to `climatestripes_station()`.
84-
8584
- `climatogram_normal()`. New function to plot a Walter & Lieth climatic
8685
diagram from normal climatology values.
87-
8886
- `climatogram_period()`. New function to plot a Walter & Lieth climatic
8987
diagram for a specified time period.
90-
9188
- `ggwindrose()`. New function to plot windrose diagram.
92-
9389
- `windrose_days()`. New function to plot a windrose (speed/direction) diagram
9490
of a station over a days period.
95-
9691
- `windrose_period()`. New function to plot a windrose (speed/direction)
9792
diagram of a station over a time period.
9893

R/aemet_forecast_hourly.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#' @family forecasts
77
#'
88
#' @param x A vector of municipality codes to extract. For convenience,
9-
#' \pkg{climaemet} provides this data on the dataset [aemet_munic]
9+
#' \CRANpkg{climaemet} provides this data on the dataset [aemet_munic]
1010
#' (see `municipio` field) as of January 2020.
1111
#' @param extract_metadata Logical `TRUE/FALSE`. On `TRUE` the output is
1212
#' a `tibble` with the description of the fields. See also
@@ -25,7 +25,7 @@
2525
#' @details
2626
#'
2727
#' Forecasts format provided by the AEMET API have a complex structure.
28-
#' Although \pkg{climaemet} returns a `tibble`, each forecasted value is
28+
#' Although \CRANpkg{climaemet} returns a `tibble`, each forecasted value is
2929
#' provided as a nested `tibble`. [aemet_forecast_tidy()] helper function can
3030
#' unnest these values an provide a single unnested `tibble` for the requested
3131
#' variable.

README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -117,20 +117,20 @@ library(climaemet)
117117
# See a tibble in action
118118

119119
aemet_last_obs("9434")
120-
#> # A tibble: 23 × 25
120+
#> # A tibble: 24 × 25
121121
#> idema lon fint prec alt vmax vv dv lat dmax
122122
#> <chr> <dbl> <dttm> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
123-
#> 1 9434 -1.00 2023-08-11 23:00:00 0 249 4.2 1.6 340 41.7 315
124-
#> 2 9434 -1.00 2023-08-12 00:00:00 0 249 5.7 3.5 299 41.7 305
125-
#> 3 9434 -1.00 2023-08-12 01:00:00 0 249 7 5 285 41.7 275
126-
#> 4 9434 -1.00 2023-08-12 02:00:00 0 249 5.3 2.6 326 41.7 285
127-
#> 5 9434 -1.00 2023-08-12 03:00:00 0 249 4.7 0.9 331 41.7 315
128-
#> 6 9434 -1.00 2023-08-12 04:00:00 0 249 3 2.3 239 41.7 240
129-
#> 7 9434 -1.00 2023-08-12 05:00:00 0 249 2.3 1.5 264 41.7 273
130-
#> 8 9434 -1.00 2023-08-12 06:00:00 0 249 3.2 2.1 260 41.7 263
131-
#> 9 9434 -1.00 2023-08-12 07:00:00 0 249 5 4.1 308 41.7 305
132-
#> 10 9434 -1.00 2023-08-12 08:00:00 0 249 5.2 3.7 319 41.7 313
133-
#> # ℹ 13 more rows
123+
#> 1 9434 -1.00 2023-08-28 15:00:00 0 249 19.9 11.8 317 41.7 313
124+
#> 2 9434 -1.00 2023-08-28 16:00:00 0 249 16.4 9.6 317 41.7 320
125+
#> 3 9434 -1.00 2023-08-28 17:00:00 0 249 15.2 8.8 323 41.7 330
126+
#> 4 9434 -1.00 2023-08-28 18:00:00 0 249 13 7.3 323 41.7 330
127+
#> 5 9434 -1.00 2023-08-28 19:00:00 0 249 11.5 5.8 326 41.7 303
128+
#> 6 9434 -1.00 2023-08-28 20:00:00 0 249 10.6 5.8 322 41.7 330
129+
#> 7 9434 -1.00 2023-08-28 21:00:00 0 249 12.8 8 323 41.7 325
130+
#> 8 9434 -1.00 2023-08-28 22:00:00 0 249 11.7 7 325 41.7 335
131+
#> 9 9434 -1.00 2023-08-28 23:00:00 0 249 11 6.7 298 41.7 310
132+
#> 10 9434 -1.00 2023-08-29 00:00:00 0 249 14.2 8.3 290 41.7 303
133+
#> # ℹ 14 more rows
134134
#> # ℹ 15 more variables: ubi <chr>, pres <dbl>, hr <dbl>, stdvv <dbl>, ts <dbl>,
135135
#> # pres_nmar <dbl>, tamin <dbl>, ta <dbl>, tamax <dbl>, tpr <dbl>,
136136
#> # stddv <dbl>, inso <dbl>, tss5cm <dbl>, pacutp <dbl>, tss20cm <dbl>
@@ -167,14 +167,14 @@ data_observation <- aemet_last_obs(station)
167167
knitr::kable(head(data_observation))
168168
```
169169

170-
| idema | lon | fint | prec | alt | vmax | vv | dv | lat | dmax | ubi | pres | hr | stdvv | ts | pres_nmar | tamin | ta | tamax | tpr | stddv | inso | tss5cm | pacutp | tss20cm |
171-
|:------|----------:|:--------------------|-----:|----:|-----:|----:|----:|---------:|-----:|:--------------------|------:|----:|------:|-----:|----------:|------:|-----:|------:|-----:|------:|-----:|-------:|-------:|--------:|
172-
| 9434 | -1.004167 | 2023-08-11 23:00:00 | 0 | 249 | 4.2 | 1.6 | 340 | 41.66056 | 315 | ZARAGOZA AEROPUERTO | 990.0 | 38 | 0.6 | 27.2 | 1018.5 | 28.2 | 28.2 | 30.0 | 12.5 | 19 | 0 | 34.2 | 0 | 35.7 |
173-
| 9434 | -1.004167 | 2023-08-12 00:00:00 | 0 | 249 | 5.7 | 3.5 | 299 | 41.66056 | 305 | ZARAGOZA AEROPUERTO | 989.8 | 43 | 0.7 | 26.6 | 1018.3 | 27.0 | 27.7 | 28.2 | 13.9 | 12 | 0 | 33.4 | 0 | 35.4 |
174-
| 9434 | -1.004167 | 2023-08-12 01:00:00 | 0 | 249 | 7.0 | 5.0 | 285 | 41.66056 | 275 | ZARAGOZA AEROPUERTO | 989.5 | 49 | 0.4 | 25.9 | 1018.2 | 26.0 | 26.0 | 27.8 | 14.4 | 6 | 0 | 32.8 | 0 | 35.1 |
175-
| 9434 | -1.004167 | 2023-08-12 02:00:00 | 0 | 249 | 5.3 | 2.6 | 326 | 41.66056 | 285 | ZARAGOZA AEROPUERTO | 989.7 | 55 | 0.4 | 24.2 | 1018.6 | 24.4 | 24.4 | 26.0 | 14.8 | 13 | 0 | 32.1 | 0 | 34.8 |
176-
| 9434 | -1.004167 | 2023-08-12 03:00:00 | 0 | 249 | 4.7 | 0.9 | 331 | 41.66056 | 315 | ZARAGOZA AEROPUERTO | 989.6 | 57 | 0.2 | 23.2 | 1018.5 | 24.2 | 24.2 | 24.6 | 15.2 | 30 | 0 | 31.5 | 0 | 34.4 |
177-
| 9434 | -1.004167 | 2023-08-12 04:00:00 | 0 | 249 | 3.0 | 2.3 | 239 | 41.66056 | 240 | ZARAGOZA AEROPUERTO | 989.6 | 51 | 0.4 | 22.7 | 1018.6 | 23.2 | 23.2 | 24.2 | 12.5 | 8 | 0 | 30.8 | 0 | 34.1 |
170+
| idema | lon | fint | prec | alt | vmax | vv | dv | lat | dmax | ubi | pres | hr | stdvv | ts | pres_nmar | tamin | ta | tamax | tpr | stddv | inso | tss5cm | pacutp | tss20cm |
171+
|:------|----------:|:--------------------|-----:|----:|-----:|-----:|----:|---------:|-----:|:--------------------|------:|----:|------:|-----:|----------:|------:|-----:|------:|-----:|------:|-----:|-------:|-------:|--------:|
172+
| 9434 | -1.004167 | 2023-08-28 15:00:00 | 0 | 249 | 19.9 | 11.8 | 317 | 41.66056 | 313 | ZARAGOZA AEROPUERTO | 987.1 | 42 | 1.6 | 31.3 | 1015.9 | 24.1 | 25.0 | 25.3 | 11.2 | 8 | 59.1 | 34.2 | 0 | 30.0 |
173+
| 9434 | -1.004167 | 2023-08-28 16:00:00 | 0 | 249 | 16.4 | 9.6 | 317 | 41.66056 | 320 | ZARAGOZA AEROPUERTO | 986.9 | 40 | 1.7 | 28.7 | 1015.7 | 24.2 | 24.9 | 25.2 | 10.4 | 9 | 20.6 | 33.8 | 0 | 30.4 |
174+
| 9434 | -1.004167 | 2023-08-28 17:00:00 | 0 | 249 | 15.2 | 8.8 | 323 | 41.66056 | 330 | ZARAGOZA AEROPUERTO | 986.8 | 39 | 1.8 | 27.5 | 1015.6 | 24.9 | 24.9 | 26.1 | 10.0 | 10 | 53.9 | 33.7 | 0 | 30.7 |
175+
| 9434 | -1.004167 | 2023-08-28 18:00:00 | 0 | 249 | 13.0 | 7.3 | 323 | 41.66056 | 330 | ZARAGOZA AEROPUERTO | 986.4 | 41 | 1.4 | 25.5 | 1015.2 | 24.4 | 24.4 | 25.4 | 10.3 | 11 | 23.6 | 32.7 | 0 | 31.0 |
176+
| 9434 | -1.004167 | 2023-08-28 19:00:00 | 0 | 249 | 11.5 | 5.8 | 326 | 41.66056 | 303 | ZARAGOZA AEROPUERTO | 986.8 | 47 | 1.5 | 23.6 | 1015.8 | 23.0 | 23.0 | 24.6 | 11.1 | 11 | 11.9 | 31.4 | 0 | 31.2 |
177+
| 9434 | -1.004167 | 2023-08-28 20:00:00 | 0 | 249 | 10.6 | 5.8 | 322 | 41.66056 | 330 | ZARAGOZA AEROPUERTO | 987.1 | 52 | 1.2 | 22.2 | 1016.2 | 21.9 | 21.9 | 23.0 | 11.6 | 11 | 0.0 | 30.3 | 0 | 31.2 |
178178

179179
``` r
180180

codemeta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"codeRepository": "https://github.com/rOpenSpain/climaemet",
99
"issueTracker": "https://github.com/rOpenSpain/climaemet/issues",
1010
"license": "https://spdx.org/licenses/GPL-3.0",
11-
"version": "1.1.1.9000",
11+
"version": "1.2.0",
1212
"programmingLanguage": {
1313
"@type": "ComputerLanguage",
1414
"name": "R",
@@ -289,7 +289,7 @@
289289
},
290290
"applicationCategory": "Meteorology",
291291
"isPartOf": "https://ropenspain.es/",
292-
"fileSize": "1052.453KB",
292+
"fileSize": "1046.421KB",
293293
"citation": [
294294
{
295295
"@type": "SoftwareSourceCode",

inst/schemaorg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"url": "https://cran.r-project.org"
4444
},
4545
"runtimePlatform": "R version 4.3.1 (2023-06-16 ucrt)",
46-
"version": "1.1.1.9000"
46+
"version": "1.2.0"
4747
},
4848
{
4949
"id": "https://doi.org/10.5281/zenodo.5205573",

man/aemet_forecast.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/figures/README-spatial-1.png

99 Bytes
Loading

vignettes/climaemet.Rmd

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Get started with climaemet 1.0.0"
3-
date: 2023-08-12
3+
date: 2023-08-29
44
author: <a href="https://orcid.org/0000-0001-8457-4658">Diego Hernangómez <img alt="ORCID logo" src="https://info.orcid.org/wp-content/uploads/2019/11/orcid_24x24.png" width="16" height="16" /></a>
55
output: rmarkdown::html_vignette
66
vignette: >
@@ -88,22 +88,21 @@ See how a tibble is displayed:
8888

8989
aemet_last_obs("9434")
9090
#> # A tibble: 23 × 25
91-
#> idema lon fint prec alt vmax vv dv lat dmax
92-
#> <chr> <dbl> <dttm> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
93-
#> 1 9434 -1.00 2023-08-11 23:00:00 0 249 4.2 1.6 340 41.7 315
94-
#> 2 9434 -1.00 2023-08-12 00:00:00 0 249 5.7 3.5 299 41.7 305
95-
#> 3 9434 -1.00 2023-08-12 01:00:00 0 249 7 5 285 41.7 275
96-
#> 4 9434 -1.00 2023-08-12 02:00:00 0 249 5.3 2.6 326 41.7 285
97-
#> 5 9434 -1.00 2023-08-12 03:00:00 0 249 4.7 0.9 331 41.7 315
98-
#> 6 9434 -1.00 2023-08-12 04:00:00 0 249 3 2.3 239 41.7 240
99-
#> 7 9434 -1.00 2023-08-12 05:00:00 0 249 2.3 1.5 264 41.7 273
100-
#> 8 9434 -1.00 2023-08-12 06:00:00 0 249 3.2 2.1 260 41.7 263
101-
#> 9 9434 -1.00 2023-08-12 07:00:00 0 249 5 4.1 308 41.7 305
102-
#> 10 9434 -1.00 2023-08-12 08:00:00 0 249 5.2 3.7 319 41.7 313
91+
#> idema lon fint prec alt vmax vv dv lat dmax ubi pres hr stdvv ts
92+
#> <chr> <dbl> <dttm> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <chr> <dbl> <dbl> <dbl> <dbl>
93+
#> 1 9434 -1.00 2023-08-28 15:00:00 0 249 19.9 11.8 317 41.7 313 ZARAGOZA AER… 987. 42 1.6 31.3
94+
#> 2 9434 -1.00 2023-08-28 16:00:00 0 249 16.4 9.6 317 41.7 320 ZARAGOZA AER… 987. 40 1.7 28.7
95+
#> 3 9434 -1.00 2023-08-28 17:00:00 0 249 15.2 8.8 323 41.7 330 ZARAGOZA AER… 987. 39 1.8 27.5
96+
#> 4 9434 -1.00 2023-08-28 18:00:00 0 249 13 7.3 323 41.7 330 ZARAGOZA AER… 986. 41 1.4 25.5
97+
#> 5 9434 -1.00 2023-08-28 19:00:00 0 249 11.5 5.8 326 41.7 303 ZARAGOZA AER… 987. 47 1.5 23.6
98+
#> 6 9434 -1.00 2023-08-28 20:00:00 0 249 10.6 5.8 322 41.7 330 ZARAGOZA AER… 987. 52 1.2 22.2
99+
#> 7 9434 -1.00 2023-08-28 21:00:00 0 249 12.8 8 323 41.7 325 ZARAGOZA AER… 987. 57 1.5 21.5
100+
#> 8 9434 -1.00 2023-08-28 22:00:00 0 249 11.7 7 325 41.7 335 ZARAGOZA AER… 987. 59 1.3 20.9
101+
#> 9 9434 -1.00 2023-08-28 23:00:00 0 249 11 6.7 298 41.7 310 ZARAGOZA AER… 987. 60 1 20.5
102+
#> 10 9434 -1.00 2023-08-29 00:00:00 0 249 14.2 8.3 290 41.7 303 ZARAGOZA AER… 987. 60 1.3 20.2
103103
#> # ℹ 13 more rows
104-
#> # ℹ 15 more variables: ubi <chr>, pres <dbl>, hr <dbl>, stdvv <dbl>, ts <dbl>,
105-
#> # pres_nmar <dbl>, tamin <dbl>, ta <dbl>, tamax <dbl>, tpr <dbl>,
106-
#> # stddv <dbl>, inso <dbl>, tss5cm <dbl>, pacutp <dbl>, tss20cm <dbl>
104+
#> # ℹ 10 more variables: pres_nmar <dbl>, tamin <dbl>, ta <dbl>, tamax <dbl>, tpr <dbl>, stddv <dbl>, inso <dbl>,
105+
#> # tss5cm <dbl>, pacutp <dbl>, tss20cm <dbl>
107106
```
108107

109108
Note that when possible, data representing dates and numbers are converted to

0 commit comments

Comments
 (0)