geoidlab.dem

Functions

check_bbox_contains(netcdf_file, bbox)

Check if a NetCDF file contains a bounding box

dem4geoid(bbox[, ncfile, url, cog_url, ...])

Prepare a DEM for geoid calculation.

download_custom_dem(url[, downloads_dir, ...])

Download a custom remote DEM file and return it as an xarray dataset.

download_dem_cog(bbox[, model, cog_url, ...])

Download DEM using Cloud Optimized GeoTIFF (COG) format from OpenTopography.

download_srtm30plus([url, downloads_dir, bbox])

Download SRTM30PLUS from https://topex.ucsd.edu/pub/srtm30_plus/srtm30/grd/

fetch_url(bbox)

Fetch the URLs of all relevant tiles based on the given bounding box.

get_dem_bounds(netcdf_file)

Return DEM bounds from a NetCDF file using canonical x/y coordinates.

get_readme_path()

Function to get the path of README.V11.txt, which is required for automatic DEM download.

identify_relevant_tiles(bbox, tiles)

Identify the tiles that intersect with the given bounding box.

parse_readme(readme_path)

Parse the README file to extract tile boundary information.

standardize_dem_dataset(ds[, lon_name, ...])

Rename user-provided DEM coordinate/data names to GeoidLab's canonical x/y/z schema.