From 595d503120d0f64ff66f37bc9bfcde95d786d42c Mon Sep 17 00:00:00 2001 From: carmengg Date: Sun, 22 Oct 2023 18:39:56 -0700 Subject: [PATCH] simplified csv --- lectures/pig_gbif_data_preparation.ipynb | 1261 ++++++++++++++++++++++ 1 file changed, 1261 insertions(+) create mode 100644 lectures/pig_gbif_data_preparation.ipynb diff --git a/lectures/pig_gbif_data_preparation.ipynb b/lectures/pig_gbif_data_preparation.ipynb new file mode 100644 index 0000000..d10d918 --- /dev/null +++ b/lectures/pig_gbif_data_preparation.ipynb @@ -0,0 +1,1261 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [], + "source": [ + "import geopandas as gpd\n", + "import pandas as pd" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
NAME_PCASENAME_UCASEFMNAME_PCFMNAME_UCABBREVNUMABCODEFIPSANSIISLANDShape_LengShape_Areageometry
0Santa BarbaraSANTA BARBARASanta Barbara CountySANTA BARBARA COUNTYSBA42c042083083N424655.1632726.608866e+09POLYGON ((-7248.153 -322621.781, -7240.234 -32...
1Santa BarbaraSANTA BARBARASanta Barbara CountySANTA BARBARA COUNTYSBA42c042083083Y220.9621923.665768e+03POLYGON ((-60843.500 -346204.000, -60854.609 -...
2Santa BarbaraSANTA BARBARASanta Barbara CountySANTA BARBARA COUNTYSBA42c042083083Y559.3328468.479405e+03POLYGON ((-58512.125 -362150.188, -58526.457 -...
3Santa BarbaraSANTA BARBARASanta Barbara CountySANTA BARBARA COUNTYSBA42c042083083Y859.5368112.466295e+04POLYGON ((28638.146 -401237.438, 28642.877 -40...
4Santa BarbaraSANTA BARBARASanta Barbara CountySANTA BARBARA COUNTYSBA42c042083083Y120137.6099552.502277e+08POLYGON ((7485.788 -439053.938, 7488.938 -4389...
5Santa BarbaraSANTA BARBARASanta Barbara CountySANTA BARBARA COUNTYSBA42c042083083Y44315.1491193.852854e+07POLYGON ((-39139.164 -440591.344, -39120.691 -...
6Santa BarbaraSANTA BARBARASanta Barbara CountySANTA BARBARA COUNTYSBA42c042083083Y1736.7851021.533134e+05POLYGON ((-30672.670 -439903.344, -30699.912 -...
7Santa BarbaraSANTA BARBARASanta Barbara CountySANTA BARBARA COUNTYSBA42c042083083Y824.6247311.531302e+04POLYGON ((-38500.484 -439899.375, -38510.887 -...
8Santa BarbaraSANTA BARBARASanta Barbara CountySANTA BARBARA COUNTYSBA42c042083083Y584.0756191.794771e+04POLYGON ((-40617.293 -439921.594, -40624.473 -...
9Santa BarbaraSANTA BARBARASanta Barbara CountySANTA BARBARA COUNTYSBA42c042083083Y888.0989634.262273e+04POLYGON ((-40294.981 -440075.188, -40312.644 -...
10Santa BarbaraSANTA BARBARASanta Barbara CountySANTA BARBARA COUNTYSBA42c042083083Y82090.9085432.147722e+08POLYGON ((-18145.144 -445674.156, -18100.254 -...
11Santa BarbaraSANTA BARBARASanta Barbara CountySANTA BARBARA COUNTYSBA42c042083083Y10574.3007122.589927e+06POLYGON ((90394.680 -503809.156, 90388.602 -50...
12Santa BarbaraSANTA BARBARASanta Barbara CountySANTA BARBARA COUNTYSBA42c042083083Y1336.8549465.752840e+04POLYGON ((88485.992 -505235.000, 88477.969 -50...
\n", + "
" + ], + "text/plain": [ + " NAME_PCASE NAME_UCASE FMNAME_PC FMNAME_UC \\\n", + "0 Santa Barbara SANTA BARBARA Santa Barbara County SANTA BARBARA COUNTY \n", + "1 Santa Barbara SANTA BARBARA Santa Barbara County SANTA BARBARA COUNTY \n", + "2 Santa Barbara SANTA BARBARA Santa Barbara County SANTA BARBARA COUNTY \n", + "3 Santa Barbara SANTA BARBARA Santa Barbara County SANTA BARBARA COUNTY \n", + "4 Santa Barbara SANTA BARBARA Santa Barbara County SANTA BARBARA COUNTY \n", + "5 Santa Barbara SANTA BARBARA Santa Barbara County SANTA BARBARA COUNTY \n", + "6 Santa Barbara SANTA BARBARA Santa Barbara County SANTA BARBARA COUNTY \n", + "7 Santa Barbara SANTA BARBARA Santa Barbara County SANTA BARBARA COUNTY \n", + "8 Santa Barbara SANTA BARBARA Santa Barbara County SANTA BARBARA COUNTY \n", + "9 Santa Barbara SANTA BARBARA Santa Barbara County SANTA BARBARA COUNTY \n", + "10 Santa Barbara SANTA BARBARA Santa Barbara County SANTA BARBARA COUNTY \n", + "11 Santa Barbara SANTA BARBARA Santa Barbara County SANTA BARBARA COUNTY \n", + "12 Santa Barbara SANTA BARBARA Santa Barbara County SANTA BARBARA COUNTY \n", + "\n", + " ABBREV NUM ABCODE FIPS ANSI ISLAND Shape_Leng Shape_Area \\\n", + "0 SBA 42 c042 083 083 N 424655.163272 6.608866e+09 \n", + "1 SBA 42 c042 083 083 Y 220.962192 3.665768e+03 \n", + "2 SBA 42 c042 083 083 Y 559.332846 8.479405e+03 \n", + "3 SBA 42 c042 083 083 Y 859.536811 2.466295e+04 \n", + "4 SBA 42 c042 083 083 Y 120137.609955 2.502277e+08 \n", + "5 SBA 42 c042 083 083 Y 44315.149119 3.852854e+07 \n", + "6 SBA 42 c042 083 083 Y 1736.785102 1.533134e+05 \n", + "7 SBA 42 c042 083 083 Y 824.624731 1.531302e+04 \n", + "8 SBA 42 c042 083 083 Y 584.075619 1.794771e+04 \n", + "9 SBA 42 c042 083 083 Y 888.098963 4.262273e+04 \n", + "10 SBA 42 c042 083 083 Y 82090.908543 2.147722e+08 \n", + "11 SBA 42 c042 083 083 Y 10574.300712 2.589927e+06 \n", + "12 SBA 42 c042 083 083 Y 1336.854946 5.752840e+04 \n", + "\n", + " geometry \n", + "0 POLYGON ((-7248.153 -322621.781, -7240.234 -32... \n", + "1 POLYGON ((-60843.500 -346204.000, -60854.609 -... \n", + "2 POLYGON ((-58512.125 -362150.188, -58526.457 -... \n", + "3 POLYGON ((28638.146 -401237.438, 28642.877 -40... \n", + "4 POLYGON ((7485.788 -439053.938, 7488.938 -4389... \n", + "5 POLYGON ((-39139.164 -440591.344, -39120.691 -... \n", + "6 POLYGON ((-30672.670 -439903.344, -30699.912 -... \n", + "7 POLYGON ((-38500.484 -439899.375, -38510.887 -... \n", + "8 POLYGON ((-40617.293 -439921.594, -40624.473 -... \n", + "9 POLYGON ((-40294.981 -440075.188, -40312.644 -... \n", + "10 POLYGON ((-18145.144 -445674.156, -18100.254 -... \n", + "11 POLYGON ((90394.680 -503809.156, 90388.602 -50... \n", + "12 POLYGON ((88485.992 -505235.000, 88477.969 -50... " + ] + }, + "execution_count": 10, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "sb = gpd.read_file('sb_shapefile/SB_only.shp')\n", + "sb" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gbifIDdatasetKeyoccurrenceIDkingdomphylumclassorderfamilygenusspecies...identifiedBydateIdentifiedlicenserightsHolderrecordedBytypeStatusestablishmentMeanslastInterpretedmediaTypeissue
095428888b929f23d-290f-4e85-8f17-764c55b3b2844ddf5827-e5c9-49ca-8b4a-c7d0c69fdeb4AnimaliaChordataMammaliaArtiodactylaSuidaeSusSus scrofa...NaNNaNCC0_1_0NaNHonolulu Zoo staffNaNNaN2023-09-27T16:41:37.153ZNaNINSTITUTION_MATCH_FUZZY;COLLECTION_MATCH_FUZZY
195428629b929f23d-290f-4e85-8f17-764c55b3b2849523ff0e-4603-4637-8646-621b4a45a30aAnimaliaChordataMammaliaArtiodactylaSuidaeSusSus scrofa...C H KishinamiNaNCC0_1_0Bernice Pauahi Bishop MuseumC H Kishinami, D J Preston, et al.NaNNaN2023-09-27T16:42:01.867ZNaNGEODETIC_DATUM_INVALID;GEODETIC_DATUM_ASSUMED_...
295428623b929f23d-290f-4e85-8f17-764c55b3b284cd00e03d-f8d8-47ec-9d1d-0fb9563c86e2AnimaliaChordataMammaliaArtiodactylaSuidaeSusSus scrofa...C H KishinamiNaNCC0_1_0Bernice Pauahi Bishop MuseumHonolulu City & County staffNaNNaN2023-09-27T16:42:03.837ZNaNGEODETIC_DATUM_INVALID;GEODETIC_DATUM_ASSUMED_...
395428616b929f23d-290f-4e85-8f17-764c55b3b284ed8b1aff-b69e-417e-8e44-204f6e34902aAnimaliaChordataMammaliaArtiodactylaSuidaeSusSus scrofa...NaNNaNCC0_1_0Bernice Pauahi Bishop MuseumM L Goff & F W HowarthNaNNaN2023-09-27T16:41:48.856ZNaNCONTINENT_DERIVED_FROM_COORDINATES;INSTITUTION...
495428605b929f23d-290f-4e85-8f17-764c55b3b284a885aab8-8315-4986-b61a-787611cc7b3bAnimaliaChordataMammaliaArtiodactylaSuidaeSusSus scrofa...NaNNaNCC0_1_0Bernice Pauahi Bishop MuseumV Santarone & S InadaNaNNaN2023-09-27T16:41:44.615ZNaNTYPE_STATUS_INVALID;INSTITUTION_MATCH_FUZZY;CO...
\n", + "

5 rows × 50 columns

\n", + "
" + ], + "text/plain": [ + " gbifID datasetKey \\\n", + "0 95428888 b929f23d-290f-4e85-8f17-764c55b3b284 \n", + "1 95428629 b929f23d-290f-4e85-8f17-764c55b3b284 \n", + "2 95428623 b929f23d-290f-4e85-8f17-764c55b3b284 \n", + "3 95428616 b929f23d-290f-4e85-8f17-764c55b3b284 \n", + "4 95428605 b929f23d-290f-4e85-8f17-764c55b3b284 \n", + "\n", + " occurrenceID kingdom phylum class \\\n", + "0 4ddf5827-e5c9-49ca-8b4a-c7d0c69fdeb4 Animalia Chordata Mammalia \n", + "1 9523ff0e-4603-4637-8646-621b4a45a30a Animalia Chordata Mammalia \n", + "2 cd00e03d-f8d8-47ec-9d1d-0fb9563c86e2 Animalia Chordata Mammalia \n", + "3 ed8b1aff-b69e-417e-8e44-204f6e34902a Animalia Chordata Mammalia \n", + "4 a885aab8-8315-4986-b61a-787611cc7b3b Animalia Chordata Mammalia \n", + "\n", + " order family genus species ... identifiedBy dateIdentified \\\n", + "0 Artiodactyla Suidae Sus Sus scrofa ... NaN NaN \n", + "1 Artiodactyla Suidae Sus Sus scrofa ... C H Kishinami NaN \n", + "2 Artiodactyla Suidae Sus Sus scrofa ... C H Kishinami NaN \n", + "3 Artiodactyla Suidae Sus Sus scrofa ... NaN NaN \n", + "4 Artiodactyla Suidae Sus Sus scrofa ... NaN NaN \n", + "\n", + " license rightsHolder recordedBy \\\n", + "0 CC0_1_0 NaN Honolulu Zoo staff \n", + "1 CC0_1_0 Bernice Pauahi Bishop Museum C H Kishinami, D J Preston, et al. \n", + "2 CC0_1_0 Bernice Pauahi Bishop Museum Honolulu City & County staff \n", + "3 CC0_1_0 Bernice Pauahi Bishop Museum M L Goff & F W Howarth \n", + "4 CC0_1_0 Bernice Pauahi Bishop Museum V Santarone & S Inada \n", + "\n", + " typeStatus establishmentMeans lastInterpreted mediaType \\\n", + "0 NaN NaN 2023-09-27T16:41:37.153Z NaN \n", + "1 NaN NaN 2023-09-27T16:42:01.867Z NaN \n", + "2 NaN NaN 2023-09-27T16:42:03.837Z NaN \n", + "3 NaN NaN 2023-09-27T16:41:48.856Z NaN \n", + "4 NaN NaN 2023-09-27T16:41:44.615Z NaN \n", + "\n", + " issue \n", + "0 INSTITUTION_MATCH_FUZZY;COLLECTION_MATCH_FUZZY \n", + "1 GEODETIC_DATUM_INVALID;GEODETIC_DATUM_ASSUMED_... \n", + "2 GEODETIC_DATUM_INVALID;GEODETIC_DATUM_ASSUMED_... \n", + "3 CONTINENT_DERIVED_FROM_COORDINATES;INSTITUTION... \n", + "4 TYPE_STATUS_INVALID;INSTITUTION_MATCH_FUZZY;CO... \n", + "\n", + "[5 rows x 50 columns]" + ] + }, + "execution_count": 11, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "# https://stackoverflow.com/questions/18039057/pandas-parser-cparsererror-error-tokenizing-data#:~:text=This%20error%20may%20arise%20also,if%20it%27s%20there%20by%20mistake.\n", + "# there might be commas in the \n", + "# GBIF.org (23 October 2023) GBIF Occurrence Download https://doi.org/10.15468/dl.qavhwp\n", + "raw_pigs = pd.read_csv('wild_pigs_gbif_raw.csv', sep='\\t')\n", + "raw_pigs.head()" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gbifIDspeciesstateProvinceindividualCountdecimalLatitudedecimalLongitudedaymonthyearinstitutionCodecollectionCodecatalogNumberidentifiedBy
41899953814Sus scrofaCaliforniaNaN37.088460-121.53812222.03.02014.0iNaturalistObservations581956edwardrooks
43899951348Sus scrofaCaliforniaNaN35.473539-120.5494259.06.02007.0iNaturalistObservations576047Bruce Freeman
74896560733Sus scrofaCaliforniaNaN37.876099-122.27063320.012.01937.0MVZHildMVZ:Hild:195Museum of Vertebrate Zoology, University of Ca...
75896559958Sus scrofaCaliforniaNaN38.445432-121.8229731.04.01969.0MVZHildMVZ:Hild:1213Museum of Vertebrate Zoology, University of Ca...
76896559722Sus scrofaCaliforniaNaN38.548816-121.7455901.01.01961.0MVZHildMVZ:Hild:1004Museum of Vertebrate Zoology, University of Ca...
..........................................
68351024216143Sus scrofaCaliforniaNaN37.342706-121.71341324.08.02014.0iNaturalistObservations848609sea-kangaroo
68361024215805Sus scrofaCaliforniaNaN37.344672-121.71871224.08.02014.0iNaturalistObservations847708Donna Pomeroy
68371024215159Sus scrofaCaliforniaNaN35.397451-120.18418623.08.02014.0iNaturalistObservations845949Alyssa Semerdjian
68421019052419Sus scrofaCalifornia2.034.048100-119.55190018.09.01998.0Borror Laboratory of Bioacoustics, Ohio State ...RecordingsBLB30714NaN
68431019052401Sus scrofaCalifornia2.034.048100-119.55190018.09.01998.0Borror Laboratory of Bioacoustics, Ohio State ...RecordingsBLB30713NaN
\n", + "

1046 rows × 13 columns

\n", + "
" + ], + "text/plain": [ + " gbifID species stateProvince individualCount decimalLatitude \\\n", + "41 899953814 Sus scrofa California NaN 37.088460 \n", + "43 899951348 Sus scrofa California NaN 35.473539 \n", + "74 896560733 Sus scrofa California NaN 37.876099 \n", + "75 896559958 Sus scrofa California NaN 38.445432 \n", + "76 896559722 Sus scrofa California NaN 38.548816 \n", + "... ... ... ... ... ... \n", + "6835 1024216143 Sus scrofa California NaN 37.342706 \n", + "6836 1024215805 Sus scrofa California NaN 37.344672 \n", + "6837 1024215159 Sus scrofa California NaN 35.397451 \n", + "6842 1019052419 Sus scrofa California 2.0 34.048100 \n", + "6843 1019052401 Sus scrofa California 2.0 34.048100 \n", + "\n", + " decimalLongitude day month year \\\n", + "41 -121.538122 22.0 3.0 2014.0 \n", + "43 -120.549425 9.0 6.0 2007.0 \n", + "74 -122.270633 20.0 12.0 1937.0 \n", + "75 -121.822973 1.0 4.0 1969.0 \n", + "76 -121.745590 1.0 1.0 1961.0 \n", + "... ... ... ... ... \n", + "6835 -121.713413 24.0 8.0 2014.0 \n", + "6836 -121.718712 24.0 8.0 2014.0 \n", + "6837 -120.184186 23.0 8.0 2014.0 \n", + "6842 -119.551900 18.0 9.0 1998.0 \n", + "6843 -119.551900 18.0 9.0 1998.0 \n", + "\n", + " institutionCode collectionCode \\\n", + "41 iNaturalist Observations \n", + "43 iNaturalist Observations \n", + "74 MVZ Hild \n", + "75 MVZ Hild \n", + "76 MVZ Hild \n", + "... ... ... \n", + "6835 iNaturalist Observations \n", + "6836 iNaturalist Observations \n", + "6837 iNaturalist Observations \n", + "6842 Borror Laboratory of Bioacoustics, Ohio State ... Recordings \n", + "6843 Borror Laboratory of Bioacoustics, Ohio State ... Recordings \n", + "\n", + " catalogNumber identifiedBy \n", + "41 581956 edwardrooks \n", + "43 576047 Bruce Freeman \n", + "74 MVZ:Hild:195 Museum of Vertebrate Zoology, University of Ca... \n", + "75 MVZ:Hild:1213 Museum of Vertebrate Zoology, University of Ca... \n", + "76 MVZ:Hild:1004 Museum of Vertebrate Zoology, University of Ca... \n", + "... ... ... \n", + "6835 848609 sea-kangaroo \n", + "6836 847708 Donna Pomeroy \n", + "6837 845949 Alyssa Semerdjian \n", + "6842 BLB30714 NaN \n", + "6843 BLB30713 NaN \n", + "\n", + "[1046 rows x 13 columns]" + ] + }, + "execution_count": 18, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "raw_pigs.columns\n", + "keep = ['gbifID', 'species', 'stateProvince', 'individualCount', 'decimalLatitude', 'decimalLongitude',\n", + " 'day',\n", + " 'month', 'year', 'institutionCode', 'collectionCode', 'catalogNumber', \n", + " 'identifiedBy']\n", + "pigs_ca = raw_pigs.loc[raw_pigs.stateProvince == 'California', keep]\n", + "pigs_ca" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
gbifIDspeciesstateProvinceindividualCountdecimalLatitudedecimalLongitudedaymonthyearinstitutionCodecollectionCodecatalogNumberidentifiedBygeometry
41899953814Sus scrofaCaliforniaNaN37.088460-121.53812222.03.02014.0iNaturalistObservations581956edwardrooksPOINT (-121.53812 37.08846)
43899951348Sus scrofaCaliforniaNaN35.473539-120.5494259.06.02007.0iNaturalistObservations576047Bruce FreemanPOINT (-120.54942 35.47354)
74896560733Sus scrofaCaliforniaNaN37.876099-122.27063320.012.01937.0MVZHildMVZ:Hild:195Museum of Vertebrate Zoology, University of Ca...POINT (-122.27063 37.87610)
75896559958Sus scrofaCaliforniaNaN38.445432-121.8229731.04.01969.0MVZHildMVZ:Hild:1213Museum of Vertebrate Zoology, University of Ca...POINT (-121.82297 38.44543)
76896559722Sus scrofaCaliforniaNaN38.548816-121.7455901.01.01961.0MVZHildMVZ:Hild:1004Museum of Vertebrate Zoology, University of Ca...POINT (-121.74559 38.54882)
.............................................
68351024216143Sus scrofaCaliforniaNaN37.342706-121.71341324.08.02014.0iNaturalistObservations848609sea-kangarooPOINT (-121.71341 37.34271)
68361024215805Sus scrofaCaliforniaNaN37.344672-121.71871224.08.02014.0iNaturalistObservations847708Donna PomeroyPOINT (-121.71871 37.34467)
68371024215159Sus scrofaCaliforniaNaN35.397451-120.18418623.08.02014.0iNaturalistObservations845949Alyssa SemerdjianPOINT (-120.18419 35.39745)
68421019052419Sus scrofaCalifornia2.034.048100-119.55190018.09.01998.0Borror Laboratory of Bioacoustics, Ohio State ...RecordingsBLB30714NaNPOINT (-119.55190 34.04810)
68431019052401Sus scrofaCalifornia2.034.048100-119.55190018.09.01998.0Borror Laboratory of Bioacoustics, Ohio State ...RecordingsBLB30713NaNPOINT (-119.55190 34.04810)
\n", + "

1046 rows × 14 columns

\n", + "
" + ], + "text/plain": [ + " gbifID species stateProvince individualCount decimalLatitude \\\n", + "41 899953814 Sus scrofa California NaN 37.088460 \n", + "43 899951348 Sus scrofa California NaN 35.473539 \n", + "74 896560733 Sus scrofa California NaN 37.876099 \n", + "75 896559958 Sus scrofa California NaN 38.445432 \n", + "76 896559722 Sus scrofa California NaN 38.548816 \n", + "... ... ... ... ... ... \n", + "6835 1024216143 Sus scrofa California NaN 37.342706 \n", + "6836 1024215805 Sus scrofa California NaN 37.344672 \n", + "6837 1024215159 Sus scrofa California NaN 35.397451 \n", + "6842 1019052419 Sus scrofa California 2.0 34.048100 \n", + "6843 1019052401 Sus scrofa California 2.0 34.048100 \n", + "\n", + " decimalLongitude day month year \\\n", + "41 -121.538122 22.0 3.0 2014.0 \n", + "43 -120.549425 9.0 6.0 2007.0 \n", + "74 -122.270633 20.0 12.0 1937.0 \n", + "75 -121.822973 1.0 4.0 1969.0 \n", + "76 -121.745590 1.0 1.0 1961.0 \n", + "... ... ... ... ... \n", + "6835 -121.713413 24.0 8.0 2014.0 \n", + "6836 -121.718712 24.0 8.0 2014.0 \n", + "6837 -120.184186 23.0 8.0 2014.0 \n", + "6842 -119.551900 18.0 9.0 1998.0 \n", + "6843 -119.551900 18.0 9.0 1998.0 \n", + "\n", + " institutionCode collectionCode \\\n", + "41 iNaturalist Observations \n", + "43 iNaturalist Observations \n", + "74 MVZ Hild \n", + "75 MVZ Hild \n", + "76 MVZ Hild \n", + "... ... ... \n", + "6835 iNaturalist Observations \n", + "6836 iNaturalist Observations \n", + "6837 iNaturalist Observations \n", + "6842 Borror Laboratory of Bioacoustics, Ohio State ... Recordings \n", + "6843 Borror Laboratory of Bioacoustics, Ohio State ... Recordings \n", + "\n", + " catalogNumber identifiedBy \\\n", + "41 581956 edwardrooks \n", + "43 576047 Bruce Freeman \n", + "74 MVZ:Hild:195 Museum of Vertebrate Zoology, University of Ca... \n", + "75 MVZ:Hild:1213 Museum of Vertebrate Zoology, University of Ca... \n", + "76 MVZ:Hild:1004 Museum of Vertebrate Zoology, University of Ca... \n", + "... ... ... \n", + "6835 848609 sea-kangaroo \n", + "6836 847708 Donna Pomeroy \n", + "6837 845949 Alyssa Semerdjian \n", + "6842 BLB30714 NaN \n", + "6843 BLB30713 NaN \n", + "\n", + " geometry \n", + "41 POINT (-121.53812 37.08846) \n", + "43 POINT (-120.54942 35.47354) \n", + "74 POINT (-122.27063 37.87610) \n", + "75 POINT (-121.82297 38.44543) \n", + "76 POINT (-121.74559 38.54882) \n", + "... ... \n", + "6835 POINT (-121.71341 37.34271) \n", + "6836 POINT (-121.71871 37.34467) \n", + "6837 POINT (-120.18419 35.39745) \n", + "6842 POINT (-119.55190 34.04810) \n", + "6843 POINT (-119.55190 34.04810) \n", + "\n", + "[1046 rows x 14 columns]" + ] + }, + "execution_count": 22, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "geo_pigs = gpd.GeoDataFrame(pigs_ca, \n", + " geometry=gpd.points_from_xy(pigs_ca.decimalLongitude,\n", + " pigs_ca.decimalLatitude),\n", + " crs='epsg:4326') \n", + "geo_pigs" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 25, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAANsAAAD4CAYAAABlu5PYAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/MnkTPAAAACXBIWXMAAAsTAAALEwEAmpwYAAAdTElEQVR4nO2df5Rc5XnfP8+uRrBLDqxk1jFaIUQgFbEs2D3ZA6LqaY1SkGMZuoESHSyS05MYTtI/apC7rWg5ldTIZakSrLrujwMn7XEOMpEw8hSsYJJG+KSoSK7kXUlWMQ4yQjCkRbG0doWWzWj36R8zdzQ7e++de+/cuXPvzPM5Zw8799c8WuY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Ud/f0rUMIyEyMY00jHbAxGYYCWFiM4yEMLEZRkKY2AwjIUxshpEQJjbDSIj/Dxd6ybTUYYkKAAAAAElFTkSuQmCC", + "text/plain": [ + "
" + ] + }, + "metadata": { + "needs_background": "light" + }, + "output_type": "display_data" + } + ], + "source": [ + "geo_pigs.plot()" + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "Index(['gbifID', 'species', 'stateProvince', 'individualCount',\n", + " 'decimalLatitude', 'decimalLongitude', 'day', 'month', 'year',\n", + " 'institutionCode', 'collectionCode', 'catalogNumber', 'identifiedBy',\n", + " 'geometry'],\n", + " dtype='object')" + ] + }, + "execution_count": 26, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "geo_pigs = geo_pigs.drop(columns=['decimalLatitude','decimalLongitude'])\n", + "geo_pigs" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3.9.7 ('gee_env')", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.9.7" + }, + "orig_nbformat": 4, + "vscode": { + "interpreter": { + "hash": "3b2391b7a20eeb2efb723547aa7e3125625c0a2522675e923032f4b2715464b0" + } + } + }, + "nbformat": 4, + "nbformat_minor": 2 +}