Skip to content

io module: add macc-rad reader #271

Closed
@dacoex

Description

@dacoex

Upstream data source
http://www.soda-pro.com/web-services/radiation/cams-radiation-service

Git repository with examples
https://github.com/dacoex/pvlib_data/tree/master/MACC-RAD
(Soda-pro website was changed after the example data was downloaded.)

Related
Issues: #261 & #29
PR: #270

Previous comments
taken from:
#270 (comment)

The header section of the maccrad file looks like it could be of variable length, so you probably don't want to hardcode the 40. The leading # can be used to let read_csv skip the variable header section, but unfortunately the column names would be lost that way too. Is the number of columns always the same? In that case I would suggest using header=None and providing a standard name for each column.

Your dateparser looks like it returns text. Does this produce a datetime index for the dataframe?

I the time zone for the data in the file? "# Time reference: Universal time (UT)" Maybe the dataframe could be localized with this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions