> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rebase.energy/llms.txt
> Use this file to discover all available pages before exploring further.

# How to create a wind site

> Create a new wind site to forecast in the Rebase Platform.

## What data do I need to create a new site

You will need to provide some data about the site, its assets and some settings about the forecasting models.

**Type of the site** `type`
<br /> Specify the type of the site. For a wind site it should be: `wind`.

**Name of the site** `name`
<br /> Specify a name for the site. It is used to easily recognize the site. It is a string.
<br /> Example: `My wind site`

**Latitude of the site location** `latitude`
<br /> Specify the latitude of the site location. It takes a value between -90 and 90.
<br /> Example: `52.5`

**Longitude of the site location** `longitude`
<br /> Specify the longitude of the site location. It takes a value between -180 and 180.
<br /> Example: `13.4`

**Assets** `assets`

* **Wind turbine model** `turbine_type`
  <br /> Specify the wind turbine model. It is a string.
  <br /> A list of the available wind turbine models is provided in the [API Reference](/api-reference/site/create-site) under the `Body` section and `WindSiteItem` tab.
  If the model is not in the list, then set `generic` as turbine model or pick a wind turbine model with similar characteristics (nominal power, rotor diameter).
  <br /> Example: `V126/3000`

* **Number of wind turbines** `nr_units`
  <br /> Specify the number of the wind turbines in the site. It is a positive integer number.
  <br /> Example: `3`

* **Wind turbine hub height** `hub_height`
  <br /> Specify the wind turbine hub height in meters (m). It is a positive number.
  <br /> Example: `119`

* **Installation date** `install_date`
  <br /> Specify the date when the system was installed. It is a string with format: "YYYY-MM-DD".
  <br /> Example: `2020-01-01`

If the turbine model is `generic`, then the following asset parameters should also be provided:

* **Wind turbine nominal power** `nominal_power`
  <br /> Specify the nominal power of the wind turbine in kilowatts (kW). It is a positive number.
  <br /> Example: `3000`

* **Wind turbine rotor diameter** `rotor_diameter`
  <br /> Specify the wind turbine rotor diameter in meters (m). It is a positive number.
  <br /> Example: `126`

**Settings** `settings`

* **Model resolution** `model_resolution`
  <br /> Specify how frequently the forecasts will be updated. It can be every 15 minutes, 30 minutes, 1 hour or daily.
  It takes one of the following values: `15min`, `30min`, `1h` or `1d`.

* **Forecast max value** `forecast_max_value`
  <br /> Specify an upper limit for the forecasts in kilowatts (kW). This setting is useful when a grid export limit restricts how much power can be delivered. It is a positive number. If null no cap is applied.

* **Train long-term models** `trainLongTermModels`
  <br /> Specify if a model based on typical meteorological year should be trained for long-term forecasting. It takes one of the following values: `true` or `false`

* **Train near-term models** `trainNearTermModels`
  <br /> Specify if a model based on recent power observations should be trained for short-term forecasting. Power observations should be available in real time in this case. It takes one of the following values: `true` or `false`

* **Use physical models** `usePhysicalModels`
  <br /> Specify if physical models should be enabled. No training data are required for physical models to work. It takes one of the following values: `true` or `false`

### Create wind sites examples

<CodeGroup>
  ```python Specific wind turbine model theme={null}
  import requests

  api_key = "Your API key" # Set your API key

  payload = {
  	"type": "wind",
  	"name": "My wind site",
  	"latitude": 52.5,
  	"longitude": 13.4,
  	"settings": {
  		"model_resolution": "1h",
  		"usePhysicalModels": True,
  		"trainNearTermModels": False,
  		"trainLongTermModels": False
  	},
  	"assets": [
  		{
  			"turbine_type": "V126/3000",
  			"nr_units": 3,
  			"hub_height": 119,
  			"install_date": "2020-01-01"
  		}
  	]
  }

  url = "https://api.rebase.energy/platform/v2/sites"
  headers = {"Authorization": api_key, "Content-Type": "application/json"}

  response = requests.post(url, headers=headers, json=payload)
  response.raise_for_status()
  response = response.json()
  ```

  ```python Generic wind turbine model theme={null}
  import requests

  api_key = "Your API key" # Set your API key

  payload = {
  	"type": "wind",
  	"name": "My wind site",
  	"latitude": 52.5,
  	"longitude": 13.4,
  	"settings": {
  		"model_resolution": "1h",
  		"usePhysicalModels": True,
  		"trainNearTermModels": False,
  		"trainLongTermModels": False
  	},
  	"assets": [
  		{
  			"turbine_type": "generic",
  			"nominal_power": 3000,
  			"nr_units": 3,
  			"hub_height": 119,
  			"rotor_diameter": 126,
  			"install_date": "2022-01-01"
  		}
  	]
  }

  url = "https://api.rebase.energy/platform/v2/sites"
  headers = {"Authorization": api_key, "Content-Type": "application/json"}

  response = requests.post(url, headers=headers, json=payload)
  response.raise_for_status()
  response = response.json()
  ```

  ```python Multiple wind turbine models theme={null}
  import requests

  api_key = "Your API key" # Set your API key

  payload = {
  	"type": "wind",
  	"name": "My wind site",
  	"latitude": 52.5,
  	"longitude": 13.4,
  	"settings": {
  		"model_resolution": "1h",
  		"usePhysicalModels": True,
  		"trainNearTermModels": False,
  		"trainLongTermModels": False
  	},
  	"assets": [
  		{
  			"turbine_type": "V126/3000",
  			"nr_units": 2,
  			"hub_height": 119,
  			"install_date": "2020-01-01"
  		},
  		{
  			"turbine_type": "V112/3300",
  			"nr_units": 2,
  			"hub_height": 140,
  			"install_date": "2020-01-01"
  		}		
  	]
  }

  url = "https://api.rebase.energy/platform/v2/sites"
  headers = {"Authorization": api_key, "Content-Type": "application/json"}

  response = requests.post(url, headers=headers, json=payload)
  response.raise_for_status()
  response = response.json()
  ```
</CodeGroup>

The API response contains the ID of the new site.

```python Multiple wind turbine models theme={null}
{
    "site_id": "dfd365tc-2644-3627-905a-ghjjd182u78"
}
```
