- Posts: 2
API instructions - total energy
- smu04sew
- Topic Author
Less
More
07 Mar 2017 16:01 #5211
by smu04sew
API instructions - total energy was created by smu04sew
In the API instructions (
nsrdb.nrel.gov/api-instructions
) it has this formula (which looks like it's calculating the capacity factor):
# Divide sum of generation by the number of periods times the system size
df.sum() / (525600/int(interval) * system_capacity)
where the system_capacity is in kW (even though it is shown in the comments as MW - see sam.nrel.gov/node/73432 ).
However 'generation' is calculated in MW earlier on:
df = np.array(ssc.data_get_array(dat, 'gen'))
Does that mean that the formula should read:
df.sum() / (525600/int(interval) * (system_capacity/1000) ) ?
# Divide sum of generation by the number of periods times the system size
df.sum() / (525600/int(interval) * system_capacity)
where the system_capacity is in kW (even though it is shown in the comments as MW - see sam.nrel.gov/node/73432 ).
However 'generation' is calculated in MW earlier on:
df = np.array(ssc.data_get_array(dat, 'gen'))
Does that mean that the formula should read:
df.sum() / (525600/int(interval) * (system_capacity/1000) ) ?
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5415
08 Mar 2017 15:52 #5212
by pgilman
Replied by pgilman on topic API instructions - total energy
Hello,
The API example is provided to illustrate how to use the NSRDB data with the SAM SDK. You should perform your own dimenstional analysis to ensure that the units in your code are correct.
Best regards,
Paul.
The API example is provided to illustrate how to use the NSRDB data with the SAM SDK. You should perform your own dimenstional analysis to ensure that the units in your code are correct.
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
Moderators: pgilman