Identifier
solar_power
Purpose
Reads forecast irradiance input for all solar farm sites. Applies static data mining models developed for each farm to convert forecast irradiance to forecast power.
Command Usage
usage: /home/sunspot/bin/solar_power [-d debug_level] [-l log_file] issue_time cdl_file config_file interp_input_file output_file ascii_output_file
-d debug_level: set a debug level between 0 0. Debug level 0 means no debugging statements.
-l log_file: write log messages to log_file
Sample Command Invocation
solar_power -l /d1/sunspot/data/log/solar_power_xcel_sanl.asc 201602180130 /d1/sunspot/data/static/cdl/solar_power.cdl /d1/sunspot/data/static/config/solar_power_xcel-sanl.cfg /d2/dicast/nt/solar_fcst/solar_mesh_fcst/20160218/solar_mesh_fcst.20160218.0130.nc /d1/sunspot/data/solar_power_fcst/XCEL_SANL/20160218/XCEL_SANL.20160218.0130.nc /d1/sunspot/data/solar_power_ascii_fcst/XCEL_SANL/20160218/XCEL_SANL.20160218.0130.csv
Breakdown
- solar_power: executable name
- -l /d1/sunspot/data/log/solar_power_xcel_sanl.asc: log file path
- 201602180130: 20160218 - yyyymmdd, 0130 hhmm UTC
- /d1/sunspot/data/static/cdl/solar_power.cdl: netcdf cdl file for output
- /d1/sunspot/data/static/config/solar_power_xcel-sanl.cfg: configuration file
- /d2/dicast/nt/solar_fcst/solar_mesh_fcst/20160218/solar_mesh_fcst.20160218.0130.nc: input irradiance forecast file
- /d1/sunspot/data/solar_power_fcst/XCEL_SANL/20160218/XCEL_SANL.20160218.0130.nc: output netcdf power forecast file
- /d1/sunspot/data/solar_power_ascii_fcst/XCEL_SANL/20160218/XCEL_SANL.20160218.0130.csv: output ascii power forecast file
Command Frequency
- Run once per hour right after irradiance forecast file is generated
Processing Steps
- Read configuration file
- Configuration file consists of:
- NetCDF dimension and field names
- Data mining model information
- Farm model information such as farm name, directory for models, latitude, longitude, etc.
- Farm model fields such as year, month, day, solar azimuth, solar elevation, ghi, power
- Read irradiance forecast input file
- Match site identifiers in forecast input file to data mining models at specific farms
- Convert irradiance to power
- Extract irradiance and other relevant predictor data to use in conversion
- Perform conversion by applying appropriate Cubist model to extracted data
- Write output
- Write netcdf output
- Write ascii output