openspi.nrel

Functions

nrel_delete_sp(folder_path)

Deletes .sp files. Specific use: folder contains both .sp and .csv files

nrel_autoname(folder_path)

Creates an export name according to specific naming conventions used in the

Module Contents

openspi.nrel.nrel_delete_sp(folder_path)

Deletes .sp files. Specific use: folder contains both .sp and .csv files for each spectrum. OpenSpecy does not accept .sp files, so they must be removed from the folder. Note that these files were backed up elsewhere before deletion.

Parameters:

folder_path (str) – The complete path to the folder containing .csv files to be processed.

Return type:

None.

openspi.nrel.nrel_autoname(folder_path)

Creates an export name according to specific naming conventions used in the WaterPACT project at NREL.

Parameters:

folder_path (str) – The complete path to the folder containing .csv files to be processed.

Returns:

file_name – A file name based on the name of the first file in the folder.

Return type:

str