def _transform_pv_systems(pv_systems: xr.Dataset) -> xr.Dataset:
    'Transform the system locations into the same coordinate system used by UKV'
    (system_latitudes, system_longitudes) = (pv_systems['latitude'].values, pv_systems['longitude'].values)
    wgs84 = ccrs.Geodetic()
    ukv_crs = ccrs.OSGB(approx=False)
    locs = ukv_crs.transform_points(src_crs=wgs84, x=np.asanyarray(system_longitudes), y=np.asanyarray(system_latitudes))[:, :(- 1)]
    new_coords = {'easting': (['system_id'], locs[:, 0].astype('int32')), 'northing': (['system_id'], locs[:, 1].astype('int32'))}
    return pv_systems.assign_coords(new_coords)
Transform the system locations into the same coordinate system used by UKV
def _transform_pv_systems(pv_systems: xr.Dataset) -> xr.Dataset:
    
    (system_latitudes, system_longitudes) = (pv_systems['latitude'].values, pv_systems['longitude'].values)
    wgs84 = ccrs.Geodetic()
    ukv_crs = ccrs.OSGB(approx=False)
    locs = ukv_crs.transform_points(src_crs=wgs84, x=np.asanyarray(system_longitudes), y=np.asanyarray(system_latitudes))[:, :(- 1)]
    new_coords = {'easting': (['system_id'], locs[:, 0].astype('int32')), 'northing': (['system_id'], locs[:, 1].astype('int32'))}
    return pv_systems.assign_coords(new_coords)