Skip to content

Commit b3047a0

Browse files
committed
Last commit for patch 0.8.1
1 parent c714b34 commit b3047a0

20 files changed

Lines changed: 29 additions & 29 deletions

NEWS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# ncdfCF (development version)
22

3+
Patch release with bug fixes and some new functionality.
4+
35
#### API
4-
- New `geom_ncdf()` function to create a `geom` for use in map composition using package `ggplot2`.
6+
- New `geom_ncdf()` function to create a `geom` for use in map composition using package `ggplot2`. Functionality is currently limited and only basically tested.
57
- In `CFVariable$subset()` subsetting a "time" axis can now use abbreviated specification such as `time = "2025-12"` to select all data for December 2025, or `time = c("2020-S1", "2025-S4")` for all meteorological season data from 2019-12-01 to 2025-11-30 (inclusive). Abbreviation can be by year, month, meteorological season (S1 to S4), quarter (Q1 to Q4) or dekad (D01 to D36).
68

79
#### Code

R/plot.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ geom_ncdf <- function(mapping = NULL, data, ...) {
3434
stop("Not enough data to plot.", call. = FALSE)
3535

3636
ax_names <- names(data$axes)
37-
ax_orient <- sapply(data$axes, function(ax) ax$orientation)
37+
ax_orient <- sapply(data$axes, function(ax) if (ax$length > 1L) ax$orientation else "")
3838
ax_order <- match(c("X", "Y", "Z", "T"), ax_orient, nomatch = 0L)
3939
XY <- ax_order[1L] > 0L && ax_order[2L] > 0L
4040

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ obj$axes[["lat"]]
5555
obj$axes[["time"]]
5656
```
5757

58-
You can further modify the resulting `CFVariable` by setting other properties, such as attributes or a coordinate reference system. Once the object is complete, you can export or save it.
58+
You can further modify the resulting `CFVariable` by setting other properties, such as attributes or a coordinate reference system. Once the object is complete, you can export or save it.
5959

6060
More detailed operations and options are given on the [package web site](https://r-cf.github.io/ncdfCF/).
6161

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ dimnames(arr) <- list(lat = c(45, 44, 43, 42, 41, 40), lon = c(0, 1, 2, 3, 4),
8080
(obj <- as_CF("a_new_CF_object", arr))
8181
#> <Variable> a_new_CF_object
8282
#>
83-
#> Values: [-2.686543 ... 2.342778]
83+
#> Values: [-2.59647 ... 2.487776]
8484
#> NA: 0 (0.0%)
8585
#>
8686
#> Axes:
@@ -90,8 +90,8 @@ dimnames(arr) <- list(lat = c(45, 44, 43, 42, 41, 40), lon = c(0, 1, 2, 3, 4),
9090
#> T time 4 [2025-07-01 ... 2025-07-04] days since 1970-01-01T00:00:00
9191
#>
9292
#> Attributes:
93-
#> name type length value
94-
#> actual_range NC_DOUBLE 2 -2.686543, 2.342778
93+
#> name type length value
94+
#> actual_range NC_DOUBLE 2 -2.59647, 2.487776
9595

9696
# Axes are of a specific type and have basic attributes set
9797
obj$axes[["lat"]]

cran-comments.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
This is a minor release with significant code enhancements and stability improvements.
1+
This is a patch release to fix two annoying bugs. Minor new functionality.
22

33
## R CMD check results
44

55
0 errors | 0 warnings | 0 notes
66

7-
* This minor release has significant enhancements in code efficiency and logic and adds new features.
8-
97
## revdepcheck results
108

119
We checked 1 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.

docs/articles/ncdfCF.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/ncdfCF.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ fn <- system.file("extdata", "ERA5land_Rwanda_20160101.nc", package = "ncdfCF")
143143
# Open the file, all metadata is read
144144
(ds <- open_ncdf(fn))
145145
#> <Dataset> ERA5land_Rwanda_20160101
146-
#> Resource : /private/var/folders/gs/s0mmlczn4l7bjbmwfrrhjlt80000gn/T/RtmpBxdt42/temp_libpath12e464e36401/ncdfCF/extdata/ERA5land_Rwanda_20160101.nc
146+
#> Resource : /private/var/folders/gs/s0mmlczn4l7bjbmwfrrhjlt80000gn/T/RtmpBxdt42/temp_libpath12e4419edf29/ncdfCF/extdata/ERA5land_Rwanda_20160101.nc
147147
#> Format : offset64
148148
#> Collection : Generic netCDF data
149149
#> Conventions: CF-1.6

docs/index.html

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

docs/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ dimnames(arr) <- list(lat = c(45, 44, 43, 42, 41, 40), lon = c(0, 1, 2, 3, 4),
6262
(obj <- as_CF("a_new_CF_object", arr))
6363
#> <Variable> a_new_CF_object
6464
#>
65-
#> Values: [-1.716299 ... 1.90904]
65+
#> Values: [-2.686543 ... 2.342778]
6666
#> NA: 0 (0.0%)
6767
#>
6868
#> Axes:
@@ -72,8 +72,8 @@ dimnames(arr) <- list(lat = c(45, 44, 43, 42, 41, 40), lon = c(0, 1, 2, 3, 4),
7272
#> T time 4 [2025-07-01 ... 2025-07-04] days since 1970-01-01T00:00:00
7373
#>
7474
#> Attributes:
75-
#> name type length value
76-
#> actual_range NC_DOUBLE 2 -1.716299, 1.90904
75+
#> name type length value
76+
#> actual_range NC_DOUBLE 2 -2.686543, 2.342778
7777

7878
# Axes are of a specific type and have basic attributes set
7979
obj$axes[["lat"]]

docs/llms.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ dimnames(arr) <- list(lat = c(45, 44, 43, 42, 41, 40), lon = c(0, 1, 2, 3, 4),
6262
(obj <- as_CF("a_new_CF_object", arr))
6363
#> <Variable> a_new_CF_object
6464
#>
65-
#> Values: [-1.716299 ... 1.90904]
65+
#> Values: [-2.686543 ... 2.342778]
6666
#> NA: 0 (0.0%)
6767
#>
6868
#> Axes:
@@ -72,8 +72,8 @@ dimnames(arr) <- list(lat = c(45, 44, 43, 42, 41, 40), lon = c(0, 1, 2, 3, 4),
7272
#> T time 4 [2025-07-01 ... 2025-07-04] days since 1970-01-01T00:00:00
7373
#>
7474
#> Attributes:
75-
#> name type length value
76-
#> actual_range NC_DOUBLE 2 -1.716299, 1.90904
75+
#> name type length value
76+
#> actual_range NC_DOUBLE 2 -2.686543, 2.342778
7777

7878
# Axes are of a specific type and have basic attributes set
7979
obj$axes[["lat"]]

0 commit comments

Comments
 (0)