def create_filepath(ds, root_path="."):
    """
    Generate a filepath when given an xarray dataset
    """
    varname = [x for x in ds.data_vars][0]

    start = ds.generalVerticalLayer.data[0]
    end = ds.generalVerticalLayer.data[-1]
    filepath = f"{root_path}/{varname}_{start}_{end}.nc"
    return filepath