{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Example - Filling in missing data & dealing with timestamps" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import geopandas\n", "\n", "from geocube.api.core import make_geocube\n", "\n", "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Load in geopackage data and add CRS" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "gdf = geopandas.read_file(\n", " \"../../test/test_data/input/time_vector_data.geojson\",\n", " crs=\"epsg:4326\",\n", ")" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | test_attr | \n", "test_str_attr | \n", "test_time_attr | \n", "geometry | \n", "
---|---|---|---|---|
0 | \n", "1.3 | \n", "dcf86619 | \n", "5/21/2016 10:09:21 AM -05:00 | \n", "POINT (-47.26681 44.21932) | \n", "
1 | \n", "1.3 | \n", "dcf86619 | \n", "5/21/2016 10:09:21 AM -05:00 | \n", "POINT (-47.26680 44.21932) | \n", "
2 | \n", "1.9 | \n", "dcf86619 | \n", "5/21/2016 10:09:21 AM -05:00 | \n", "POINT (-47.26681 44.21932) | \n", "
3 | \n", "1.3 | \n", "dcf86619 | \n", "5/21/2016 10:09:21 AM -05:00 | \n", "POINT (-47.26680 44.21932) | \n", "
4 | \n", "1.3 | \n", "dcf86619 | \n", "5/21/2016 10:09:21 AM -05:00 | \n", "POINT (-47.26679 44.21932) | \n", "