Skip to content

Commit

Permalink
document more datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
dankelley committed Apr 10, 2016
1 parent e3e9346 commit 8834dc5
Show file tree
Hide file tree
Showing 63 changed files with 213 additions and 134 deletions.
2 changes: 2 additions & 0 deletions R/landsat.R
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ setClass("landsat", contains="satellite")
#'
#' @name landsat
#' @docType data
#'
#' @family datasets provided with \code{oce}
#' @family things related to \code{landsat} data
NULL

Expand Down
2 changes: 2 additions & 0 deletions R/rsk.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ setClass("rsk", contains="oce")
#' plot(rsk)
#' plot(as.ctd(rsk))
#' plot(subset(as.ctd(rsk),pressure<10))
#'
#' @family datasets provided with \code{oce}
#' @family things related to \code{rsk} data
NULL

Expand Down
7 changes: 4 additions & 3 deletions R/sealevel.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ setClass("sealevel", contains="oce")
#' where the csv file was downloaded from [1]. Note the correction of longitude
#' sign, which is required because the data file has no indication that this is
#' the western hemisphere.
#'
#' @family datasets provided with \code{oce}
#' @family classes provided by \code{oce}
#' @family things related to \code{sealevel} data
NULL

#' Sea-level data set acquired in 1975 at Tuktoyaktuk
Expand Down Expand Up @@ -82,10 +83,10 @@ NULL
#' lines(time, detided, col="red")
#' }
#'
#' @family things related to \code{ctd} data
#' @family datasets provided with \code{oce}
#' @family things related to \code{sealevel} data
NULL


setMethod(f="initialize",
signature="sealevel",
definition=function(.Object, elevation, time) {
Expand Down
19 changes: 19 additions & 0 deletions R/windrose.R
Original file line number Diff line number Diff line change
Expand Up @@ -318,3 +318,22 @@ setMethod(f="plot",
})


### wind dataset (does not belong here, really, but I don't want to make another file)

#' Wind dataset
#'
#' Wind data inferred from Figure 5 of Koch et al. (1983), provided to
#' illustrate the \code{\link{interpBarnes}} function.
#'
#' Columns \code{wind$x} and \code{wind$y} are location, while
#' \code{wind$z} is the wind speed, in m/s.
#'
#' @name wind
#' @docType data
#'
#' @references S. E. Koch and M. DesJardins and P. J. Kocin, 1983. ``An
#' interactive Barnes objective map anlaysis scheme for use with satellite and
#' conventional data,'' \emph{J. Climate Appl. Met.}, vol 22, p. 1487-1503.
#'
#' @family datasets provided with \code{oce}
NULL
3 changes: 1 addition & 2 deletions inst/doc/oce.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -517,8 +517,7 @@ stn <- section[["station", 100]]
head(stn[["salinityFlag"]])
```
Note that these data use the WHP scheme, i.e. good data are indicated with 2,
whereas questionable data are indicated with 3. (How these assessments were
made is of a matter for separate discussion.)
whereas questionable data are indicated with 3.

Before discussing how such flags might be handled, it is important to note that
it is often necessary to alter such flags. For example, some datasets will have
Expand Down
2 changes: 1 addition & 1 deletion inst/doc/oce.html
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ <h2><span class="header-section-number">9.2</span> Retrieving and changing flags
stn &lt;-<span class="st"> </span>section[[<span class="st">&quot;station&quot;</span>, <span class="dv">100</span>]]
<span class="kw">head</span>(stn[[<span class="st">&quot;salinityFlag&quot;</span>]])
<span class="co">#&gt; [1] 2 2 2 2 2 3</span></code></pre></div>
<p>Note that these data use the WHP scheme, i.e. good data are indicated with 2, whereas questionable data are indicated with 3. (How these assessments were made is of a matter for separate discussion.)</p>
<p>Note that these data use the WHP scheme, i.e. good data are indicated with 2, whereas questionable data are indicated with 3.</p>
<p>Before discussing how such flags might be handled, it is important to note that it is often necessary to alter such flags. For example, some datasets will have flags set to indicate good data, even though the data are set to -999, which is one of several old-fashioned missing-value codes. The <code>section</code> dataset does not contain any such cases, but the situation may be simulated as follows.</p>
<div class="sourceCode"><pre class="sourceCode r"><code class="sourceCode r"><span class="co"># fake second datum</span>
stn[[<span class="st">&quot;salinity&quot;</span>]][<span class="dv">2</span>] &lt;-<span class="st"> </span>-<span class="dv">999</span></code></pre></div>
Expand Down
4 changes: 2 additions & 2 deletions man/adp-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions man/adp.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/adv-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions man/adv.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/argo-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions man/argo.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/as.ctd.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/as.sealevel.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/bremen-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/cm-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions man/cm.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/coastline-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions man/coastlineWorld.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions man/ctd-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions man/ctd.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/ctdAddColumn.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/ctdDecimate.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/ctdFindProfiles.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions man/ctdRaw.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/ctdTrim.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/ctdUpdateHeader.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/echosounder-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions man/echosounder.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/gps-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion man/handleFlags-ctd-method.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8834dc5

Please sign in to comment.