Skip to content

add UO SRML data reader #589

Closed
Closed

Description

@wholmgren

Add data reader for the University of Oregon Solar Radiation Monitoring Laboratory archive http://solardat.uoregon.edu/

Primarily interested in the 1 minute data sets. Challenges include

  • translating numeric columns to pvlib names
  • stitching together files across months
  • stitching together files when the data format at a station changes
  • determining metadata for a station

This should be a new module under the pvlib.iotools subpackage proposed in #272.

cc @lboeman

Activity

  1. added
    solarfx2
    on Sep 21, 2018
  2. added this to the 0.6.1 milestone on Sep 21, 2018
  3. lboeman commented on Sep 26, 2018

    @lboeman
    Contributor

    A couple more challenges I have discovered:

    • 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
  4. wholmgren commented on Sep 26, 2018

    @wholmgren
    MemberAuthor

    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.

  5. cwhanse commented on Sep 26, 2018

    @cwhanse
    Member

    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).

  6. wholmgren commented on Sep 26, 2018

    @wholmgren
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementiosolarfx2

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions