forked from dankelley/oce
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
try an odf flag-detection scheme BUT
I think the IML and BIO schemes might differ. I commented-out my attempt because it broke the ODF file I use in tests ... but that file lacks the QQQQ info. In fact, *all* the files I have lack QQQQ info. dankelley#1808
- Loading branch information
Showing
3 changed files
with
30 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
library(oce) | ||
source("R/oce.R") | ||
source("R/odf.R") | ||
source("R/ctd.R") | ||
source("R/ctd.odf.R") | ||
file <- "CTD_1994038_147_1_DN.ODF" | ||
if (!file.exists(file)) { | ||
dir <- "https://raw.githubusercontent.com/cioos-siooc/cioos-siooc_data_transform/odf_transform/projects/odf_transform/sample_data/test_files" | ||
download.file(paste0(dir, "/", file), file) | ||
} | ||
d <- read.ctd.odf(file, debug=3) | ||
message("are these ok for flag names? ", paste(names(d@metadata$flags), collapse=",")) | ||
|
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