Package: sarp.snowprofile 1.3.2

sarp.snowprofile: Snow Profile Analysis for Snowpack and Avalanche Research

Analysis and plotting tools for snow profile data produced from manual snowpack observations and physical snowpack models. The functions in this package support snowpack and avalanche research by reading various formats of data (including CAAML, SMET, generic csv, and outputs from the snow cover model SNOWPACK), manipulate the data, and produce graphics such as stratigraphy and time series profiles. Package developed by the Simon Fraser University Avalanche Research Program <http://www.avalancheresearch.ca>. Graphics apply visualization concepts from Horton, Nowak, and Haegeli (2020, <doi:10.5194/nhess-20-1557-2020>).

Authors:Pascal Haegeli [aut, cre], Simon Horton [aut], Florian Herla [aut], SFU Avalanche Research Program [fnd]

sarp.snowprofile_1.3.2.tar.gz
sarp.snowprofile_1.3.2.zip(r-4.5)sarp.snowprofile_1.3.2.zip(r-4.4)sarp.snowprofile_1.3.2.zip(r-4.3)
sarp.snowprofile_1.3.2.tgz(r-4.4-any)sarp.snowprofile_1.3.2.tgz(r-4.3-any)
sarp.snowprofile_1.3.2.tar.gz(r-4.5-noble)sarp.snowprofile_1.3.2.tar.gz(r-4.4-noble)
sarp.snowprofile_1.3.2.tgz(r-4.4-emscripten)sarp.snowprofile_1.3.2.tgz(r-4.3-emscripten)
sarp.snowprofile.pdf |sarp.snowprofile.html
sarp.snowprofile/json (API)
NEWS

