Project

General

Profile

« Previous | Next » 

Revision 4879

inputs/TEAM/VL, VT: Split concatenated flat files apart into separate parts each time a header is duplicated, so that the header would be autoremoved by cat_csv. Changed modified BIEN2 flat file headers back to original headers (the duplicated headers) so the headers of all part files would match up. (This is required for cat_csv header autoremoval to work properly.) This results in changes to the input column names in */map.csv.

View differences:

test.xml.ref
4 4
        <next>parent_id</next>
5 5
        <path>
6 6
            <location>
7
                <parent_id><location><authorlocationcode>$1haPlotCode</authorlocationcode></location></parent_id>
8
                <authorlocationcode>$Subplot</authorlocationcode>
7
                <parent_id><location><authorlocationcode>$1ha Plot Number</authorlocationcode></location></parent_id>
8
                <authorlocationcode>$Subplot Number</authorlocationcode>
9 9
                <locationcoords>
10 10
                    <latitude_deg>
11 11
                        <_nullIf>
......
24 24
                </locationcoords>
25 25
                <locationevent>
26 26
                    <method_id><method><name>$Method</name></method></method_id>
27
                    <project_id><project><projectname>$SiteName</projectname></project></project_id>
28
                    <obsenddate><_date><date><_dateRangeEnd><value>$ObservationDate</value></_dateRangeEnd></date></_date></obsenddate>
29
                    <obsstartdate><_date><date><_dateRangeStart><value>$ObservationDate</value></_dateRangeStart></date></_date></obsstartdate>
27
                    <project_id><project><projectname>$Site Name</projectname></project></project_id>
28
                    <obsenddate><_date><date><_dateRangeEnd><value>$Observation Date</value></_dateRangeEnd></date></_date></obsenddate>
29
                    <obsstartdate><_date><date><_dateRangeStart><value>$Observation Date</value></_dateRangeStart></date></_date></obsstartdate>
30 30
                    <taxonoccurrence>
31 31
                        <aggregateoccurrence>
32 32
                            <plantobservation>
33
                                <specimenreplicate><sourceaccessioncode>$ID</sourceaccessioncode></specimenreplicate>
33
                                <specimenreplicate><sourceaccessioncode>$Id</sourceaccessioncode></specimenreplicate>
34 34
                                <stemobservation>
35
                                    <diameterbreastheight_m><_cm_to_m><value>$dbh</value></_cm_to_m></diameterbreastheight_m>
36
                                    <tag>$TreeNumber</tag>
37
                                    <xposition_m>$X_1haPlot</xposition_m>
38
                                    <yposition_m>$Y_1haPlot</yposition_m>
35
                                    <diameterbreastheight_m><_cm_to_m><value>$Diameter</value></_cm_to_m></diameterbreastheight_m>
36
                                    <tag>$Tree Number</tag>
37
                                    <xposition_m>$1ha Plot X Coordinate</xposition_m>
38
                                    <yposition_m>$1ha Plot Y Coordinate</yposition_m>
39 39
                                </stemobservation>
40 40
                            </plantobservation>
41 41
                        </aggregateoccurrence>
42
                        <authortaxoncode>$TreeNumber</authortaxoncode>
43
                        <sourceaccessioncode>$ID</sourceaccessioncode>
42
                        <authortaxoncode>$Tree Number</authortaxoncode>
43
                        <sourceaccessioncode>$Id</sourceaccessioncode>
44 44
                        <taxondetermination>
45 45
                            <taxonpath_id>
46 46
                                <taxonpath>
47 47
                                    <family>$Family</family>
48 48
                                    <genus>$Genus</genus>
49
                                    <species>$SpecificEpithet</species>
49
                                    <species>$Species</species>
50 50
                                </taxonpath>
51 51
                            </taxonpath_id>
52 52
                        </taxondetermination>
53
                        <verbatimcollectorname>$Collectors</verbatimcollectorname>
53
                        <verbatimcollectorname>$Names of Collectors</verbatimcollectorname>
54 54
                    </taxonoccurrence>
55 55
                </locationevent>
56 56
            </location>

Also available in: Unified diff