You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some files/stations have multiple values for the same variable recorded by different instruments. For instance, the file from Eugene below has 6 ghi measurements and 3 dni (100x and 201x respectively).
It seems both -999 and -99.9 exist as fill values. For example, ambient temperature (9303) has a fill value of -99.9 and dhi (3001) has a fill value of -999 in this file: http://solardat.uoregon.edu/download/Archive/EUPO1704.txt
We might want to map all 100[1-9] values to ghi_[1-9], all 201[1-9] to dni_[1-9], etc. It would be convenient to also get a simple set of names like ghi and dni but the feasibility of that depends on the failure modes of the data. Maybe median of all values for which the QA flag is ok. So a file with 3 GHI columns labeled 1001, 1002, 1003 would produce a DataFrame with 4 columns: ghi_1, ghi_2, ghi_3, ghi where ghi = data.filter(like='ghi').median()
@cwhanse@adriesse are there recommended algorithms for how to combine multiple measurements of the same irradiance quantities from a single location?
Probably ok to set nans like data[data < -99] = np.nan.
depends on the instruments in use. For the same quality/type of instrument, it makes sense to average the measurements (regarding the differences among instruments as random error). It does not make sense to average among different instruments (e.g., photodiodes and thermopile pyranometers).
Good point on instrument type. I don't see a simple way to handle this for the UO data set based only on the metadata on their website. Maybe they have more available offline. For now I suggest we move forward with a PR that simply maps the tsv columns like 1001, 1002, 1003 to a DataFrame with columns like ghi_1, ghi_2, ghi_3.
Activity
lboeman commentedon Sep 26, 2018
A couple more challenges I have discovered:
wholmgren commentedon Sep 26, 2018
We might want to map all
100[1-9]values toghi_[1-9], all201[1-9]todni_[1-9], etc. It would be convenient to also get a simple set of names likeghianddnibut the feasibility of that depends on the failure modes of the data. Maybe median of all values for which the QA flag is ok. So a file with 3 GHI columns labeled1001, 1002, 1003would produce a DataFrame with 4 columns:ghi_1, ghi_2, ghi_3, ghiwhereghi = data.filter(like='ghi').median()@cwhanse @adriesse are there recommended algorithms for how to combine multiple measurements of the same irradiance quantities from a single location?
Probably ok to set nans like
data[data < -99] = np.nan.cwhanse commentedon Sep 26, 2018
depends on the instruments in use. For the same quality/type of instrument, it makes sense to average the measurements (regarding the differences among instruments as random error). It does not make sense to average among different instruments (e.g., photodiodes and thermopile pyranometers).
wholmgren commentedon Sep 26, 2018
Good point on instrument type. I don't see a simple way to handle this for the UO data set based only on the metadata on their website. Maybe they have more available offline. For now I suggest we move forward with a PR that simply maps the tsv columns like
1001, 1002, 1003to a DataFrame with columns likeghi_1, ghi_2, ghi_3.