Skip to content

Conversation

wholmgren
Copy link
Member

@wholmgren wholmgren commented May 12, 2016

Here's an implementation of the Erbs model based on pvl_erbs.m. I was going to demonstrate this during the Santa Clara workshop, but didn't plan the time very well. Sorry.

It's nearly a 1:1 port of the MATLAB function.

As currently written, the user must supply the day of the year, but we should consider that it instead be inferred from the index of the GHI Series. A potential downside of this is that it would require that ghi is a Series, instead of a numpy array. @mikofski might have something to say about that.

I'm open to making this change now, or merging as-is.

The PR also starts a 0.3.3 whatsnew file.

A gist with a simple example...

https://gist.github.com/wholmgren/21c9a60547a3f240aeb1a1919f8829b8

Here's the diff minus the unimportant whitespace changes...

https://github.com/pvlib/pvlib-python/pull/166/files?w=0

@wholmgren wholmgren added this to the 0.3.3 milestone May 12, 2016
@wholmgren
Copy link
Member Author

I'm going to merge as-is but, as always, make an issue/PR if you want to see something different.

@wholmgren wholmgren merged commit e1bd29b into pvlib:master May 16, 2016
@wholmgren wholmgren deleted the erbstest branch May 20, 2016 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant