nrgpy.convert.convert_rld module#
- class nrgpy.convert.convert_rld.local(rld_dir: str = '', out_dir: str = '', encryption_pass: str = '', hex_key: str = '', filename: str = '', sympro_path: str = '"C:/Program Files (x86)/Renewable NRG Systems/SymPRO Desktop/SymPRODesktop.exe"', process_type: str = 'convert', convert_type: str = 'meas', nec: str = '', site_filter: str = '', site_file: str = '', **kwargs)[source]#
Bases:
object
For handling NRG SymphoniePRO Data Logger raw data files in the *.rld format.
This method uses locally installed SymphoniePRO Desktop software to convert *.rld files to txt format (tab-delimited-text).
- Parameters:
- rld_dirstr, optional (path-like)
specify directory. Note for unc values, you will need to escape all forward slashes, e.g. rld_dir = “\networktechsupportdata" or use the r’path odir’ approach
- out_dirstr, optional (path-like)
see note for rld_dir.
- encryption_passstr
specify data encryption password if logger is set up for that.
- hex_keystr
specify if using hex data encryption key
- sympro_pathstr
default is “C:Program Files (x86)Renewable NRG SystemsSymPRO DesktopSymPRODesktop.exe”
- process_typestr
[convert], or import
- convert_typestr
‘meas’, alternately specify ‘comm’, ‘diag’, ‘sample’, or ‘events’
- necstr
path to nec file
- site_filterstr
specify part or all of the file you’d like to filter on, like site_filter=’123456_2018-09’ would filter on site 123456 and only the month of September in 2018.
- site_filebool or str
set to True to use local ndb site file, or set to path to an alternate ndb site file
Examples
Convert a folder of RLD files to Text with SymphoniePRO Desktop Software
>>> from nrgpy.convert_rld import local >>> converter = local( rld_dir='/path/to/rld/files', out_dir=/path/to/txt/outputs, file_filter='123456_2020-01', # for files from January 2020 ) >>> converter.convert()