pacificclimate / scip-db

ORM for a database of BC salmon population
GNU General Public License v3.0
2 stars 0 forks source link

Add population-indexing script #3

Open corviday opened 1 year ago

corviday commented 1 year ago

At a minimum, a "population" is a location (ConservationUnit) and a species (Taxon). We are hoping to have more population data someday, but right now that's all we have. Need a script to add populations to the database. The easiest way to do that at present might be to parse the conservation unit shapefiles - there's one shapefile per taxon - and just provide the taxon as an argument to the script.

Might also be useful to write a quick utility script to pre-populate the "Taxon" table with the seven salmon species, but that may belong in data-prep-actions, or as an alchemy action.