pypsa.Network.import_from_netcdf

pypsa.Network.import_from_netcdf#

Network.import_from_netcdf(path: str | Path | xr.Dataset, skip_time: bool = False) None#

Import network data from netCDF file or xarray Dataset at path.

path may also be a cloud object storage URI if cloudpathlib is installed.

Parameters:
  • path (string|xr.Dataset) – Path to netCDF dataset or instance of xarray Dataset. The string could be a URL.

  • skip_time (bool, default False) – Skip reading in time dependent attributes