Skip to content

Commit ec96c4b

Browse files
authored
Module Library Fall 2024 (#1913)
* Update module library files * Test results for new module library
1 parent 3f5036d commit ec96c4b

11 files changed

+85919
-16870
lines changed

deploy/libraries/CEC Modules.csv

Lines changed: 20743 additions & 16857 deletions
Large diffs are not rendered by default.

samples/CEC Module and Inverter Libraries/CEC Modules/CEC Modules 2024-11-14/Bad Modules 2024-Nov-15_09-53.csv

Lines changed: 1341 additions & 0 deletions
Large diffs are not rendered by default.

samples/CEC Module and Inverter Libraries/CEC Modules/CEC Modules 2024-11-14/CEC Modules 2024-Nov-15_09-53.csv

Lines changed: 20746 additions & 0 deletions
Large diffs are not rendered by default.

samples/CEC Module and Inverter Libraries/CEC Modules/CEC Modules 2024-11-14/PV_Module_List_Full_Data_ADA-2024-11-12.csv

Lines changed: 22084 additions & 0 deletions
Large diffs are not rendered by default.

samples/CEC Module and Inverter Libraries/CEC Modules/CEC Modules 2024-11-14/cec_modules_test_2024-9-11_2024-Nov-16.csv

Lines changed: 20743 additions & 0 deletions
Large diffs are not rendered by default.

samples/CEC Module and Inverter Libraries/CEC Modules/cec_modules_test.lk

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ Revised 2/23/22
1717

1818
function set_inverter_params()
1919
{
20+
21+
//set('vdcmax_inverter',1500);
22+
//set('inv_ds_mppt_hi',1500);
23+
//set('inv_ds_vdcmax',1500);
24+
2025
pmp = get( 'cec_p_mp_ref' );
2126
voc = get('cec_v_oc_ref');
2227

@@ -25,12 +30,17 @@ function set_inverter_params()
2530
vmppt_min = floor(voc *0.25);
2631
vdco = round(( vmppt_max + vmppt_min ) / 2);
2732

33+
2834
set('inv_ds_paco',paco);
29-
set('inv_ds_mppt_hi',vmppt_max);
30-
set('inv_ds_mppt_low',vmppt_min);
35+
set('inv_ds_vdcmax',vmppt_max);
3136
set('inv_ds_vdco',vdco);
3237
set('inv_ds_idcmax',ceil(pmp/vmppt_max));
38+
set('inv_ds_mppt_hi',vmppt_max);
39+
set('inv_ds_mppt_low',vmppt_min);
3340

41+
set('vdcmax_inverter',vmppt_max);
42+
set('mppt_hi_inverter', vmppt_max);
43+
set('mppt_low_inverter', vmppt_min);
3444
}
3545

3646
function run()
@@ -81,4 +91,4 @@ for ( i=1; i<#modules; i++ )
8191

8292
outln('Done.');
8393
csvwrite( f_name(), results );
84-
browse(f_name());
94+
browse(f_name());
Binary file not shown.

samples/CEC Module and Inverter Libraries/CEC Modules/readme.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This document explains how to build the SAM CEC module library file from the CEC
1212

1313
2. Go to https://solarequipment.energy.ca.gov/Home/PVModuleList and click the **Download Excel file** link to the working folder.
1414

15-
3. Change the Excel file name with the last CEC update date in the file name `PV_Module_List_Full_Data_ADA-yyyy-m-d.xlsx`.
15+
3. Change the Excel file name with the last CEC update date (from Row 2 in the workbook) in the file name `PV_Module_List_Full_Data_ADA-yyyy-m-d.xlsx`.
1616

1717
### Step 2: Manually process CEC xlsx file
1818

@@ -30,29 +30,37 @@ This step could be automated in Excel, but this process is a good excuse to do a
3030

3131
5. Delete soft line breaks LF `\n` in header rows so that there is one header row that begins with "Manufacturer" and ends with "Last Update." Show hidden characters in text editor to find single LF in first row. (Note remaining lines use CRLF.) (This step is new after CEC added in-cell linebreaks to some header cells after 3/1/2019.)
3232

33-
5. Search and replace LF followed by comma `\n,` with nothing to remove soft line breaks from columns (assumes Windows CRLF line endings).
33+
5. Search and replace LF followed by comma `\n,` with nothing to remove soft line breaks from columns (assumes Windows CRLF line endings). Repeat until all instances are found.
34+
35+
6. Search and replace comma followed by LF `,\n` with nothing to remove soft line breaks from columns (assumes Windows CRLF line endings). Repeat until all instances are found.
36+
37+
6. Search and replace space followed by LF ` \n` with comma `,` to fix some Excel cells with empty line in cell (see Trina modules).
38+
39+
6. Search and replace space followed by comma space ` ,` with comma `,`.
40+
41+
6. Search and replace comma followed by space `, ` with comma `,`.
3442

3543
5. Search and replace Greek characters in column headings row: alpha, beta, gamma. For example, replace βVoc with betaVoc. Should be one instance of gamma, and two instances each of alpha and beta.
3644

37-
5. Use regular expression option to replace `[^\x00-\x7F]+` with empty string. This removes non-ASCII characters that cause problems in SAM UI (and may cause problems with LK reading data from file).
45+
5. Use regular expression search option to replace `[^\x00-\x7F]+` with empty string. This removes non-ASCII characters that cause problems in SAM UI (and may cause problems with LK reading data from file).
3846

39-
6. Save file and close text editor.
47+
6. Save CSV file and close text editor.
4048

41-
7. Open file in Excel.
49+
7. Open CSV file in Excel.
4250

4351
8. Search and replace all commas `,` with nothing. (Can't do this in text editor because don't want to change column delimiters, only commas in some text fields.)
4452

4553
9. Delete units row, Row 2.
4654

47-
10. Save and close the file.
55+
10. Save and close CSV file.
4856

4957
11. Open CSV file in text editor remove double quotes `"` by replacing them with nothing. (If the file is tab-delimited, replace tabs `\t` with commas `,`.)
5058

51-
12. Save file and close editor.
59+
12. Save CSV file and close editor.
5260

5361
### Step 3: Run LK script to convert worksheet data into SAM library file
5462

55-
1. Start SAM and open the latest version of the Update CEC Modules script (`update_cec_modules_2020.lk` as of this writing).
63+
1. Start SAM and open the latest version of the Update CEC Modules script (`update_cec_modules_2023.lk` as of this writing).
5664

5765
2. Set `version` to the SAM version you are using to run the script.
5866

samples/CEC Module and Inverter Libraries/CEC Modules/update_cec_modules_2023.lk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
*/
1515

16-
version = '2023.10.31';
17-
date = '11/16/2022';
16+
version = '2023.12.17';
17+
date = '11/14/2024';
1818

1919
function run_6par_gen( T )
2020
{

0 commit comments

Comments
 (0)