-
Notifications
You must be signed in to change notification settings - Fork 1.1k
read_crn
returns -99999 instead of NaN
#1372
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
Comments
@wholmgren I have added -99999 and -999999 to the list of nan values in #1368. However, I'd also be happy to implement column-specific replacement of nans. Any suggestion on how to do this? |
I see that the CRN files contain the latitude and longitude of the stations. I suppose it would make sense to parse this and output it in a metadata dictionary? I realize that outputing a tuple of |
Could be nice, but not sure how we'd handle the breaking change in a nice way. Let's address in a separate issue. |
It is possible to pass a dictionary to the
Although, currently However, they can be combined:
and then:
I tested this method and it passes all of the tests. |
Describe the bug
read_crn
fails to map -99999 toNaN
To Reproduce
Expected behavior
Should return
NaN
instead of -99999Versions:
pvlib.__version__
: 0.9.0pandas.__version__
: 1.0.3 (doesn't matter)Additional context
Documentation here says
So we should change
pvlib-python/pvlib/iotools/crn.py
Lines 112 to 117 in 1ab0eb2
to include -99999 and perhaps -999999. Or do the smarter thing as discussed in the comment.
also SolarArbiter/solarforecastarbiter-core#773
The text was updated successfully, but these errors were encountered: