-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Taxonomic class names in fetchOSD result #256
Comments
Related PR for Related issue in SoilTaxonomy: |
Thanks. Parity with NASIS and other functions is a good idea, but changes to |
Have those columns always existed by those names in fetchOSD? I was a bit surprised to seem them in there |
Yes, they are inherited from the SoilWeb API that returns most of the data. I can't remember, but suspect that those names date back to before |
Yeah, I dug back and you are right, and they were the original names used in SoilTaxonomy. I mis-remembered what had been changed there. EDIT: some functions like isValidST used names like 'tax_order', 'tax_suborder', 'tax_greatgroup', 'tax_subgroup But anyway... names should be standardized in long run. Not a big deal or an immediate issue, I just was thinking that most of the standardization items have focused on NASIS data access functions so far. Would probably be good to get SoilWeb on board across the board where possible, and a specific issue to implement it. |
And changing all that stuff to properly resolve #242 is probably a milestone for soilDB 3.0 -- as changing column names that are frequently used will wreak all sorts of havoc even if we test. |
I think the SoilTaxonomy v0.2.4 library(soilDB)
library(SoilTaxonomy)
o <- fetchOSD("alberti")
x <- parse_family(o$family)
x
#> family
#> 1 clayey, smectitic, thermic, shallow vertic rhodoxeralfs
#> taxclname taxonname
#> 1 clayey, smectitic, thermic, shallow vertic rhodoxeralfs vertic rhodoxeralfs
#> subgroup_code code class_string classes_split
#> 1 JDEB JDEB clayey, smectitic, thermic, shallow clayey, ....
#> taxpartsize taxpartsizemod taxminalogy taxceactcl taxreaction taxtempcl
#> 1 clayey NA smectitic NA NA thermic
#> taxfamhahatmatcl taxfamother taxsubgrp taxgrtgroup taxsuborder
#> 1 NA shallow Vertic Rhodoxeralfs Rhodoxeralfs Xeralfs
#> taxorder
#> 1 Alfisols |
I didn't realize or had forgotten that
soilDB::fetchOSD()
returnsfamily
subgroup
greatgroup
suborder
andsoilorder
rather thantaxclname
taxsubgrp
taxgrtgroup
taxsuborder
taxorder
. I think where possible we should standardize on the NASIS physical column names for soilDB results, which would mean also possibly changing those with underscore separating "tax" and the rest of the column name e.g. tax_partsizeRelated #242
The text was updated successfully, but these errors were encountered: