Replies: 1 comment 2 replies
-
Yes.
The challenge is keeping the There are quantities that are useful for pvlib that aren't in the current map, e.g., barometric pressure, rainfall, precipitable water. PR welcome here. I also don't see any harm in adding mapping for other variables that pvlib doesn't currently use, e.g., tilted irradiance. If we can agree on how to name those quantities. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was looking over the source code and wanted to check my understanding of the variable map and its usage in srml.py.
The website link provided at
https://solardata.uoregon.edu/DataElementNumbers.html
Provides a more extensive list of column header translation than the variable map in pvlib-python. It appears pvlib-python only translates and ingests the columns that have built-in support within pvlib-python.
The comment in the code:
map_variables: bool, default: True When true, renames columns of the DataFrame to pvlib variable names where applicable. See variable :const: VARIABLE_MAP.
seems to corroborate this.
Is this correct?
The reason I was looking at this piece of code was I was hoping to dump a human readable .csv from the srml coded data file. I could write a piece of code to do this myself, but I was made aware that pvlib-python had a similar function. Is the above module the only place this exists or is there somewhere else in pvlib-python that has such a function (with 1-1 correspondence from number to string for the column headers) exists?
If this does not exist...would there be a desire for such a function (for srml) or functions for the other iotools in order to do this type of work (1-1 translation to human readable .csv files from the coded forms)?
Thanks for any feedback on this topic.
(Feels like there are probably 10 personal variations floating around that do this for srml...but maybe not).
Beta Was this translation helpful? Give feedback.
All reactions