{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Creating a custom grid \n", "\n", "Emiproc provides many useful tools to work with gridded data.\n", "The only thing you need is to tell emiproc how your grid is defined.\n", "For this purpose emiproc implements an abstract class `Grid`. \n", "\n", "This tutorial aims to show how to create a custom grid for your own needs.\n", "\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Understanding geopandas and shapely \n", "\n", "Geopandas will help us generate the geometry of the grid. \n", "\n", "The principle is that each grid cell is a polygon. \n", "\n", "Polygons are simply a list of 2d point coordinates that are connected by lines.\n", "So only by defining the points of the polygon, we can create a grid cell.\n", "\n", "In geopandas you can create Series of polygons." ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "text/html": [ "