Project

General

Profile

« Previous | Next » 

Revision 4857

input.Makefile: Maps validation: %/new_terms.csv: Include the entire map spreadsheet row, so that each new term is listed together with its mapping. This facilitates adding new mappings to mappings/Veg+-VegCore.csv directly from any new_terms.csv. Note that the use of `sort -u` (in lib/mappings.Makefile) causes multiline comments to be separated, leading to spurious lines for each multiline comment line.

View differences:

new_terms.csv
1
DetType
2
Elev
3
Ind
4
LatDec
5
Line
6
Locality_Description
7
LongDec
8
MajorGeo
9
NoInd
10
OrigFamily
11
OrigGenus
12
OrigSpecies
13
PlotCode
14
PlotMethod
15
PlotObsID
16
PolDiv1
17
Precip
18
SiteCode
19
SourceVoucher
20
Temp
21
auth
22
basal_diam
23
census_date
24
census_no
25
cfaff
26
clay_percent
27
coll_firstname
28
coll_lastname
29
coll_number
30
date_finish
31
date_start
32
elev_max_m
33
elev_min_m
34
gentry_dbh
35
height_m
36
ht_first_branch_m
37
infra_ep_1
38
infra_rank_1
39
life_zone
40
life_zone_code
41
organic_percent
42
pol2
43
sand_percent
44
silt_percent
45
soil_C
46
soil_Ca
47
soil_K
48
soil_Mg
49
soil_N
50
soil_Na
51
soil_P
52
soil_acidity
53
soil_base
54
soil_cation_cap
55
soil_conductivity
56
soil_texture
57
stem_canopy_form
58
stem_canopy_position
59
stem_dbh
60
stem_height_first_branch_m
61
stem_height_m
62
stem_id
63
stem_liana_infestation
64
stem_tag1
65
stem_tag2
66
tag1
67
tag2
68
temp_dbh
69
x_position
70
y_position
1
-----
2
-----"
3
DetType,voucherType,,"Brad: A SALVIAS value referring to the relationship between the voucher specimen and the observation. Affect how the identification of the specimen(latin name) is transferred to the observation. 'direct'=voucher specimen was collected from this same tree; they are one and the same individual. 'indirect'=voucher specimen was collected for a different individual, but the original data provider confirmed that this is the same species. 'default'=basically same as 'indirect'. 'uncollected'=no voucher specimen, data provider  asserted that this was the name but was unable to collect. The main different is that with 'direct', 'indirect', and 'default', the scientific name can be updated automatically based on the name attached to the specimen voucher (assuming you have a link to that data, presumably from a herbarium database. Whereas, if det_type='uncollected', the name can never change because there is no specimen."
4
Elev,elevationInMeters,,Brad: Mean elevation in meters. This is a constrained decimal value; is there no place for this in VegX other than verbatimElevation? Check with Nick.
5
FROM ""SALVIAS"".organisms
6
GROUP BY ""PlotID"", ""Line""
7
HAVING count(DISTINCT census_date) > 1
8
Ind,recordNumber,,"Brad: Code, if any, used by the data provider to indicate an individual tree. Scope is unknown, although typically this value is unique only within plot, or sometimes only within subplot."
9
LatDec,decimalLatitude,,
10
Line,subplot,,
11
Locality_Description,locality,,"Brad: No; this is free text description of locality where plot was situated, same as for DwC. Not a description of vegetation. Most likely='namedPlace.placeDescription' in VB; not sure about VX, again need to ask Nick where locality descriptions live in VX"
12
LongDec,decimalLongitude,,
13
MajorGeo,continent,,
14
NoInd,individualCount,,"Brad: This is a count of number of indiiduals for an *aggregate* observation. For VegBank, I'm not sure. Not exactly the same as stemCount. An individual tree could have 3 stems but would still only count as 1. We need to check with Bob on this."
15
NoInd,stemCount,,
16
OrigFamily,verbatimFamily,,Brad: OMIT
17
OrigGenus,verbatimGenus,,
18
OrigSpecies,verbatimSpecificEpithet,,Brad: OMIT
19
PlotCode,plotName,,
20
PlotMethod,samplingProtocol,,
21
PlotObsID,individualID,,
22
PlotObsID,individualID,,"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."
23
PolDiv1,stateProvince,,Brad: No; pol1=stateProvince
24
Precip,precipitation,,
25
SELECT ""PlotID"", ""Line"", count(DISTINCT census_date) AS census_date_count
26
SiteCode,plotName,,Brad: plotCode is as-assigned by data provider; guranteed to be unique only within dataset (=project)
27
SourceVoucher,catalogNumber,/_alt/2,"Brad: OMIT. This is the verbatim text, which includes both collectors name and collection number. I would use coll_number, below."
28
Temp,temperature,,
29
WHERE ""Line"" IS NOT NULL AND census_date IS NOT NULL
30
auth,scientificNameAuthorship,,Brad: This is the author of the scientificName.
31
basal_diam,basalDiameter,,
32
census_date,eventDate,,"This is for the subplot, not the organism, as all organisms in a subplot have the same value for it. The following query returns no rows:
33
census_no,censusNumber,,"Brad: Assigned by SALVIAS. 1 for first plot, then 2, 3, etc. I can't recall if we even have repeat censuses in SALVIAS. Probably not."
34
cfaff,identificationQualifier,,"Brad: Not sure where this goes. Indicator of identification uncertainty. 'cf.'=similar to the species listed, 'aff.'=related to the species list, but not the same. You'll need to check with Bob and with Nick where these go in VegX and VegBank."
35
clay_percent,clay,"/_units:[default=""%"",to=]/value",
36
coll_firstname,recordedBy.givenName,,Brad: See comment above
37
coll_lastname,recordedBy.surName,,"Brad: This is the collector of a separate specimen which vouchers this tree or species. I worry that vouchers are not properly accommodated in VegX. Again, we need to check with Nick."
38
coll_number,catalogNumber,/_alt/1,Brad: Map instead as for voucher_string
39
date_finish,endDate,,
40
date_start,startDate,,
41
elev_max_m,maximumElevationInMeters,,
42
elev_min_m,minimumElevationInMeters,,
43
gentry_dbh,diameterBreastHeightGentry,,
44
height_m,height,,
45
ht_first_branch_m,heightFirstBranch,,
46
infra_ep_1,infraspecificEpithet,,
47
infra_rank_1,taxonRank,,
48
life_zone,communityName,,
49
life_zone_code,communityID,,
50
organic_percent,organic,"/_units:[default=""%"",to=]/value",
51
pol2,county,,Brad: No pol2=countyParish
52
sand_percent,sand,"/_units:[default=""%"",to=]/value",
53
silt_percent,silt,"/_units:[default=""%"",to=]/value",
54
soil_C,carbon,"/_units:[default=""%"",to=]/value",
55
soil_Ca,calcium,"/_units:[default=""%"",to=]/value",
56
soil_K,potassium,"/_units:[default=""%"",to=]/value",
57
soil_Mg,magnesium,"/_units:[default=""%"",to=]/value",
58
soil_N,nitrogen,"/_units:[default=""%"",to=]/value",
59
soil_Na,sodium,"/_units:[default=""%"",to=]/value",
60
soil_P,phosphorus,"/_units:[default=""%"",to=]/value/_map:[""<1,5""=0,*=*]/value",
61
soil_acidity,acidity,"/_units:[default=""%"",to=]/value/_map:[""<0.05""=0,*=*]/value",
62
soil_base,baseSaturation,"/_units:[default=""%"",to=]/value",
63
soil_cation_cap,cationExchangeCapacity,,
64
soil_conductivity,conductivity,,
65
soil_texture,texture,"/_units:[default=""%"",to=]/value",
66
stem_canopy_form,canopyForm,,
67
stem_canopy_position,canopyPosition,,
68
stem_dbh,diameterBreastHeight_m,,
69
stem_height_first_branch_m,heightFirstBranch,,"Brad: Same as for ht_first_branch_m, but applies to individuals stems, not trees. Rare."
70
stem_height_m,height,,"Brad: Same as for height, but applies to individuals stems, not trees. Rare."
71
stem_id,stemID,,
72
stem_liana_infestation,lianaInfestation,,
73
stem_tag1,tag,/_alt/2,"The second tag supercedes the first. 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."
74
stem_tag2,tag,/_alt/1,"The second tag supercedes the first. Brad: See commend for tag1. Your mapping for tag2 looks correct. Probably both values would go here, only nested, with one superceding the other."
75
tag1,tag,/_alt/2,"The second tag supercedes the first. 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."
76
tag2,tag,/_alt/1,"The second tag supercedes the first. Brad: See commend for tag1. Your mapping for tag2 looks correct. Probably both values would go here, only nested, with one superceding the other."
77
temp_dbh,diameterBreastHeight_m,,
78
x_position,organismX,,"Brad: These are important, fundamental values of many tree plots"
79
y_position,organismY,,Brad: See comment above for x_position

Also available in: Unified diff