Skip to content

Commit c64f0ef

Browse files
author
maechler
committed
fix URLs & typos; mention recalibration & planned update
git-svn-id: https://svn.r-project.org/R/trunk@87301 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 0b333e5 commit c64f0ef

File tree

3 files changed

+35
-12
lines changed

3 files changed

+35
-12
lines changed

doc/NEWS.Rd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,9 @@
363363
\item \code{kappa(A, exact=TRUE)} for singular \code{A} returns
364364
\code{Inf} more generally, fixing \PR{18817} reported by
365365
\I{Mikael Jagan}.
366+
367+
\item Fixed URLs of the sun spots (\code{sunspot.month} etc) data
368+
sets and mention future changes due to recalibration.
366369
}
367370
}
368371
}

src/library/datasets/man/sunspot.month.Rd

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
% File src/library/datasets/man/sunspot.month.Rd
22
% Part of the R package, https://www.R-project.org
3-
% Copyright 1995-2014 R Core Team
3+
% Copyright 1995-2024 R Core Team
44
% Distributed under GPL 2 or later
55

66
\name{sunspot.month}
7+
\title{Monthly Sunspot Data, from 1749 to "Present"}
78
\docType{data}
9+
\encoding{UTF-8}
810
\alias{sunspot.month}
9-
\title{Monthly Sunspot Data, from 1749 to "Present"}
1011
\description{
1112
Monthly numbers of sunspots, as from the World Data Center, aka \abbr{SIDC}.
1213
This is the version of the data that will occasionally be updated when
@@ -17,27 +18,45 @@ sunspot.month
1718
}
1819
\format{
1920
The univariate time series \code{sunspot.year} and
20-
\code{sunspot.month} contain 289 and 2988 observations, respectively.
21-
The objects are of class \code{"ts"}.
21+
\code{sunspot.month} contain 289 and
22+
3177
23+
observations, respectively, where the latter will increase over time.
24+
The objects are of class \code{"\link{ts}"}.
2225
}
2326
\seealso{
24-
\code{sunspot.month} is a longer version of \code{\link{sunspots}};
27+
\code{sunspot.month} is a more up-to-date and hence also longer version of
28+
\code{\link{sunspots}};
2529
the latter runs until 1983 and is kept fixed (for reproducibility as example
2630
dataset).
2731
}
2832
\source{
2933
\I{WDC-SILSO}, Solar Influences Data Analysis Center (\abbr{SIDC}),
3034
Royal Observatory of Belgium, Av. Circulaire, 3, B-1180 BRUSSELS
31-
Currently at \url{http://www.sidc.be/silso/datafiles}% was http://sidc.oma.be/sunspot-data/
35+
Currently at \url{https://www.sidc.be/SILSO/datafiles}% was
36+
% http://www.sidc.be/silso/datafiles, and http://sidc.oma.be/sunspot-data/
37+
38+
From around 2015, expert astronomers decided to recalibrate historical sunspot
39+
numbers, see the \sQuote{References}.
40+
This is \emph{not yet} visible in current \code{sunspot.month} but
41+
may well change by the next release of \R.
42+
}
43+
\references{
44+
Clette, \enc{Frédéric}{Frederic} and \enc{Lefèvre}{Lefevre}, Laure (2016)
45+
The New Sunspot Number: Assembling All Corrections.
46+
\emph{Solar Physics} \bold{291}, 2629--2651. \doi{10.1007/s11207-016-1014-y}
47+
48+
Clette, F., \enc{Lefèvre}{Lef`evre}, L., Chatzistergos, T. et al. (2023)
49+
Recalibration of the Sunspot-Number: Status Report.
50+
\emph{Solar Physics} \bold{298}: 44. \doi{10.1007/s11207-023-02136-3}
3251
}
3352
\author{
34-
R
53+
R Core Team.
3554
}
3655
\examples{
3756
require(stats); require(graphics)
3857
## Compare the monthly series
3958
plot (sunspot.month,
40-
main="sunspot.month & sunspots [package'datasets']", col=2)
59+
main="sunspot.month & sunspots [package 'datasets']", col=2)
4160
lines(sunspots) # -> faint differences where they overlap
4261

4362
## Now look at the difference :
@@ -60,5 +79,6 @@ cbind(i = i, time = time(sunspots)[i], sunspots = s1, ss.month = s2,
6079
ssm0 <- sunspot.month[1:2988]
6180
with(as.data.frame(.sunspot.diff), ssm0[i] <<- ssm0[i] - res10/10)
6281
sunspot.month.0 <- ts(ssm0, start = 1749, frequency = 12)
82+
stopifnot(length(sunspot.month.0) == 2988)
6383
}
6484
\keyword{datasets}

src/library/datasets/man/sunspot.year.Rd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
% File src/library/datasets/man/sunspot.year.Rd
22
% Part of the R package, https://www.R-project.org
3-
% Copyright 1995-2007 R Core Team
3+
% Copyright 1995-2024 R Core Team
44
% Distributed under GPL 2 or later
55

66
\name{sunspot.year}
@@ -30,16 +30,16 @@ sunspot.year
3030

3131
Regularly updated yearly sunspot numbers are available from
3232
\I{WDC-SILSO}, Royal Observatory of Belgium, at
33-
\url{http://www.sidc.be/silso/datafiles}
33+
\url{https://www.sidc.be/SILSO/datafiles}% was http://www.sidc.be/silso/datafiles
3434
}
3535
\examples{
3636
utils::str(sm <- sunspots)# the monthly version we keep unchanged
3737
utils::str(sy <- sunspot.year)
3838
## The common time interval
3939
(t1 <- c(max(start(sm), start(sy)), 1)) # Jan 1749
40-
(t2 <- c(min( end(sm)[1],end(sy)[1]), 12)) # Dec 1983
40+
(t2 <- c(min( end(sm)[1],end(sy)[1]), 12)) # Dec 1983 (will not be updated!)
4141
s.m <- window(sm, start=t1, end=t2)
42-
s.y <- window(sy, start=t1, end=t2[1]) # {irrelevant warning}
42+
s.y <- window(sy, start=t1, end=t2[1])
4343
stopifnot(length(s.y) * 12 == length(s.m),
4444
## The yearly series *is* close to the averages of the monthly one:
4545
all.equal(s.y, aggregate(s.m, FUN = mean), tolerance = 0.0020))

0 commit comments

Comments
 (0)