photobiologyfilters

R package 'photobiologyFilters' is a collection of spectral transmittance data for more than 300 filters measured in our lab, by collaborators or for which data have been made available by the suppliers for inclussion in this package.

https://github.com/aphalo/photobiologyfilters

Science Score: 39.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 7 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.1%) to scientific vocabulary

Keywords

cran r r-package
Last synced: 10 months ago · JSON representation

Repository

R package 'photobiologyFilters' is a collection of spectral transmittance data for more than 300 filters measured in our lab, by collaborators or for which data have been made available by the suppliers for inclussion in this package.

Basic Info
  • Host: GitHub
  • Owner: aphalo
  • Language: HTML
  • Default Branch: master
  • Homepage:
  • Size: 205 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 1
  • Releases: 0
Topics
cran r r-package
Created over 5 years ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog

README.Rmd

---
output:
  github_document:
    html_preview: true
---

```{r readme-01, echo = FALSE}
knitr::opts_chunk$set(
  fig.asp = 2/3,
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-"
)
```

# photobiologyFilters 

[![CRAN version](https://www.r-pkg.org/badges/version-last-release/photobiologyFilters)](https://cran.r-project.org/package=photobiologyFilters) [![cran checks](https://badges.cranchecks.info/worst/photobiologyFilters.svg)](https://cran.r-project.org/web/checks/check_results_photobiologyFilters.html) 
[![R Universe vwersion](https://aphalo.r-universe.dev/badges/photobiologyFilters)](https://aphalo.r-universe.dev/photobiologyFilters)
[![R build status](https://github.com/aphalo/photobiologyfilters/workflows/R-CMD-check/badge.svg)](https://github.com/aphalo/photobiologyfilters/actions)
[![Documentation](https://img.shields.io/badge/documentation-photobiologyFilters-informational.svg)](https://docs.r4photobiology.info/photobiologyFilters/)
[![doi](https://img.shields.io/badge/doi-10.32614/CRAN.package.photobiologyFilters-blue.svg)](https://doi.org/10.32614/CRAN.package.photobiologyFilters)

Package **photobiologyFilters** is a collection of spectral transmittance data for more than 500 transparent and partially transparent materials measured in our lab, by collaborators and contributors including data have made available by the suppliers for inclusion in this package. The package also contains spectral reflectance data and spectral refraction index data for some materials and spectral reflectance data for some man-made and natural land surfaces.

## Code breaking renaming of data objects

In the update to version 0.5.0 several members of the collection of filter spectra were renamed to ensure consistency and clarity. As of version 0.5.0 all member names start with the name of the manufacturer or supplier. In addition, several of the vectors of names of member spectra were renamed to include the word "filters" to avoid possible name clashes with other packages and also to improve naming consistency. In version 0.5.3 the names of spectra for photography filters were revised again as data for several copies of the same filter types are now included in some cases.

## Examples

```{r example-02, message=FALSE}
library(photobiologyFilters)
```

How many spectra are included in the current version of 'photobiologyFilters'?

More than 300 spectra for optical glass and plastic sheets and films. This collection includes filters used for photography, the whole set of Schott glass filters, most of MIDOPT filters, various types of glass, acrylic, polycarbonate and other panes, and theatrical "gels" and some greenhouse cladding films. Most of these materials do not scatter light and all of them are homogeneous.

```{r example-03}
length(filters.mspct)
```

Nearly 200 spectra for different climate screens used in horticulture and agriculture. All these materials scatter light and have a heterogeneous surface, as they are nets, yarns or composites in which part of the surface has different transmittance than the matrix: either an opaque yarn with holes or a partly clear matrix with embedded opaque or partly opaque elements.

```{r example-03a}
length(screens_nets.mspct)
```

Reflectance spectra for a few metals are included.

```{r example-03aa}
length(metals.mspct)
```

Reflectance spectra for different surfaces, such as bare ground, asphalt and different types of vegetation.

```{r example-03b}
length(materials.mspct)
```

The refractive index can be used to derive other optical properties, such as reflectance at different angles of incidence. For some materials the refractive index varies strongly with wavelength while for other materials varies weakly. This is a small set, serving as example.

```{r example-03c}
length(refractive_index.mspct)
```

What are the names of available spectra? We use `head()` to limit the output.

```{r example-04}
# list names of the first 10 filters
head(names(filters.mspct), 10)
```

To subset based on different criteria we can use predefined character vectors of filter or climate-screen names. For example, vector `polyester` lists the names of the spectra for filters made of polyester (PET).

```{r example-05}
polyester_filters
```

We can use the vector to extract all these spectra as a collection.

```{r example-05a}
filters.mspct[polyester_filters]
```

The package includes two character vectors with the names of the vectors of names that are available for filters and screens.

```{r example-05b}
all_filter_selectors
```

```{r example-05c}
all_screen_net_selectors
```

Please, see the *User Guide* or help pages for the names of other vectors of names for materials, suppliers, and regions of the spectrum.

Summary calculations can be easily done with methods from package 'photobiology'. Here we calculate mean transmittance for two regions of the spectrum given by wavelengths in nanometres.

```{r example-06}
transmittance(filters.mspct[["Foiltek_Clear_PET_G"]], 
              list(waveband(c(250, 315)), waveband(c(500,600))))
```

The `autoplot()` methods from package 'ggspectra' can be used for plotting one or more spectra at a time. The classes of the objects used to store the spectral data are derived from `"data.frame"` making direct use of the data easy with functions and methods from base R and various packages.

## Installation

Installation of the most recent stable version from CRAN:

```{r, eval=FALSE}
install.packages("photobiologyFilters")
```

Installation of the current unstable version from R-Universe CRAN-like repository:

```{r, eval=FALSE}
install.packages('photobiologyFilters', 
                 repos = c('https://aphalo.r-universe.dev', 'https://cloud.r-project.org'))
```

Installation of the current unstable version from GitHub (no binaries available):

```{r, eval=FALSE}
# install.packages("remotes")
remotes::install_github("aphalo/photobiologyfilters")
```

## Documentation

HTML documentation is available at (), including a *User Guide*.

News on updates to the different packages of the 'r4photobiology' suite are regularly posted at ().

Two articles introduce the basic ideas behind the design of the suite and its use: Aphalo P. J. (2015) () and Aphalo P. J. (2016) ().

A book is under preparation, and the draft is currently available at ().

A handbook written before the suite was developed contains useful information on the quantification and manipulation of ultraviolet and visible radiation: Aphalo, P. J., Albert, A., Bjrn, L. O., McLeod, A. R., Robson, T. M., & Rosenqvist, E. (Eds.) (2012) Beyond the Visible: A handbook of best practice in plant UV photobiology (1st ed., p. xxx + 174). Helsinki: University of Helsinki, Department of Biosciences, Division of Plant Biology. ISBN 978-952-10-8363-1 (PDF), 978-952-10-8362-4 (paperback). PDF file available from ().

## Contributing

Pull requests, bug reports, and feature requests are welcome at ().

## Citation

If you use this package to produce scientific or commercial publications, please cite it according to the recommended citation below. For individual spectra please read the corresponding help page and if available, also cite the original source of the data. Be aware that most data have been re-processed before inclussion in the package.

```{r}
citation("photobiologyFilters")
```

## License

 2012-2025 Pedro J. Aphalo ([pedro.aphalo\@helsinki.fi](mailto:pedro.aphalo@helsinki.fi)). Released under the GPL, version 2 or greater. This software carries no warranty of any kind.

Owner

  • Name: Pedro Aphalo
  • Login: aphalo
  • Kind: user
  • Location: Helsinki, Finland
  • Company: University of Helsinki, Organismal and Evolutionary Biology (OEB)

Senior University Lecturer, Principal Investigator (Sensory Ecology of Plants, Photobiology, Crops, Forest trees, Data Analysis, Data Visualization)

GitHub Events

Total
  • Push event: 9
Last Year
  • Push event: 9

Committers

Last synced: 12 months ago

All Time
  • Total Commits: 144
  • Total Committers: 1
  • Avg Commits per committer: 144.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 6
  • Committers: 1
  • Avg Commits per committer: 6.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Pedro J. Aphalo p****o@h****i 144
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 1
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 1
  • Total pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • aphalo (1)
Pull Request Authors
Top Labels
Issue Labels
enhancement (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 214 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 2
  • Total versions: 5
  • Total maintainers: 1
cran.r-project.org: photobiologyFilters

Spectral Transmittance and Spectral Reflectance Data

  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 2
  • Downloads: 214 Last month
Rankings
Dependent repos count: 19.3%
Dependent packages count: 28.8%
Average: 36.4%
Downloads: 61.1%
Maintainers (1)
Last synced: 11 months ago

Dependencies

.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION cran
  • R >= 4.0.0 depends
  • photobiology >= 0.10.16 depends
  • ggplot2 >= 3.4.0 suggests
  • ggspectra >= 0.3.11 suggests
  • knitr >= 1.30 suggests
  • photobiologyWavebands >= 0.4.4 suggests
  • rmarkdown >= 2.3 suggests