Python API# Query Classes Query Enums SquashingEnum Constants Methods Query() initialize(models: list(Model), values: list(str), input_crs: str) set_squash_min_elev(min_elev: float) set_squashing(squash_type: SquashingEnum) query_top_elevation(points: numpy.ndarray) query_topobathy_elevation(points: numpy.ndarray) query(points: numpy.ndarray) Model Enums ModelMode DataLayout Read-only Attributes Methods Model() set_input_crs(value: str) open(filename: str, mode: ModelMode) close() load_metadata() initialize() get_info() contains(points: numpy.ndarray) query_top_elevation(points: numpy.ndarray) query_topobathy_elevation(points: numpy.ndarray) query(points: numpy.ndarray) ModelInfo Methods ModelInfo() Read-only Attributes ErrorHandler Enums StatusEnum Methods ErrorHandler() reset_sttus() get_status() Examples Query Example MetaData Example Vertical Profiles Example Demonstration with the USGS SF-CVM Model creation Classes Applications App Data Members Methods App main(**kwargs) initialize(config_filenames) Core Model Python Object Data Members Methods Model(config) save_domain() init_top_surface() save_top_surface(elevation, batch=None) init_topography_bathymetry() save_topography_bathymetry(elevation, batch=None) init_block(block) save_block(block, values, batch=None) update_metadata() get_attributes() Block Python Object Data Members Methods Block(name, model_metadata, config) get_dims() get_batches(batch_size) generate_points(top_surface, batch) get_surface(surface, batch=None) get_attributes() Surface Python Object Data Members Methods Surface(name, model_metadata, config, storage) get_dims() get_batches(batch_size) generate_points(batch=None) get_attributes() DataSrc Python Object Methods DataSrc() initialize() get_metadata() get_top_surface(points) get_topography_bathymetry(points) get_values(block, top_surface, topo_bathy, batch=None) Data Sources CSV Data Source CSV DataSrc Python Object Data Members Methods CSVFile(config) initialize() get_metadata() get_top_surface(points) get_topography_bathymetry(points) get_values(block, top_surface, topo_bathy, batch=None) IRIS EMC Data Source IRIS EMC DataSrc Python Object Data Members Methods EMCNetCDF(config) initialize() get_metadata() get_top_surface(points) get_topography_bathymetry(points) get_values(block, top_surface, topo_bathy, batch=None) EarthVision Data Source EarthVision DataSrc Python Object Data Members Methods DataSrc(config) initialize() get_metadata() get_top_surface(points) get_topography_bathymetry(points) get_values(block, top_surface, topo_bathy, batch=None) EarthVision API Python Object Data Members Methods EarthVisionAPI(model_dir, env) ev_facedump(filename_faces) ev_label(filename_values, filename_points, filename_model, dtype, converters) ev_fp(formula, filename_out) Input/Output HDF5Storage Python Object Data Members Methods HDF5Storage(filename) save_domain(domain) create_surface(surface) save_surface_metadata(surface) save_surface(surface, elevation, batch=None) load_surface(surface, batch=None) create_block(block) save_block_metadata(block) save_block(block, data, batch=None) Utilities Batch Python Objects BatchGenerator2D Data Members Methods BatchGenerator2D(num_x, num_y, max_nvalues=None) __str__() __iter__() __next__() BatchGenerator3D Data Members Methods BatchGenerator3D(num_x, num_y, num_z, max_nvalues=None) __str__() __iter__() __next__() Configuration Python Functions Functions string_to_list(list_string, delimiter=”,”) get_config(filenames, keep_case=True, verbose=False) Units Python Functions Functions length_scale(name) Examples