{
  "cells": [
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "\n# BWC to WWC\n\nThis example demonstrates how to convert a binned wind climate (BWC) object\nto a weibull wind climate (WWC) object using the :py:func:`weibull_fit` function from the\n`windkit` library.\n"
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "## Get Sample Data\nFirst, we fetch some sample data from the Serra Santa Luzia case.\n\n"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "collapsed": false
      },
      "outputs": [],
      "source": [
        "import windkit as wk\n\nssl = wk.load_tutorial_data(\"serra_santa_luzia\")\nbwc = ssl.bwc\n\nprint(bwc)"
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "## Convert BWC to WWC\nNow, we can convert the binned wind climate (BWC) object to a weibull wind climate (WWC) object\n\n"
      ]
    },
    {
      "cell_type": "code",
      "execution_count": null,
      "metadata": {
        "collapsed": false
      },
      "outputs": [],
      "source": [
        "wwc = wk.weibull_fit(bwc)\nprint(wwc)"
      ]
    }
  ],
  "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.14.3"
    }
  },
  "nbformat": 4,
  "nbformat_minor": 0
}