workflows
¶
Functions:
-
openfield_pv_era5–Simulation of an openfield PV openfield system based on ERA5 Data.
-
openfield_pv_era5_unvalidated–Simulation of an openfield PV openfield system based on ERA5 Data,
-
openfield_pv_era5pure–Simulation of an openfield PV openfield system based on ERA5 original
-
openfield_pv_iconlam–Simulation of an openfield PV openfield system based on ICON-LAM Data.
-
openfield_pv_merra_ryberg2019–openfield_pv_merra_ryberg2019(placements, merra_path, global_solar_atlas_ghi_path, module="WINAICO WSx-240P6", elev=300, tracking="fixed",
-
openfield_pv_sarah_unvalidated–openfield_pv_sarah_unvalidated(placements, sarah_path, era5_path, module="WINAICO WSx-240P6", elev=300, tracking="fixed", inverter=None, inverter_kwargs={}, tracking_args={}, output_netcdf_path=None, output_variables=None)
openfield_pv_era5
¶
openfield_pv_era5(
placements,
era5_path,
global_solar_atlas_ghi_path,
global_solar_atlas_dni_path,
module="WINAICO WSx-240P6",
elev=300,
tracking="fixed",
inverter=None,
inverter_kwargs={},
tracking_args={},
DNI_nodata_fallback=1.0,
DNI_nodata_fallback_scaling=1.0,
GHI_nodata_fallback=1.0,
GHI_nodata_fallback_scaling=1.0,
output_netcdf_path=None,
output_variables=None,
gsa_nodata_fallback="source",
tech_year=2050,
time_slice=None,
)
Simulation of an openfield PV openfield system based on ERA5 Data.
Parameters:
-
–placements¶Locations that you want to do the simulations for. Columns need to be lat (latitudes), lon (longitudes), tilt and capacity. -
–era5_path¶Path to the ERA5 Data on your computer. Can be a single ".nc" file, or a directory containing many ".nc" files. -
–global_solar_atlas_ghi_path¶Path to the global solar atlas ghi data on your computer. -
–global_solar_atlas_dni_path¶Path to the global solar atlas dni data on your computer. -
–module¶Name of the module that you wanna use for the simulation. Default is Winaico Wsx-240P6 -
–elev¶Elevation that you want to model your PV system at. -
–tracking¶Determines whether your PV system is fixed or not. Default is fixed. Option 1 is 'fixed' meaning that the module does not have any tracking capabilities. Option 2 is 'single_axis' meaning that the module has single_axis tracking capabilities. -
–inverter¶Determines whether you want to model your PV system with an inverter or not. Default is None. See reskit.solar.SolarWorkflowManager.apply_inverter_losses for more usage information. -
–DNI_nodata_fallback¶When global_solar_atlas_dni_path has no data, one can decide between different fallback options, by default 1.0: - np.nan or None : return np.nan for missing values in global_solar_atlas_dni_path - float : Apply this float value as a scaling factor for all no-data locations only: source_long_run_average * DNI_nodata_fallback. NOTE: A value of 1.0 will return the source lra value in case of missing global_solar_atlas_dni_path values. - str : Will be interpreted as a filepath to a raster with alternative absolute global_solar_atlas_dni_path values - callable : any callable method taking the arguments (all iterables): 'locs' and 'source_long_run_average_value' (the locations as gk.geom.point objects and original value from source data). The output values will be considered as the new real_long_run_average for missing locations only. NOTE: np.nan will also be returned in case that the nodata fallback does not yield values either. -
–DNI_nodata_fallback_scaling¶The scaling factor that will be applied to the DNI nodata fallback e.g. in case of different units compared to source data. By default 1.0, i.e. no effect. -
–GHI_nodata_fallback¶When global_solar_atlas_ghi_path has no data, one can decide between different fallback options, by default 1.0: - np.nan or None : return np.nan for missing values in global_solar_atlas_ghi_path - float : Apply this float value as a scaling factor for all no-data locations only: source_long_run_average * GHI_nodata_fallback. NOTE: A value of 1.0 will return the source lra value in case of missing global_solar_atlas_ghi_path values. - str : Will be interpreted as a filepath to a raster with alternative absolute global_solar_atlas_ghi_path values - callable : any callable method taking the arguments (all iterables): 'locs' and 'source_long_run_average_value' (the locations as gk.geom.point objects and original value from source data). The output values will be considered as the new real_long_run_average for missing locations only. NOTE: np.nan will also be returned in case that the nodata fallback does not yield values either -
–GHI_nodata_fallback_scaling¶The scaling factor that will be applied to the GHI nodata fallback e.g. in case of different units compared to source data. By default 1.0, i.e. no effect. -
–output_netcdf_path¶Path to a file that you want to save your output NETCDF file at. Default is None -
–output_variables¶Output variables of the simulation that you want to save into your NETCDF Outputfile. -
–gsa_nodata_fallback¶NOTE: DEPRECATED! Will be removed soon! When real_long_run_average has no data, it can be decided between fallback options: -'source': use source data (ERA5 raw simulation) -'nan': return np.nan for missing values get flags for missing values: - f'missing_values_{os.path.basename(path_to_LRA_source)} -
(tech_year¶int, default:2050) –If given in combination with the projected module str names "WINAICO WSx-240P6" or "LG Electronics LG370Q1C-A5", the effifiency will be scaled linearly to the given year. Must then be between year of market introduction for that module and 2050. Will be ignored when non-projected existing module names or specific parameters are given, can then be None. By default 2050. -
(time_slice¶slice, default:None) –Limit the time span loaded from the ERA5 source. Only supported for Zarr-backed ERA5 sources, where it is strongly recommended to avoid loading whole multi-year cloud stores. Raises for netCDF4-backed ERA5 sources; support for those is planned.
Returns:
-
A xarray dataset including all the output variables you defined as your output_variables.–
Source code in reskit/solar/workflows/workflows.py
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 | |
openfield_pv_era5_unvalidated
¶
Simulation of an openfield PV openfield system based on ERA5 Data, with unvalidated default loss factor of 0.107 based on literature.
Source code in reskit/solar/workflows/workflows.py
openfield_pv_era5pure
¶
Simulation of an openfield PV openfield system based on ERA5 original Data without further disaggregation.
Source code in reskit/solar/workflows/workflows.py
openfield_pv_iconlam
¶
openfield_pv_iconlam(
placements,
icon_lam_path,
module="WINAICO WSx-240P6",
elev=300,
tracking="fixed",
inverter=None,
inverter_kwargs={},
tracking_args={},
output_netcdf_path=None,
output_variables=None,
tech_year=2050,
)
Simulation of an openfield PV openfield system based on ICON-LAM Data.
Parameters:
-
–placements¶Locations that you want to do the simulations for. Columns need to be lat (latitudes), lon (longitudes), tilt and capacity. -
–icon_lam_path¶Path to the ICON-LAM Data on your computer. Can be a single ".nc" file, or a directory containing many ".nc" files. -
–module¶Name of the module that you wanna use for the simulation. Default is Winaico Wsx-240P6 -
–elev¶Elevation that you want to model your PV system at. SChen: Or you can provide a string directory when a terrain raster can be found -
–tracking¶Determines whether your PV system is fixed or not. Default is fixed. Option 1 is 'fixed' meaning that the module does not have any tracking capabilities. Option 2 is 'single_axis' meaning that the module has single_axis tracking capabilities. -
–inverter¶Determines whether you want to model your PV system with an inverter or not. Default is None. See reskit.solar.SolarWorkflowManager.apply_inverter_losses for more usage information. -
–output_netcdf_path¶Path to a file that you want to save your output NETCDF file at. Default is None -
–output_variables¶Output variables of the simulation that you want to save into your NETCDF Outputfile. -
(tech_year¶int, default:2050) –If given in combination with the projected module str names "WINAICO WSx-240P6" or "LG Electronics LG370Q1C-A5", the effifiency will be scaled linearly to the given year. Must then be between year of market introduction for that module and 2050. Will be ignored when non-projected existing module names or specific parameters are given, can then be None. By default 2050.
Returns:
-
A xarray dataset including all the output variables you defined as your output_variables.–
Source code in reskit/solar/workflows/workflows.py
523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 | |
openfield_pv_merra_ryberg2019
¶
openfield_pv_merra_ryberg2019(
placements,
merra_path,
global_solar_atlas_ghi_path,
module="WINAICO WSx-240P6",
elev=300,
tracking="fixed",
inverter=None,
inverter_kwargs={},
tracking_args={},
output_netcdf_path=None,
output_variables=None,
tech_year=2050,
)
openfield_pv_merra_ryberg2019(placements, merra_path, global_solar_atlas_ghi_path, module="WINAICO WSx-240P6", elev=300, tracking="fixed", inverter=None, inverter_kwargs={}, tracking_args={}, output_netcdf_path=None, output_variables=None)
Simulation of an openfield PV openfield system based on MERRA Data.
Parameters:
-
–placements¶Locations where to perform simulations at. Columns need to be lat (latitudes), lon (longitudes), tilt and capacity.
-
–merra_path¶Path to the MERRA Data on your computer. Can be a single ".nc" file, or a directory containing many ".nc" files.
-
–global_solar_atlas_ghi_path¶Path to the global solar atlas ghi data on your computer.
-
–module¶Name of the module that you want to use for the simulation. Default is Winaico Wsx-240P6. See reskit.solar.SolarWorkflowManager.configure_cec_module for more usage information.
-
–elev¶Elevation that you want to model your PV system at.
-
–tracking¶Option 1 is 'fixed' meaning that the module does not have any tracking capabilities. Option 2 is 'single_axis' meaning that the module has single_axis tracking capabilities. -
–inverter¶Determines whether or not you want to model your PV system with an inverter. Default is None, meaning no inverter is assumed See reskit.solar.SolarWorkflowManager.apply_inverter_losses for more usage information
-
–output_netcdf_path¶Path to a file that you want to save your output NETCDF file at. Default is None
-
–output_variables¶Output variables of the simulation that you want to save into your NETCDF Outputfile.
-
(tech_year¶int, default:2050) –If given in combination with the projected module str names "WINAICO WSx-240P6" or "LG Electronics LG370Q1C-A5", the effifiency will be scaled linearly to the given year. Must then be between year of market introduction for that module and 2050. Will be ignored when non-projected existing module names or specific parameters are given, can then be None. By default 2050.
Returns:
-
A xarray dataset including all the output variables you defined as your output_variables.–
Source code in reskit/solar/workflows/workflows.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | |
openfield_pv_sarah_unvalidated
¶
openfield_pv_sarah_unvalidated(
placements,
sarah_path,
era5_path,
module="WINAICO WSx-240P6",
elev=300,
tracking="fixed",
inverter=None,
inverter_kwargs={},
tracking_args={},
output_netcdf_path=None,
output_variables=None,
tech_year=2050,
)
openfield_pv_sarah_unvalidated(placements, sarah_path, era5_path, module="WINAICO WSx-240P6", elev=300, tracking="fixed", inverter=None, inverter_kwargs={}, tracking_args={}, output_netcdf_path=None, output_variables=None)
Simulation of an openfield PV openfield system based on Sarah and ERA5 Data.
Parameters:
-
–placements¶Locations that you want to do the simulations for. Columns need to be lat (latitudes), lon (longitudes), tilt and capacity. -
–sarah_path¶Path to the SARAH Data on your computer. Can be a single ".nc" file, or a directory containing many ".nc" files. -
–era5_path¶Path to the ERA5 Data on your computer. Can be a single ".nc" file, or a directory containing many ".nc" files. -
–module¶Name of the module that you wanna use for the simulation. Default is Winaico Wsx-240P6 -
–elev¶Elevation that you want to model your PV system at. -
–tracking¶Determines whether your PV system is fixed or not. Default is fixed. Option 1 is 'fixed' meaning that the module does not have any tracking capabilities. Option 2 is 'single_axis' meaning that the module has single_axis tracking capabilities. -
–inverter¶Determines whether you want to model your PV system with an inverter or not. Default is None. See reskit.solar.SolarWorkflowManager.apply_inverter_losses for more usage information. -
–output_netcdf_path¶Path to a file that you want to save your output NETCDF file at. Default is None -
–output_variables¶Output variables of the simulation that you want to save into your NETCDF Outputfile. -
(tech_year¶int, default:2050) –If given in combination with the projected module str names "WINAICO WSx-240P6" or "LG Electronics LG370Q1C-A5", the effifiency will be scaled linearly to the given year. Must then be between year of market introduction for that module and 2050. Will be ignored when non-projected existing module names or specific parameters are given, can then be None. By default 2050.
Returns:
-
A xarray dataset including all the output variables you defined as your output_variables.–
Source code in reskit/solar/workflows/workflows.py
383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 | |