windkit.create_met_fields#
- windkit.create_met_fields(output_locs, n_sectors=12, not_empty=True, seed=9876538, met_fields=['wspd', 'power_density'], **kwargs)[source]#
Create empty dataset filled with met_fields
- Parameters:
output_locs (xarray.Dataset) – Output geospatial information
n_sectors (int) – Number of sectors, defaults to 12
met_fields (list of strings, or string) – List of variables to include in the output, or a string “all” with all the variables. Defaults to [“wspd”, “power_dens”]
kwargs (dict) – Additional arguments.
- Returns:
ds – empty met fields dataset
- Return type:
Notes
Data variables are stored float32, C-contiguous, with
sector(for the variables that carry one) trailing the spatial batch dimensions — the reverse of the compiled core’s declared order — so PyWAsP’s compiled boundary can take a Fortran-ordered view instead of converting a copy (windkit#807). Neither the dtype nor the dimension order is a supported API contract:create_met_fieldsis a test-data utility.