Reading and writing files#

Readers#

open_geodataset(loc_path, *[, data_path, ...])

Open and combine geometry location GIS file and timeseries file in a xr.Dataset.

open_mfcsv(paths, concat_dim, *[, ...])

Open multiple csv files as single Dataset.

open_mfraster(uris, *[, chunks, concat, ...])

Open multiple gdal-readable files as single Dataset with geospatial attributes.

open_nc(filepath, **kwargs)

Read a netcdf file.

open_ncs(filename_template, root, **kwargs)

Read netcdf files at <root>/<file> and return as dict of xarray.Dataset.

open_raster(uri, *[, mask_nodata, chunks, ...])

Open a gdal-readable file with rasterio based on.

open_raster_from_tindex(tindex_path, *[, ...])

Read and merge raster tiles.

open_timeseries_from_table(path, *[, name, ...])

Open timeseries csv or parquet file and parse to xarray.DataArray.

open_vector(path, *[, driver, crs, dst_crs, ...])

Open fiona-compatible geometry, csv, parquet, excel or xy file and parse it.

open_vector_from_table(path, *[, driver, ...])

Read point geometry files from csv, parquet, xy or excel table files.

read_toml(path)

Read toml file and return as dict.

read_workflow_yaml(path[, modeltype, ...])

Read HydroMT workflow yaml file.

read_yaml(path)

Read yaml file and return as dict.

Writers#

write_nc(ds, file_path, *[, compress, ...])

Write xarray.Dataset and/or xarray.DataArray to netcdf file.

write_region(region, file_path, *[, to_wgs84])

Write the model region to a file.

write_toml(path, data)

Write a dictionary to a toml formatted file.

write_xy(path, gdf[, fmt])

Write geopandas.GeoDataFrame with Point geometries to point xy files.

write_yaml(path, data)

Write a dictionary to a yaml formatted file.