-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates to handle new neonUtilities functionality
- Loading branch information
Showing
11 changed files
with
105 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
Package: neonDissGas | ||
Title: Calculates Dissolved CO2, CH4, and N2O Concentrations in Surface Water | ||
Version: 0.0.0.9001 | ||
Authors@R: person("Kaelin", "Cawley", email = "kcawley@battelleecology.org", role = c("aut", "cre")) | ||
Description: Contains functions to format data and calculate dissolved CO2, CH4, and N2O concentrations in surface water from reference air and water equilibrated gas samples. The calculations require the volume of air and water that are equilibrated and the temperature and barometric pressure at the time of equilibration. | ||
Depends: R (>= 3.3.2),neonUtilities | ||
Remotes: NEONScience/NEON-utilities/neonUtilities | ||
License: AGPL-3 + file LICENSE | ||
Encoding: UTF-8 | ||
LazyData: true | ||
RoxygenNote: 6.1.1 | ||
Package: neonDissGas | ||
Title: Calculates Dissolved CO2, CH4, and N2O Concentrations in Surface Water | ||
Version: 0.0.0.9002 | ||
Authors@R: person("Kaelin", "Cawley", email = "kcawley@battelleecology.org", role = c("aut", "cre")) | ||
Description: Contains functions to format data and calculate dissolved CO2, CH4, and N2O concentrations in surface water from reference air and water equilibrated gas samples. The calculations require the volume of air and water that are equilibrated and the temperature and barometric pressure at the time of equilibration. | ||
Depends: R (>= 3.3.2) | ||
Remotes: NEONScience/NEON-utilities/neonUtilities | ||
License: AGPL-3 + file LICENSE | ||
Encoding: UTF-8 | ||
LazyData: true | ||
RoxygenNote: 7.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
sdgData <- neonUtilities::loadByProduct(dpID = "DP1.20097.001", | ||
site = c('COMO','WALK','MART','CARI','KING'), | ||
startdate = "2022-01", | ||
check.size = FALSE) | ||
|
||
externalLabData <- sdgData$sdg_externalLabData | ||
fieldDataProc <- sdgData$sdg_fieldDataProc | ||
fieldSuperParent <- sdgData$sdg_fieldSuperParent | ||
|
||
# #Add in the L0 data | ||
# names(externalLabData) | ||
# | ||
# l0Data <- read.table("C:/Users/kcawley/Documents/forHannah/sdg_externalLabData_in/Dissolved_gases_in_surface_water,_Level_0_sdg_externalLabData_in.txt", | ||
# header = TRUE) | ||
# l0Data$siteID <- substr(l0Data$sampleID,1,4) | ||
# | ||
# sitesForHannah <- c('COMO','WALK','MART','CARI','KING') | ||
# dataForHannah <- l0Data[l0Data$siteID %in% sitesForHannah & l0Data$collectDate >= "2022-01-01",] | ||
# | ||
# names(dataForHannah)[names(dataForHannah) %in% names(externalLabData)] | ||
# names(externalLabData)[!names(externalLabData) %in% names(dataForHannah)] | ||
# | ||
# dataForHannah$namedLocation <- dataForHannah$stationID | ||
# | ||
# externalLabData <- dataForHannah | ||
|
||
sdgFormatted <- neonDissGas::def.format.sdg(externalLabData = externalLabData, | ||
fieldDataProc = fieldDataProc, | ||
fieldSuperParent = fieldSuperParent) | ||
sdgConcentrations <- neonDissGas::def.calc.sdg.conc(inputFile = sdgFormatted) | ||
sdgDataPlusSat <- neonDissGas::def.calc.sdg.sat(inputFile = sdgConcentrations) | ||
|
||
# write.csv(sdgDataPlusSat, | ||
# "C:/Users/kcawley/Documents/forHannah/sdg_externalLabData_in/sdgConcentrationsAndSat.csv", | ||
# row.names = FALSE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters