Open ValentineHerr opened 1 year ago
Stuart mentioned this as a useful ref: https://bien.nceas.ucsb.edu/bien/wp-content/uploads/2013/01/Wiser_etal_2011_VegX.pdf
I add Suzanne's input here:
-- Make sure that tags, stemtags, and quadrats are character fields, so as not to lose leading zeros and tags/stemtags/quadrats with letters or dashes.
Check to make sure all measurement codes are valid. The delimiter ";" is used to separate codes in our case.
MySQL accepts dates in the format yyyy-mm-dd. Unfortunately, if you ask for dates in the regular format, they may come as dd-mm-yyyy and mm-dd-yyyy in the same file.
Make sure the dates fall within the census range.
Make sure all species codes are valid.
Make sure all quadrats are valid.
Check for duplicate Tag+Stemtags (i.e. in different quadrats or have different species codes).
Check for diameters and homs outside the permitted range.
Flag records with no diameter measurement and no codes (explaining whether tree is broken, dead, fallen, etc.).
For every multiple-stemmed tree, make sure there is not more than one "main" stem code, if the plot is using this column (primary/secondary).
Make sure that all the multiple stems of the same tree have the same species code
Make sure that all the multiple stems of the same tree belong to the same quadrat, or at least to neighboring quadrats.
Make sure the coordinates are valid within the quadrat and within the plot.
If more than one census:
(some notes that I took about proper relational db design)
some other notes about relational databases. normal-forms-etc.docx
This would likely be a standalone markdown (so we can share link) with imbedded code for suggestions on how to check the data before bringing it into the app. The file will be visualizable in the app.