Project

General

Profile

« Previous | Next » 

Revision 4663

input.Makefile: Maps validation: $(newTerms): Fixed bug where header needed to be removed before running filter_out_ci because filter_out_ci only removes the header if it matches the vocabulary's header. Removing the header afterward can cause the first row to be removed instead if the header was already removed.

View differences:

inputs/ARIZ/Specimen/unmapped_terms.csv
1
dcterms:modified
1 2
BasisOfRecord
2 3
OMIT
3 4
eventTime
inputs/NCU-NCSC/Specimen/new_terms.csv
6 6
Lat (-=S)
7 7
Long (-=W)
8 8
Accuracy
9
FIPS
10 9
Format
11 10
Typology
inputs/input.Makefile
279 279

  
280 280
##### Maps validation
281 281

  
282
# `tail -n +2`: Remove header before running filter_out_ci because filter_out_ci
283
# only removes the header if it matches the vocabulary's header.
282 284
define newTerms
283
$(bin)/filter_out_ci <$< $(1) $(word 2,$+)|$(bin)/cols $(1)$(2)|tail -n +2 >$@
285
tail -n +2 $<|$(bin)/filter_out_ci $(1) $(word 2,$+)|$(bin)/cols $(1)$(2) >$@
284 286
$(bin)/autoremove $@
285 287
endef
286 288

  
inputs/XAL/Specimen/unmapped_terms.csv
1
dcterms:modified
1 2
BasisOfRecord
2 3
TypeStatus
3 4
day
inputs/TEAM/VL/new_terms.csv
2 2
1haPlotCode
3 3
ObservationDate
4 4
Collectors
5
max_diam
6 5
Method
7 6
X_1haPlot
8 7
Y_1haPlot
inputs/TEAM/VL/unmapped_terms.csv
1
max_diam
1 2
max_diam_pom
2 3
ConditionCodes
3 4
LocationCodes
inputs/TEAM/VT/new_terms.csv
1 1
ObservationDate
2 2
Collectors
3
dbh_pom
4 3
Method
5 4
X_1haPlot
6 5
Y_1haPlot
inputs/TEAM/VT/unmapped_terms.csv
1
dbh_pom
1 2
dbh_new
2 3
dbh_new_pom
3 4
ConditionCodes
inputs/NY/Specimen/new_terms.csv
1
key
2 1
PlantFungusDescription
3 2
Substrate
4 3
Vegetation
inputs/NY/Specimen/unmapped_terms.csv
1
key
1 2
dcterms:modified
2 3
BasisOfRecord
3 4
TypeStatus
inputs/Madidi/Organism/new_terms.csv
1 1
Expedition
2 2
Inventory name
3
Number of inventory (general)
4 3
Inventory code
5 4
Tag number
6 5
Tree number
inputs/Madidi/Organism/unmapped_terms.csv
1
Number of inventory (general)
1 2
Number of inventory (expedition)
2 3
"Type Inventory (C, PP, TP)"
3 4
Similar specimen
inputs/Madidi/Plot/new_terms.csv
1
Inventory number
2 1
Expedition number
3 2
Expedition name
4 3
Inventory name
inputs/Madidi/Plot/unmapped_terms.csv
1
Inventory number
1 2
Number of inventory (expedition)
2 3
Installed and evaluated by
3 4
Collaborators
inputs/UNCC/Specimen/unmapped_terms.csv
1 1
reproductiveCondition
2 2
reproductiveCondition
3 3
reproductiveCondition
4
reproductiveCondition
4 5
associatedMedia
5 6
filler
inputs/SALVIAS-CSV/Organism/new_terms.csv
3 3
census_no
4 4
census_date
5 5
individual_code
6
ind_id
7 6
tag1
8 7
tag2
9 8
x_position
inputs/SALVIAS-CSV/Organism/unmapped_terms.csv
1
ind_id
1 2
collector_code
2 3
fam_status
3 4
gen_status
inputs/SALVIAS-CSV/Plot/new_terms.csv
29 29
soil_texture
30 30
holdridge_life_zone
31 31
life_zone_code
32
observation_type
33 32
plot_methodology
34 33
plot_area_ha
35 34
date_start
inputs/SALVIAS-CSV/Plot/unmapped_terms.csv
1
observation_type
1 2
recensused
inputs/CVS/Organism/unmapped_terms.csv
1 1
OMIT
2
OMIT
2 3
confidentialityStatus
inputs/REMIB/Specimen/new_terms.csv
1 1
acronym
2 2
accession_number
3 3
long_deg
4
long_min
5 4
lat_deg
6 5
coll_day
7 6
coll_month
inputs/REMIB/Specimen/unmapped_terms.csv
1
long_min
1 2
long_sec
2 3
lat_min
3 4
lat_sec
inputs/CTFS/StemObservation/new_terms.csv
1
FamilyID
2 1
MeasureID
3 2
x
4 3
y
inputs/CTFS/StemObservation/unmapped_terms.csv
1
FamilyID
1 2
GenusID
2 3
SpeciesID
3 4
SubSpeciesID
inputs/CTFS/Subplot/unmapped_terms.csv
1
OMIT
1 2
DimX
2 3
DimY
inputs/CTFS/TaxonOccurrence/unmapped_terms.csv
1
FamilyID
1 2
GenusID
2 3
SpeciesID
3 4
SubSpeciesID
inputs/CTFS/Plot/unmapped_terms.csv
1
CountryID
1 2
ReferenceX
2 3
ReferenceY
3 4
row_num
inputs/FIA/Organism/new_terms.csv
3 3
MeasMon
4 4
MeasDay
5 5
PlotCD
6
HOM
inputs/SALVIAS/plotMetadata/unmapped_terms.csv
1
orig_filename
1 2
AccessCode
2 3
PrimOwnerID
3 4
SiteName
inputs/SALVIAS/stems/new_terms.csv
1
origrecord_id_stems
2 1
PlotObsID
3 2
NoInd
4 3
basal_diam
inputs/SALVIAS/plotObservations/new_terms.csv
2 2
PlotCode
3 3
census_no
4 4
census_date
5
OrigRecordID
6 5
Line
7 6
Ind
8 7
tag1
inputs/U/Specimen/new_terms.csv
1 1
Barcode
2
Prefix
3 2
Number
4 3
Addcoll
5 4
Colldd
inputs/GBIF/Specimen/new_terms.csv
1
0
2 1
LatestDateCollected
3 2
InstitutionCD
4 3
CollectionCD
inputs/NCU-NCSC/Specimen/unmapped_terms.csv
1
FIPS
1 2
Alt N/S
2 3
Alt E/W
3 4
preparations
inputs/VegBank/observation_/new_terms.csv
1 1
observation_id
2
previousobs_id
3 2
methodnarrative
4 3
obsstartdate
5 4
obsenddate
inputs/SALVIAS/plotMetadata/new_terms.csv
1
orig_filename
2 1
SiteCode
3 2
MajorGeo
4 3
PolDiv1
inputs/SALVIAS/projects/unmapped_terms.csv
1
project_pi
1 2
allow_download_all
2 3
ipr_specific
3 4
ipr_specific_updated
inputs/SALVIAS/stems/unmapped_terms.csv
1
origrecord_id_stems
1 2
tmp_del
2 3
plotobs_id_index
inputs/SALVIAS/plotObservations/unmapped_terms.csv
1
OrigRecordID
1 2
ind_id
2 3
dist
3 4
perp_dist
inputs/U/Specimen/unmapped_terms.csv
1
Prefix
1 2
Suffix
2 3
DateInfo
3 4
Majorarea
inputs/GBIF/Specimen/unmapped_terms.csv
1
0
1 2
1
2 3
3
3 4
dcterms:modified
inputs/SpeciesLink/Specimen/unmapped_terms.csv
1
dcterms:modified
1 2
BasisOfRecord
2 3
day
3 4
TypeStatus
inputs/VegBank/taxonobservation_/unmapped_terms.csv
1
plantconcept_id
1 2
taxonobservation_reference_id
2 3
taxoninferencearea
3 4
emb_taxonobservation
inputs/VegBank/taxonobservation_/new_terms.csv
1
plantconcept_id
2 1
taxonobservation_id
3 2
observation_id
4 3
authorplantname
inputs/VegBank/observation_/unmapped_terms.csv
1
previousobs_id
1 2
dateaccuracy
2 3
covermethod_id
3 4
coverdispersion
inputs/VegBank/plot_/new_terms.csv
1 1
authorplotcode
2
reference_id
3 2
parent_id
4 3
reallatitude
5 4
reallongitude
inputs/VegBank/plot_/unmapped_terms.csv
1
reference_id
1 2
parentPlotID
2 3
OMIT
3 4
OMIT

Also available in: Unified diff