def open(cls, path, crs=None): _grd = grd.read(path, crs=crs) _grd['nodes'] = { id: (coords, -val) for id, (coords, val) in _grd['nodes'].items() } return cls(**_grd)
def open(cls, file: Union[str, os.PathLike], crs: Union[str, CRS] = None): return cls(**grd.read(pathlib.Path(file), boundaries=False))
def open(cls, path, crs=None): _grd = grd.read(path, crs=crs) _grd['nodes'].iloc[:, 2:] *= -1 return cls(**_grd)