From f4e0a0620d8ad2a8bff325808665c2f7c3ea3291 Mon Sep 17 00:00:00 2001 From: roberd10 Date: Tue, 5 Nov 2024 17:39:13 -0500 Subject: [PATCH 1/3] Creating Rmd that creates Rds containing minerals and their features --- StudentData/mineral_classes.Rmd | 42 +++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 StudentData/mineral_classes.Rmd diff --git a/StudentData/mineral_classes.Rmd b/StudentData/mineral_classes.Rmd new file mode 100644 index 0000000..c9d6842 --- /dev/null +++ b/StudentData/mineral_classes.Rmd @@ -0,0 +1,42 @@ + +# Importing data frames +```{r} + +# Mineral names +lithology.df <- readRDS("~/DAR-Mars-F24/StudentData/v1_lithology.Rds") +Mineral <- colnames(lithology.df[,-1]) + +# Aqueous or not +Aqueuous <- c(NA,NA,NA,NA, # "Plagioclase", "Sulfate", "Ca-sulfate", "Hydrated Ca-sulfate" + NA,NA,NA,NA, # "Mg-sulfate", "Hydrated Sulfates", "Hydrated Mg-Fe sulfate", Perchlorates" + NA,NA,NA,NA, # "Na-perchlorate", "Amorphous Silicate", "Phosphate", "Pyroxene" + NA,NA,NA,NA, # "Olivine", "Carbonate", "Fe-Mg carbonate", "Hydrated Carbonates" + NA,NA,NA,NA, # "Disordered Silicates", "Feldspar", "Quartz", "Apatite" + NA,NA,NA,NA, # "FeTi oxides", "Halite", "Iron oxide", "Hydrated Iron oxide" + NA,NA,NA,NA, # "Organic matter", "Sulfate+Organic matclasster", "Other hydrated phases", "Phyllosilicates" + NA,NA,NA,NA, # "Chlorite", "Kaolinite (hydrous Al-clay)", "Chromite", "Ilmenite" + NA,NA,NA) # "Zircon/Baddeleyite", "Fe-Mg-clay minerals", "Spinels" + + +# +Type <- c("NA","Sulfate","Sulfate","Sulfate", + "Sulfate","Sulfate","Sulfate","Perchlorate", + "Perchlorate","Silicate","Phosphate","NA", + "NA","Carbonate","Carbonate","Catbonate", + "Silicate","NA","NA","Apatite", + "Oxide","Halite","Oxide","Oxide", + "NA","Sulfate","NA","Silicate", + "Chlorite", "Kaolinite", "Chromite", "Ilmenite", + "NA","NA","NA") +Type <- as.factor(Type) +``` + +# Creating info data frame +```{r} +minerals.df <- data.frame(Mineral,Type,Aqueuous) +``` + +# Saving new data frames +```{r} +saveRDS(minerals.df, "v1_mineral_classes.Rds") +``` \ No newline at end of file From a833c2d70a7a1234c36e88e7ffa1b15644160081 Mon Sep 17 00:00:00 2001 From: roberd10 Date: Tue, 5 Nov 2024 17:39:59 -0500 Subject: [PATCH 2/3] Creating Rds that contains minerals and their features --- StudentData/v1_mineral_classes.Rds | Bin 0 -> 573 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 StudentData/v1_mineral_classes.Rds diff --git a/StudentData/v1_mineral_classes.Rds b/StudentData/v1_mineral_classes.Rds new file mode 100644 index 0000000000000000000000000000000000000000..99516105de2f602b28faf40f5fbe387e10fc9c10 GIT binary patch literal 573 zcmV-D0>b?tiwFP!000001I<*;Z__Xo_mXsL($T>RyKsrL3kY>wxrR>BCe$^kMMB(6 z;x?9?I5^2zcH$r9U!mBk?R( zUdUX>au&oDAvEu&xDdT*f_(i6Qi4+sxNn3b(Ik(|`LtDU8xuy8#$usTaPP%!I#FL}a*2UPuu%L{e{>ZXk{^Fnih59L^FhME> zQ>D8+jG|<%O_k}&ct1*1@*Oz%G4{Reod_22YRkCS-c2^6Kd;nnV!8|w&VIlDElTwl LL?MH|@&y0@y;>si literal 0 HcmV?d00001 From 801e106f374ecd82c891f4a970bfed1d88b1dd8b Mon Sep 17 00:00:00 2001 From: roberd10 Date: Tue, 5 Nov 2024 17:40:20 -0500 Subject: [PATCH 3/3] Adding description of mineral_classes --- StudentData/README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/StudentData/README.md b/StudentData/README.md index 40ef0d4..628fb2c 100644 --- a/StudentData/README.md +++ b/StudentData/README.md @@ -18,12 +18,14 @@ _You may need to use a more creative path name to read an Rds in the StudentData **pixl_sol_coordinates.Rds** has all of the data in samples_pixl_wide.Rds with the latitude, longitude and sol found from the analysts notebook. Note that the Salette and Bearwallow samples have zeros as their latitude and longitude because the analysts notebook was giving errors for these sites. Following the conventions of this data set, though, most likely Salette has the same coordinates as Coulettes, and Bearwallow has the same coordinates as Hazeltop. -**libs_v1** all the libs data with the columns renamed (meta data capitalized) so that they match with the other datasets and reordered to match with other data sets. +**v1_libs** all the libs data with the columns renamed (meta data capitalized) so that they match with the other datasets and reordered to match with other data sets. -**pixl_v1** all the pixl data with the columns renamed and reordered to match libs. +**v1_pixl** all the pixl data with the columns renamed and reordered to match libs. -**sherloc_v1** all the sherloc data, but after it's been turned into a data frame in the same format as sherloc. +**v1_sherloc** all the sherloc data, but after it's been turned into a data frame in the same format as sherloc. -**lithology_v1** all the lithology data with the columns renamed and reordered to match sherloc. +**v1_lithology** all the lithology data with the columns renamed and reordered to match sherloc. -**sample_meta** all the meta data for the samples. This can be appended to pixl, sherloc, and lithology. +**v1_sample_meta** all the meta data for the samples. This can be appended to pixl, sherloc, and lithology. + +**v1_mineral_classes** data set containing all the minerals along with features of the minerals (Such as: Oxide/Chlorite/Sulfate/etc, and Aqueous/Not-Aqueous).