Project

General

Profile

« Previous | Next » 

Revision 1209

VegBIEN: stemobservation: Renamed diameter to diameterbreastheight to be more accurate

View differences:

inputs/SALVIAS/test/VegBIEN.stems.xml.ref
7 7
                <stemcount>1</stemcount>
8 8
            </plantobservation>
9 9
        </plantobservation_id>
10
        <diameter>6.59</diameter>
10
        <diameterbreastheight>6.59</diameterbreastheight>
11 11
    </stemobservation>
12 12
    <stemobservation id="1">
13 13
        <plantobservation_id>
......
16 16
                <stemcount>0</stemcount>
17 17
            </plantobservation>
18 18
        </plantobservation_id>
19
        <diameter>3.09</diameter>
19
        <diameterbreastheight>3.09</diameterbreastheight>
20 20
    </stemobservation>
21 21
</VegBIEN>
inputs/SALVIAS/maps/VegBIEN.stems.csv
8 8
stem_canopy_position,"/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=stemCanopyPosition]]:[@fkey=tableRecord_ID]/definedvalue",
9 9
stem_height_first_branch_m,"/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=stemHeightFirstBranchM]]:[@fkey=tableRecord_ID]/definedvalue",
10 10
stem_liana_infestation,"/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=stemLianaInfestation]]:[@fkey=tableRecord_ID]/definedvalue",
11
stem_dbh,/diameter,
11
stem_dbh,/diameterbreastheight,
12 12
stem_height_m,/height,
13 13
stem_tag1,"/stemtag:[""""/iscurrent/_alt/2=true](/tag)",Quotes sort it before tag2
14 14
stem_tag2,"/stemtag:[../stemtag[iscurrent/_alt/2=true]/iscurrent/_alt/1=false,iscurrent=true](/tag)",
inputs/SALVIAS/maps/VegBIEN.organisms.csv
5 5
height_m,/aggregateoccurrence/*_id/plantobservation/overallheight,Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
6 6
PlotObsID,/aggregateoccurrence/*_id/plantobservation/sourceaccessioncode,"Brad: Neither is correct; this is just an internal ID for table plotObservations. However, it has the important property of uniquely identifying an ""observation"", which is an individual tree, in the case of an individual observation, or a records of a species with an associated count of individuals or measurement of percent cover, in the case of aggregate observations. Not sure where to store this. Main point is that it is not part of the original data, but an auto_increment added later."
7 7
ht_first_branch_m,"/aggregateoccurrence/*_id/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=heightFirstBranchM]]:[@fkey=tableRecord_ID]/definedvalue",Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
8
temp_dbh,/aggregateoccurrence/*_id/plantobservation/stemobservation/diameter,
8
temp_dbh,/aggregateoccurrence/*_id/plantobservation/stemobservation/diameterbreastheight,
9 9
tag1,"/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag:[""""/iscurrent/_alt/2=true](/tag)","Brad: Another type of code, typically a number, used by the original data provider to indicate an individual tree. These are numbers on physical tags attached to the tree. Tag2 Is the same thing, only used if the first tag was lost. Obviously not a good system as it's possible a tree tag could be lost and changed more than once.; Quotes sort it before tag2"
10 10
tag2,"/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag:[../stemtag[iscurrent/_alt/2=true]/iscurrent/_alt/1=false,iscurrent=true](/tag)","Brad: See commend for tag1. Your mapping for tag2 looks correct. Probably both values would go here, only nested, with one superceding the other."
11 11
x_position,/aggregateoccurrence/*_id/plantobservation/stemobservation/xposition,"Brad: Correct for VegBank. I'm not so sure for VegX. Let's ask Nick about this. These are important, fundamental values of many tree plots, and should be accommodated within VegX."
inputs/SALVIAS-CSV/test/VegBIEN.organisms.xml.ref
20 20
                <plantobservation>
21 21
                    <sourceaccessioncode>607771</sourceaccessioncode>
22 22
                    <stemobservation>
23
                        <diameter>662</diameter>
23
                        <diameterbreastheight>662</diameterbreastheight>
24 24
                        <stemtag>
25 25
                            <tag>7</tag>
26 26
                            <iscurrent>false</iscurrent>
......
164 164
                <plantobservation>
165 165
                    <sourceaccessioncode>607722</sourceaccessioncode>
166 166
                    <stemobservation>
167
                        <diameter>215</diameter>
167
                        <diameterbreastheight>215</diameterbreastheight>
168 168
                        <stemtag>
169 169
                            <tag>84</tag>
170 170
                            <iscurrent>false</iscurrent>
inputs/SALVIAS-CSV/maps/VegBIEN.organisms.csv
12 12
ht_first_branch_m,"/aggregateoccurrence/*_id/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=heightFirstBranchM]]:[@fkey=tableRecord_ID]/definedvalue",Brad: Incorrect for VegBank. This is a measurement applied to a single tree. Check with Bob
13 13
stem_height_first_branch_m,"/aggregateoccurrence/*_id/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=heightFirstBranchM]]:[@fkey=tableRecord_ID]/definedvalue","Brad: Should also be userDefined for VegBank. Same as for ht_first_branch_m, but applies to individuals stems, not trees. Rare."
14 14
stem_liana_infestation,"/aggregateoccurrence/*_id/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=lianaInfestation]]:[@fkey=tableRecord_ID]/definedvalue",Brad: Should also be userDefined for VegBank. 
15
stem_dbh,/aggregateoccurrence/*_id/plantobservation/stemobservation/diameter,
15
stem_dbh,/aggregateoccurrence/*_id/plantobservation/stemobservation/diameterbreastheight,
16 16
stem_tag1,"/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag:[""""/iscurrent/_alt/2=true](/tag)","Brad: Same as tag1 & tag2, but applied to individual stems. I'm still not clear how to distinguish between methods which tag only individuals trees, and those which tag individual stems.; Quotes sort it before tag2"
17 17
stem_tag2,"/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag:[""""/iscurrent/_alt/2=true](/tag)",Brad: see above; Quotes sort it before tag2
18 18
tag1,"/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag:[""""/iscurrent/_alt/2=true](/tag)","Brad: Another type of code, typically a number, used by the original data provider to indicate an individual tree. These are numbers on physical tags attached to the tree. Tag2 Is the same thing, only used if the first tag was lost. Obviously not a good system as it's possible a tree tag could be lost and changed more than once.; Quotes sort it before tag2"
schemas/vegbien.my.sql
2055 2055
    yposition double precision,
2056 2056
    health text,
2057 2057
    emb_stemobservation int(11),
2058
    diameter double precision,
2058
    diameterbreastheight double precision,
2059 2059
    height double precision,
2060 2060
    heightaccuracy double precision,
2061 2061
    age double precision,
schemas/vegbien.sql
2407 2407
    yposition double precision,
2408 2408
    health text,
2409 2409
    emb_stemobservation integer,
2410
    diameter double precision,
2410
    diameterbreastheight double precision,
2411 2411
    height double precision,
2412 2412
    heightaccuracy double precision,
2413 2413
    age double precision,
mappings/VegX-VegBIEN.organisms.csv
66 66
->/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/simpleUserdefined[name=stemCanopyPosition]/value,"/aggregateoccurrence/*_id/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=stemCanopyPosition]]:[@fkey=tableRecord_ID]/definedvalue",
67 67
->/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/simpleUserdefined[name=stemHeightFirstBranchM]/value,"/aggregateoccurrence/*_id/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=stemHeightFirstBranchM]]:[@fkey=tableRecord_ID]/definedvalue",
68 68
->/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/simpleUserdefined[name=stemLianaInfestation]/value,"/aggregateoccurrence/*_id/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=stemLianaInfestation]]:[@fkey=tableRecord_ID]/definedvalue",
69
->/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/diameterBaseDistance[baseDistance[!attributeID]/value=1.37]/diameter,/aggregateoccurrence/*_id/plantobservation/stemobservation/diameter,
70
/diameterBaseDistance[baseDistance/value=1.37]/diameter,/aggregateoccurrence/*_id/plantobservation/stemobservation/diameter,
69
->/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/diameterBaseDistance[baseDistance[!attributeID]/value=1.37]/diameter,/aggregateoccurrence/*_id/plantobservation/stemobservation/diameterbreastheight,
70
/diameterBaseDistance[baseDistance/value=1.37]/diameter,/aggregateoccurrence/*_id/plantobservation/stemobservation/diameterbreastheight,
71 71
->/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/simpleUserdefined[name=stemHeightM]/value,/aggregateoccurrence/*_id/plantobservation/stemobservation/height,
72 72
->/*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/*ID->/*s/individualOrganism/identificationLabel,"/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag:[""""/iscurrent/_alt/2=true](/tag)",Quotes sort it before tag2
73 73
/*ID->/*s/individualOrganism/identificationLabel,"/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag:[""""/iscurrent/_alt/2=true](/tag)",Quotes sort it before tag2
mappings/for_review/VegX-VegBIEN.organisms.csv
66 66
//*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/simpleUserdefined[name=stemCanopyPosition]/value,"//stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=stemCanopyPosition]]/definedvalue",
67 67
//*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/simpleUserdefined[name=stemHeightFirstBranchM]/value,"//stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=stemHeightFirstBranchM]]/definedvalue",
68 68
//*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/simpleUserdefined[name=stemLianaInfestation]/value,"//stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=stemLianaInfestation]]/definedvalue",
69
//*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/diameterBaseDistance[baseDistance[]/value=1.37]/diameter,//stemobservation/diameter,
70
/diameterBaseDistance[value=1.37]/diameter,//stemobservation/diameter,
69
//*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/diameterBaseDistance[baseDistance[]/value=1.37]/diameter,//stemobservation/diameterbreastheight,
70
/diameterBaseDistance[value=1.37]/diameter,//stemobservation/diameterbreastheight,
71 71
//*s/individualOrganismObservation[relatedItem[relationshipType=stemParent]/relatedItemID]/simpleUserdefined[name=stemHeightM]/value,//stemobservation/height,
72 72
//individualOrganism/identificationLabel,/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag(/tag),Quotes sort it before tag2
73 73
//individualOrganism/identificationLabel,/aggregateoccurrence/*_id/plantobservation/stemobservation/stemtag(/tag),Quotes sort it before tag2
mappings/for_review/VegX-VegBIEN.stems.csv
8 8
/simpleUserdefined[name=stemCanopyPosition]/value,"/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=stemCanopyPosition]]/definedvalue",
9 9
/simpleUserdefined[name=stemHeightFirstBranchM]/value,"/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=stemHeightFirstBranchM]]/definedvalue",
10 10
/simpleUserdefined[name=stemLianaInfestation]/value,"/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=stemLianaInfestation]]/definedvalue",
11
/diameterBaseDistance[baseDistance[]/value=1.37]/diameter,/diameter,
11
/diameterBaseDistance[baseDistance[]/value=1.37]/diameter,/diameterbreastheight,
12 12
/simpleUserdefined[name=stemHeightM]/value,/height,
13 13
//individualOrganism/identificationLabel,/stemtag(/tag),Quotes sort it before tag2
14 14
/simpleUserdefined[name=tag2]/value,"/stemtag:[../stemtag[2=true]/1=false,iscurrent=true](/tag)",
mappings/VegX-VegBIEN.stems.csv
8 8
/simpleUserdefined[name=stemCanopyPosition]/value,"/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=stemCanopyPosition]]:[@fkey=tableRecord_ID]/definedvalue",
9 9
/simpleUserdefined[name=stemHeightFirstBranchM]/value,"/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=stemHeightFirstBranchM]]:[@fkey=tableRecord_ID]/definedvalue",
10 10
/simpleUserdefined[name=stemLianaInfestation]/value,"/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=stemLianaInfestation]]:[@fkey=tableRecord_ID]/definedvalue",
11
/diameterBaseDistance[baseDistance[!attributeID]/value=1.37]/diameter,/diameter,
11
/diameterBaseDistance[baseDistance[!attributeID]/value=1.37]/diameter,/diameterbreastheight,
12 12
/simpleUserdefined[name=stemHeightM]/value,/height,
13 13
/*ID->/*s/individualOrganism/identificationLabel,"/stemtag:[""""/iscurrent/_alt/2=true](/tag)",Quotes sort it before tag2
14 14
/simpleUserdefined[name=tag2]/value,"/stemtag:[../stemtag[iscurrent/_alt/2=true]/iscurrent/_alt/1=false,iscurrent=true](/tag)",

Also available in: Unified diff