-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add cams.get_mcclear function #1172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Related to issue #1015.
Simplified how the start and end line of the data is determined. Improved documentation, e.g. moved constants outside of function.
Add bsrn file and read_bsrn function
Add bsrn to iotools
Co-authored-by: Cliff Hansen <[email protected]>
The previous values in the COL_SPEC variables were not all correct, leading to incorrect parsing of the data.
File is not complete, as I'm awaiting permission from BSRN to upload test file
Previously the month and year of the file were determined from the filename. This has now been changed such that the month/year is found from within the file's metadata section (second line).
Air temperature was listed as air_temperature in the docstring instead of temp_air.
All logical records after LR0100 have been removed to reduce space (be below 25 MB), but also to test the functionality of files with few logical records.
Co-authored-by: Kevin Anderson <[email protected]>
Adds code for retrieving CAMS McClear clear sky radiation
This reverts commit ec5edde.
@wholmgren I'm back! This time using GitHub Desktop, so hopefully, the code should have Unix end of line characters. I'm unsure of why the previous commits show up in the this pull request... do you generally delete a forked repository after a successful pull request and refork it for additional pull requests? I've asked the developing team of the CAMS radiation and McClear services, and have been informed that there is and will not be any demo API email/access. So if tests have to be implemented, we need to register a PVLIB email. Only a registered email address is necessary and no password will ever be public. The function includes some very convenient features, including the label, integrated, and map_variable arguments, making it very intuitive for Python users. I'd very much like a critical look at the function and feedback on how it can be improved. |
Hi @AdamRJensen, thanks for this contribution!
Sometimes previous commits show up if your branch is not sync'd with master. Also it looks like this PR is from your "master" branch of your fork rather than a "feature branch" which in my opinion makes it more difficult to manage your pull requests.
|
@AdamRJensen also I'm wondering if this PR replaces the existing |
docs/sphinx/source/api.rst
for API changes.docs/sphinx/source/whatsnew
for all changes. Includes link to the GitHub Issue with:issue:`num`
or this Pull Request with:pull:`num`
. Includes contributor name and/or GitHub username (link with:ghuser:`user`
).Add a function to retrieve CAMS McClear clear-sky radiation as previously unsuccessfully attempted in #271, #274, #279.