7.5.3.2. LUT CSV Dataloader
The scalar CSV dataloader is designed to take any .csv file and cast it into a data source for mesh construction. It was primarily used in testing for loading dummy data to test performance. As such, there is no data source for this dataloader. The CSV must have two columns: ‘geometry’ and ‘data_name’. ‘geometry’ must have that title, and is a shapely wkt string. data_name can have any name, and is just the value that is associated with the polygon.
Name in config: 'lut_csv'
- class meshiphi.dataloaders.lut.lut_csv.LutCSV(bounds, params)
- import_data(bounds)
Import a list of .csv files, assign regions a value specified in config params, regions outside this are numpy nan values.
- Parameters:
bounds (Boundary) – Initial boundary to limit the dataset to
- Returns:
Dataframe of polygons with value specified in config. DataFrame has columns ‘geometry’ and data_name (read from CSV by default)
- Return type:
exclusion_df (pd.DataFrame)