def _transform_pv_systems_pyproj(pv_systems: xr.Dataset) -> xr.Dataset:
    'Transform the system locations into the same coordinate system used by UKV, using pyproj'
    import pyproj
    (system_latitudes, system_longitudes) = (pv_systems['latitude'].values, pv_systems['longitude'].values)
    transformer = pyproj.Transformer.from_crs('epsg:4326', 'epsg:27700', always_xy=True)
    locs = transformer.transform(np.asanyarray(system_longitudes), np.asanyarray(system_latitudes))
    print(locs)
    new_coords = {'easting': (['system_id'], locs[0]), 'northing': (['system_id'], locs[1])}
    return pv_systems.assign_coords(new_coords)
Transform the system locations into the same coordinate system used by UKV, using pyproj
def _transform_pv_systems_pyproj(pv_systems: xr.Dataset) -> xr.Dataset:
    
    import pyproj
    (system_latitudes, system_longitudes) = (pv_systems['latitude'].values, pv_systems['longitude'].values)
    transformer = pyproj.Transformer.from_crs('epsg:4326', 'epsg:27700', always_xy=True)
    locs = transformer.transform(np.asanyarray(system_longitudes), np.asanyarray(system_latitudes))
    print(locs)
    new_coords = {'easting': (['system_id'], locs[0]), 'northing': (['system_id'], locs[1])}
    return pv_systems.assign_coords(new_coords)