Replies: 2 comments 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.
-
It looks like pull requests can only be submitted after there is a change in the code base. So I think I will hold off on that till I get this all working (since it is only like 60 entries in a dictionary). What I do want to get a comment on is my naming scheme. I am going to post my proposed structure under issues. I also just found the Nomenclature page in yours scheme which is very helpful. I am going to try follow that where ever possible. Hopefully issues is the right place to put that and get comments. |
Beta Was this translation helpful? Give feedback.
-
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