# Install 'sarp.snowprofile' in R:
install.packages('sarp.snowprofile', repos = c('https://phaegeli.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Datasets:
  • SPgroup - Example group of snowprofiles from a mountain drainage
  • SPmalformatted - Malformatted example profiles
  • SPpairs - Pairs of example snowprofiles
  • SPtimeline - Timeseries of snowprofiles #'
  • grainDict - A data.frame storing the grain type colours
  • swisscode - Numerical, Swiss Grain Type Code

On CRAN:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

3.48 score 2 packages 4 scripts 269 downloads 46 exports 4 dependencies

Last updated 2 years agofrom:3769b64ca5. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 06 2024
R-4.5-winOKNov 06 2024
R-4.5-linuxOKNov 06 2024
R-4.4-winOKNov 06 2024
R-4.4-macOKNov 06 2024
R-4.3-winOKNov 06 2024
R-4.3-macOKNov 06 2024

Exports:char2numAspectchar2numHHIcomputeRTAcomputeSLABrhocomputeSLABrhogscomputeTSAderiveDatetagexport.snowprofileCsvfindPWLformat_snowprofileLayersgetColoursDensitygetColoursGrainSizegetColoursGrainTypegetColoursHardnessgetColoursLWCgetColoursPercentagegetColoursSnowTempgetColoursStabilityhasUnobservedBasalLayeris.snowprofileis.snowprofileInstabilitySignsis.snowprofileLayersis.snowprofileSetis.snowprofileTestslabelPWLnumberOfPWLsPerVerticalLevelreadSmetreformat_snowprofilescanProfileDatessd_sample_uncorrectedsetColoursGrainTypesimplifyGtypessnowprofilesnowprofileCaamlsnowprofileCsvsnowprofileCsv_advancedsnowprofileInstabilitySignssnowprofileLayerssnowprofilePrfsnowprofileProsnowprofileSetsnowprofileSnosnowprofileTestsvalidate_snowprofilevalidate_snowprofileLayerswriteSmet

Dependencies:clidata.tablerlangxml2

Introduction to the sarp.snowprofile package

Rendered fromsarp.snowprofile.Rmdusingknitr::rmarkdownon Nov 06 2024.

Last update: 2022-02-09
Started: 2020-07-25

Readme and manuals

Help Manual

Help pageTopics
Extract method[.snowprofileSet
Conversion of character Aspects to numeric Aspectschar2numAspect
Conversion of Hand Hardness Index (HHI)char2numHHI
Compute Relative Threshold Sum approach (RTA)computeRTA computeRTA.snowprofile computeRTA.snowprofileSet
Compute mean density of slabcomputeSLABrho
Compute 'density over grain size' averaged over slabcomputeSLABrhogs
Compute Threshold Sum Approach (TSA, lemons, yellow flags, 'Nieten')computeTSA computeTSA.snowprofile computeTSA.snowprofileSet
Derive datetag from deposition dates in simulated profilesderiveDatetag deriveDatetag.snowprofile deriveDatetag.snowprofileLayers deriveDatetag.snowprofileSet
Export or write a snowprofile object to a CSV tableexport.snowprofileCsv
Find layers of interest (e.g. PWLs) in snowprofile(Layers)findPWL labelPWL
Format snowprofileLayersformat_snowprofileLayers
Gets colours for plotting snow density valuesgetColoursDensity
Gets colours for plotting grain size valuesgetColoursGrainSize
Gets colours for plotting snow grain typesgetColoursGrainType
Gets colours for plotting snow hardness valuesgetColoursHardness
Gets colours for plotting LWC valuesgetColoursLWC
Gets colours for plotting the snow layer property 'percentage'getColoursPercentage
Gets colours for plotting snow temperature valuesgetColoursSnowTemp
Gets colours for plotting snow stability indicesgetColoursStability
A data.frame storing the grain type coloursgrainDict
Check whether a profile is observed down to ground or nothasUnobservedBasalLayer
Import R_DEFAULT_PACKAGESimportRDefaultPackages
Insert a special layer at the bottom to indicate a snow profile that's unobserved from a specific point down to the ground internal function, not exported. used in snowprofileLayersinsertUnobservedBasalLayer
Check class snowprofileis.snowprofile
Check class snowprofileInstabilitySignsis.snowprofileInstabilitySigns
Check class snowprofileLayersis.snowprofileLayers
Check class snowprofileSetis.snowprofileSet
Check class snowprofileTestsis.snowprofileTests
Low-level constructor function for a snowprofile objectnew_snowprofile
Count number of PWLs per vertical levelnumberOfPWLsPerVerticalLevel
Plot hardness profileplot.snowprofile
Plot a single layer property in multiple profiles side-by-sideplot.snowprofileSet
Print snowprofile objectprint.snowprofile
Convert snowprofile into data.frame with columns for metadatarbind.snowprofile
Concatenate snowprofileSet into a large data.frame with a row for each layerrbind.snowprofileSet
Parse a SMET filereadSmet
Reformat a malformatted snowprofile objectreformat_snowprofile
Read profile dates from prf/pro filescanProfileDates
fast uncorrected sample standard deviation https://en.wikipedia.org/wiki/Standard_deviation#Rapid_calculation_methodssd_sample_uncorrected
Set colour scale for grain typessetColoursGrainType
Simplify detailed grain types to parent classessimplifyGtypes
High-level constructor for a snowprofile objectsnowprofile
Read a Caaml file into a snowprofile objectsnowprofileCaaml
Read csv file into a snowprofile objectsnowprofileCsv
Read routine for advanced csv tables containing various snowprofile informationsnowprofileCsv_advanced
Constructor for a snowprofileInstabilitySigns objectsnowprofileInstabilitySigns
Constructor for a snowprofileLayers objectsnowprofileLayers
Construct snowprofile object from PRF filesnowprofilePrf
Construct snowprofile object from PRO filesnowprofilePro
Constructor for class snowprofileSetsnowprofileSet
Construct snowprofile object from SNO filesnowprofileSno
Constructor for a snowprofileTests objectsnowprofileTests
Example group of snowprofiles from a mountain drainageSPgroup
Malformatted example profilesSPmalformatted
Pairs of example snowprofilesSPpairs
Timeseries of snowprofiles #'SPtimeline
Summary of a single snowprofilesummary.snowprofile
Summarize multiple snowprofilessummary.snowprofileSet
Numerical, Swiss Grain Type Codeswisscode
Validate correctness of snowprofile objectvalidate_snowprofile
Validate correctness of snowprofileLayers objectvalidate_snowprofileLayers
Write a SMET filewriteSmet