Skip to content

Commit 1509a23

Browse files
committed
Moving repository over to R-CF
1 parent 281aba6 commit 1509a23

File tree

13 files changed

+16
-55
lines changed

13 files changed

+16
-55
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ Suggests:
2424
ncdfCF,
2525
testthat (>= 3.0.0),
2626
stringr
27-
URL: https://github.com/pvanlaake/CFtime
28-
BugReports: https://github.com/pvanlaake/CFtime/issues
27+
URL: https://github.com/R-CF/CFtime
28+
BugReports: https://github.com/R-CF/CFtime/issues
2929
VignetteBuilder: knitr
3030
Config/testthat/edition: 3
3131
Collate:

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# CFtime (development version)
22

3+
* CFtime is now hosted on Github through the R-CF organization: all things related to the CF Metadata Conventions in R.
4+
35
# CFtime 1.6.2
46

57
* `CFTime$indexOf()` method has new `rightmost.closed` argument with default value `FALSE`. Invalid return values are always `NA`, also for values outside of range. Boundary values are fully considered so when boundary values are not contiguous, results may be `NA` when values of `x` do not fall within the bounds of a coordinate.

R/CFtime.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ CFTime <- R6::R6Class("CFTime",
405405
# This is all rather approximate but should be fine in most cases
406406
# This accommodates middle-of-the-time-period offsets as per the
407407
# CF Metadata Conventions
408-
# Please report problems at https://github.com/pvanlaake/CFtime/issues
408+
# Please report problems at https://github.com/R-CF/CFtime/issues
409409
ddays <- range(doff) * CFt$units$per_day[self$cal$unit]
410410
return((ddays[1] >= 28 && ddays[2] <= 31) || # months
411411
(ddays[1] >= 8 && ddays[2] <= 11) || # dekads

README.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ knitr::opts_chunk$set(
1717

1818
<!-- badges: start -->
1919

20-
[![Lifecycle: Stable](https://img.shields.io/badge/Lifecycle-Stable-green.svg)](https://lifecycle.r-lib.org/articles/stages.html) [![CRAN Status](https://www.r-pkg.org/badges/version/CFtime)](https://cran.r-project.org/package=CFtime) [![CRAN Downloads](https://cranlogs.r-pkg.org/badges/grand-total/CFtime)](https://cran.r-project.org/package=CFtime) [![License: GPL v3](https://img.shields.io/badge/License-MIT-blue.svg)](https://mit-license.org) [![Commits since release](https://img.shields.io/github/commits-since/pvanlaake/CFtime/latest.svg?color=green)](https://GitHub.com/pvanlaake/CFtime/commit/main/) [![Last commit](https://img.shields.io/github/last-commit/pvanlaake/CFtime)](https://github.com/pvanlaake/CFtime/commits/main) [![R-CMD-check](https://github.com/pvanlaake/CFtime/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/pvanlaake/CFtime/actions/workflows/R-CMD-check.yaml) [![codecov](https://codecov.io/gh/pvanlaake/CFtime/branch/main/graph/badge.svg)](https://app.codecov.io/gh/pvanlaake/CFtime)
20+
[![Lifecycle: Stable](https://img.shields.io/badge/Lifecycle-Stable-green.svg)](https://lifecycle.r-lib.org/articles/stages.html) [![CRAN Status](https://www.r-pkg.org/badges/version/CFtime)](https://cran.r-project.org/package=CFtime) [![CRAN Downloads](https://cranlogs.r-pkg.org/badges/grand-total/CFtime)](https://cran.r-project.org/package=CFtime) [![License: GPL v3](https://img.shields.io/badge/License-MIT-blue.svg)](https://mit-license.org) [![Commits since release](https://img.shields.io/github/commits-since/R-CF/CFtime/latest.svg?color=green)](https://GitHub.com/R-CF/CFtime/commit/main/) [![Last commit](https://img.shields.io/github/last-commit/R-CF/CFtime)](https://github.com/R-CF/CFtime/commits/main) [![R-CMD-check](https://github.com/R-CF/CFtime/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/R-CF/CFtime/actions/workflows/R-CMD-check.yaml) [![codecov](https://codecov.io/gh/R-CF/CFtime/branch/main/graph/badge.svg)](https://app.codecov.io/gh/R-CF/CFtime)
2121

2222
<!-- badges: end -->
2323

@@ -69,7 +69,7 @@ You can install the development version of CFtime from [GitHub](https://github.c
6969

7070
``` r
7171
# install.packages("devtools")
72-
devtools::install_github("pvanlaake/CFtime")
72+
devtools::install_github("R-CF/CFtime")
7373
```
7474

7575
## Basic operation

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ Downloads](https://cranlogs.r-pkg.org/badges/grand-total/CFtime)](https://cran.r
1414
[![License: GPL
1515
v3](https://img.shields.io/badge/License-MIT-blue.svg)](https://mit-license.org)
1616
[![Commits since
17-
release](https://img.shields.io/github/commits-since/pvanlaake/CFtime/latest.svg?color=green)](https://GitHub.com/pvanlaake/CFtime/commit/main/)
17+
release](https://img.shields.io/github/commits-since/R-CF/CFtime/latest.svg?color=green)](https://GitHub.com/R-CF/CFtime/commit/main/)
1818
[![Last
19-
commit](https://img.shields.io/github/last-commit/pvanlaake/CFtime)](https://github.com/pvanlaake/CFtime/commits/main)
20-
[![R-CMD-check](https://github.com/pvanlaake/CFtime/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/pvanlaake/CFtime/actions/workflows/R-CMD-check.yaml)
21-
[![codecov](https://codecov.io/gh/pvanlaake/CFtime/branch/main/graph/badge.svg)](https://app.codecov.io/gh/pvanlaake/CFtime)
19+
commit](https://img.shields.io/github/last-commit/R-CF/CFtime)](https://github.com/R-CF/CFtime/commits/main)
20+
[![R-CMD-check](https://github.com/R-CF/CFtime/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/R-CF/CFtime/actions/workflows/R-CMD-check.yaml)
21+
[![codecov](https://codecov.io/gh/R-CF/CFtime/branch/main/graph/badge.svg)](https://app.codecov.io/gh/R-CF/CFtime)
2222

2323
<!-- badges: end -->
2424

@@ -127,7 +127,7 @@ You can install the development version of CFtime from
127127

128128
``` r
129129
# install.packages("devtools")
130-
devtools::install_github("pvanlaake/CFtime")
130+
devtools::install_github("R-CF/CFtime")
131131
```
132132

133133
## Basic operation

man/CFtime-package.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.

revdep/.gitignore

Lines changed: 0 additions & 7 deletions
This file was deleted.

revdep/README.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

revdep/cran.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

revdep/failures.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

revdep/problems.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

vignettes/CFtime.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ One reason to convert the time dimension from different climate projection data
267267

268268
Once data is aggregated from daily or higher-resolution values to a lower temporal resolution - such as a "month" - the different calendars no longer matter (although if you do need to convert averaged data (e.g. average daily precipitation in a month) to absolute data (e.g. precipitation per month) you should use `CFfactor_units()` to make sure that you use the correct scaling factor).
269269

270-
Otherwise, there really shouldn't be any reason to convert the time series in the data files to `Date`s. Climate projection data is virtually never compared on a day-to-day basis between different models and neither does complex date arithmetic make much sense (such as adding intervals) - `CFtime` can support basic arithmetic by manipulation the offsets of the `CFTime` object. The character representations that are produced are perfectly fine to use for `dimnames()` on an array or as `rownames()` in a `data.frame` and these also support basic logical operations such as `"2023-02-30" < "2023-03-01"`. So ask yourself, do you really need `Date`s when working with unprocessed climate projection data? (If so, [open an issue on GitHub](https://github.com/pvanlaake/CFtime/issues)).
270+
Otherwise, there really shouldn't be any reason to convert the time series in the data files to `Date`s. Climate projection data is virtually never compared on a day-to-day basis between different models and neither does complex date arithmetic make much sense (such as adding intervals) - `CFtime` can support basic arithmetic by manipulation the offsets of the `CFTime` object. The character representations that are produced are perfectly fine to use for `dimnames()` on an array or as `rownames()` in a `data.frame` and these also support basic logical operations such as `"2023-02-30" < "2023-03-01"`. So ask yourself, do you really need `Date`s when working with unprocessed climate projection data? (If so, [open an issue on GitHub](https://github.com/R-CF/CFtime/issues)).
271271

272272
A complete example of creating a multi-model ensemble is provided in the vignette ["Processing climate projection data"](Processing.html).
273273

vignettes/Conformance.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ knitr::opts_chunk$set(
2020
2121
This document sets out how the `CFtime` package conforms to the CF Metadata Conventions, by section of the conventions. This information is mostly useful for developers and expert users.
2222

23-
If you have issues reading a netCDF file that is due to conformance of package `CFtime` with the CF Metadata Conventions, please [open an issue on GitHub](https://github.com/pvanlaake/CFtime/issues).
23+
If you have issues reading a netCDF file that is due to conformance of package `CFtime` with the CF Metadata Conventions, please [open an issue on GitHub](https://github.com/R-CF/CFtime/issues).
2424

2525
Please note that there are many netCDF files out there that are not claimingadherence to the CF Metadata Conventions but whose time coordinate can still be successfully handled by `CFtime`: the `netCDF` library itself provides the basic plumbing.
2626

0 commit comments

Comments
 (0)