grec

Classification of spatial patterns from environmental data through GRadient RECognition

https://github.com/luislaum/grec

Science Score: 26.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
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.7%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

Classification of spatial patterns from environmental data through GRadient RECognition

Basic Info
  • Host: GitHub
  • Owner: LuisLauM
  • Language: R
  • Default Branch: master
  • Size: 8.13 MB
Statistics
  • Stars: 7
  • Watchers: 1
  • Forks: 0
  • Open Issues: 1
  • Releases: 0
Created about 9 years ago · Last pushed 11 months ago
Metadata Files
Readme Changelog

README.md

grec

CRAN_Status_Badge CRAN_time_from_release metacran downloads minimal R version

[G]radient-based [REC]ognition of Spatial Patterns in Environmental Data

Provides algorithms for detection of spatial patterns from oceanographic data using image processing methods based on Gradient Recognition.

Installation

Get the development version from github:

``` r

install.packages("devtools")

devtools::install_github("LuisLauM/grec") ```

Or install the CRAN version

r install.packages("grec")

Examples

Next, we show an example of the use of getGradients function:

``` r require(grec)

data(sst) exampleSSTData <- list(x = sst$longitude, y = sst$latitude, z = sst$sst[,,1])

data(chl) exampleChlData <- list(x = chl$longitude, y = chl$latitude, z = chl$chlorophyll[,,1])

Simple application (over a XYZ list)

outsst <- getGradients(x = exampleSSTData) outchl <- getGradients(x = exampleChlData)

External transformation for chl data

outchl$z <- log10(outchl$z)

par(mfrow = c(2, 2), mar = rep(0, 4), oma = rep(0, 4))

image(exampleSSTData, col = colPalette, axes = FALSE) mtext(text = "Original SST", side = 3, line = -2, adj = 0.99, cex = 1.2)

image(out_sst, col = colPalette, axes = FALSE) mtext(text = "SST gradient", side = 3, line = -2, adj = 0.99, cex = 1.2)

image(exampleChlData, col = colPalette, axes = FALSE) mtext(text = "Original Chlorophyll", side = 3, line = -2, adj = 0.99, cex = 1.2)

image(out_chl, col = colPalette, axes = FALSE) mtext(text = "Chlorophyll gradient\n(log scale)", side = 3, line = -4, adj = 0.99, cex = 1.2) ```

Versions

1.6.0

  • We are changing the name of the detectFronts function to getGradients. However, for backwards compatibility, detectFronts will still be available until v2.0.0.
  • Adding new methods for getGradients: Agenbag-1 and Agenbag-2.
  • Some minor improvements in documentation and code.

1.5.0

  • Compatibility with imagine >= 2.0.0.
  • New method for SpatRast objects (from terra package).
  • Improvements on all methods.
  • ConvolNormalization = FALSE by default now in detectFronts function.

1.3.5

  • Corrections in Belkin and O'Reilly method (GX and GY kernel orientation).
  • Adding methods for SpatRast (from terra package) objects.
  • Support for Raster- objects will be retired since next versions of grec.
  • Improving methods for array objects.
  • ConvolNormalization argument is now set as FALSE by default in detectFronts function.
  • Minor corrections and improvements in efficiency.

1.3.4

  • Improvements on the way to work with matrix, arrays, list and RasterLayer objects.
  • Correcting some bugs regarded with methods.
  • Include ConvolNormalization argument and enable normalization of convolutions as default.
  • Add documentation of methods.

1.2.2

  • Improvements on the way to extract matrix data from RasterLayer object.
  • Correcting a bug when RasterLayer has not in-memory loaded data (e.g. RasterLayer gotten from read a tif file).
  • Add documentation for NWUSASST data.

1.2.1

  • Some corrections in demos.
  • Include a new example data set for SST: NWUSASST
  • Testing normalization inside B&O method.

1.2.0

  • Several changes and improvments on package structure.
  • finalSmooth and control arguments detectFronts were deleted.
  • extraParams function were deleted. Now, available advanced arguments will be showed in help.
  • Help document for detectFronts were updated.
  • Another little corrections and improvements.

1.1.2

  • Now, detectFronts function has the method argument, using by default the Belkin & O'Reilly (2009) algorithm.
  • Some little corrections.

1.1.1

  • Modifications on the title of package.
  • New set of exampling data (grecExData).
  • Changes how the detectFronts algorithm works internally.

1.1.0

  • Change function name: from fromDetection to detectFronts.
  • Change several argument names on detectFronts function.
  • thresholds argument has been replaced by qLimits. Check help of detectFronts function for details.
  • On detectFronts function, the final smooth application is optional now, controling by finalSmooth argument.
  • Now detectFronts is a method for classes: matrix, array and RasterLayer.
  • Bugs and corrections.

1.0.0

  • First Public Release

Owner

  • Name: Wencheng Lau-Medrano
  • Login: LuisLauM
  • Kind: user
  • Company: University of Montpellier

GitHub Events

Total
  • Push event: 3
  • Pull request event: 1
Last Year
  • Push event: 3
  • Pull request event: 1

Committers

Last synced: over 3 years ago

All Time
  • Total Commits: 51
  • Total Committers: 2
  • Avg Commits per committer: 25.5
  • Development Distribution Score (DDS): 0.02
Top Committers
Name Email Commits
Wencheng Lau-Medrano l****m@g****m 50
Wencheng w****g@l****n 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

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

Packages

  • Total packages: 1
  • Total downloads:
    • cran 206 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 12
  • Total maintainers: 1
cran.r-project.org: grec

Gradient-Based Recognition of Spatial Patterns in Environmental Data

  • Versions: 12
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 206 Last month
Rankings
Stargazers count: 21.1%
Forks count: 28.8%
Dependent packages count: 29.8%
Average: 32.3%
Dependent repos count: 35.5%
Downloads: 46.4%
Maintainers (1)
Last synced: 11 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.2.0 depends
  • imagine >= 1.5.2 depends
  • raster * depends
  • utils * imports