{
  "cells": [
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "\n# Creating a Homogeneous Offshore Map\n\nFor offshore wind resource assessments, it is often necessary to create a \"trivial\" map with zero elevation and constant roughness. This cell demonstrates creating such a map from scratch using a bounding box, converting it to a raster, and generating the corresponding polygon representation.\n"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "collapsed": false
      },
      "outputs": [],
      "source": [
        "import windkit as wk\n\nbbox = wk.spatial.BBox.utm_bbox_from_geographic_coordinate(7, 55, 20000)\noffshore_elev = wk.create_vector_map(bbox=bbox, elevation=0)\noffshore_rou = wk.create_vector_map(\n    bbox=bbox, map_type=\"roughness\", roughness_change=(0.0, 0.0)\n)\nz0 = wk.lines_to_polygons(offshore_rou)\nwk.plot.landcover_map(z0, \"z0\")"
      ]
    }
  ],
  "metadata": {
    "kernelspec": {
      "display_name": "Python 3",
      "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.13.13"
    }
  },
  "nbformat": 4,
  "nbformat_minor": 0
}