rast_converter

Conversion of rasters into tables. This module provides a command line tool and a function that both ingest a raster file and produce a 3 column parquet table with coordinates and band value.

See the data_ingestion notebook for templates of this.

scalenav.rast_converter.check_crs(source)
Parameters:

source (DatasetReader)

scalenav.rast_converter.check_nodata(source)

NOT much to check actually

Parameters:

source (DatasetReader)

scalenav.rast_converter.check_path(in_path)

What are we checking ? UNDER DEV - input contains one of the desired file resolutions. - if folder file, extract all raster format files from it. - if specific file, then just use that. - some robustness to user input should be embedded here. For example when providing folder path: ‘/the/folder/with/rast/’ and /the/folder/with/rast’ as two potential accepted values. - also relative and absolute paths.

Parameters:

in_path (str)

scalenav.rast_converter.rast_convert_core(src, transform, win=None)

The core of the rast conversion can be put here in order to centralise the most efficient workflow that can be then used in the CL tool and function.