- Table of contents
- FIA validation
FIA validation¶
3 issues
issues¶
elevationInMeters
is missing, even thoughelevation_ft
is mapped (inPLOT
)locationID
(inanalytical_stem_view
) is populated fromsubplotID
(inSUBPLOT
) instead oflocationID
(inPLOT
). this is becauselocationID
currently is associated with the location that corresponds directly to the occurrence (theSUBPLOT
), rather than the outermost location (thePLOT
).- this does not create invalid data; it only affects the value of the
locationID
field (which should probably be split into separatelocationID
andsubplotID
fields)
- this does not create invalid data; it only affects the value of the
- joins should use
PLT_CN
/PLOT.CN
instead of Brad's plotCode fields to join to thePLOT
table- should first verify that these match up whenever Brad's plotCode fields do
completed¶
dateCollected
is not mappedeventDate
is missing, even thoughyear
/month
/day
are mapped (inPLOT
)PLOT
has more than one entry per plot; we need to figure out which entry to use and what the separate entries correspond to
this is not the case; there are unique constraints on bothPLOT.locationID
(=PLOT.CN
; seePLOT.ID
) and Brad's plotCode fields (seePLOT.unique
) .PLOT.CN
possibly should not be mapped tolocationID
, and we should instead use Brad's plotCode formula for this
no,locationID
is always for the database's own pkey. Brad's plotCode fields should instead go inlocationName
.
2013-12-12¶
*FIA.2013-12-12.100_rows.xlsx*
(input and output data are in separate tabs. refer to the VegCore data dictionary for column definitions.)
- FIXED:
geolocation information is missing from the validation view. this is because the geolocation is only attached to the subplot location, not the parent plot location.
subset import command:
time (export log= version=FIA_VegBIEN; make schemas/$version/reinstall; make inputs/FIA/import by_col=1 n=100; bin/make_analytical_db) # runtime: 1 min ("0m41.089s") @starscream; 2.5 min ("2m18.602s") @vegbiendev
query:
SELECT *
FROM "FIA"."taxon_observation.**"
LEFT JOIN "FIA_VegBIEN".analytical_plot ON
analytical_plot."datasource" = 'FIA'
AND analytical_plot."individualObservationID" = "taxon_observation.**"."individualObservationID"::text
ORDER BY "taxon_observation.**".row_num
LIMIT 100