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
{{ message }}
Repository navigation
Improve docstring for iotools.tmy.read_tmy3 and read_tmy2 #714
@AdamRJensen I wish I'd listed specifics when I opened this issue. I think 2, probably 3, and 4 are fixed in #1494. 5 is similar to 1, in that iotools.read_tmy3 returns with column names consistent with TMY3 documentation, but not with pvlib internal variables. In contrast, iotools.read_epw uses pvlib-python names where the columns are a pvlib quantity.
I am not advocating for read_tmy3 to return pvlib-python names; keeping TMY3 names helps with debugging, maintenance, etc. Maybe a tmy3_to_pvlib function that renames or copies certain columns would be appreciated.
The read_tmy3 function certainly shouldn't only return pvlib variable names, but I suppose it is desirable to have the map_variables options as many of the other iotools? Ideally, I think all the iotools functions should have map_variables=True by default.
I would suggest we deprecate the recolumn argument (which removes the units from the column names) and instead add map_variables (which would map the original column names to pvlib names). Thoughts?
recolumn (bool, default True) – If True, apply standard names to
TMY3 columns. Typically this results in stripping the units from the column name.
The description also seems misleading, as recolumn does not apply the pvlib "standard names"..
@cwhanse@wholmgren Can I go ahead and close this issue and open a new issue/PR concerning the deprecation of rename_columns and addition of map_variables to the read_tmy3 function?
Activity
AdamRJensen commentedon Aug 1, 2022
Hi @cwhanse - do you know how many of these issues are still relevant (besides the variable mapping which I know is lacking)?
cwhanse commentedon Aug 1, 2022
@AdamRJensen I wish I'd listed specifics when I opened this issue. I think 2, probably 3, and 4 are fixed in #1494. 5 is similar to 1, in that
iotools.read_tmy3returns with column names consistent with TMY3 documentation, but not with pvlib internal variables. In contrast,iotools.read_epwuses pvlib-python names where the columns are a pvlib quantity.I am not advocating for
read_tmy3to return pvlib-python names; keeping TMY3 names helps with debugging, maintenance, etc. Maybe atmy3_to_pvlibfunction that renames or copies certain columns would be appreciated.AdamRJensen commentedon Aug 2, 2022
The
read_tmy3function certainly shouldn't only return pvlib variable names, but I suppose it is desirable to have themap_variablesoptions as many of the other iotools? Ideally, I think all the iotools functions should havemap_variables=Trueby default.cwhanse commentedon Aug 2, 2022
Oh yes I had forgotten about the
map_variablescapability. I agree, it would be good to add toread_tmy3. In a new PR, though.I wonder what use is being made of the current
rename_columns. The new names are more readable. Are they also internal names for some other software?wholmgren commentedon Aug 2, 2022
as you may know, they match MATLAB PVLIB's tmy reader. I'm not aware of others.
AdamRJensen commentedon Aug 2, 2022
I would suggest we deprecate the
recolumnargument (which removes the units from the column names) and instead addmap_variables(which would map the original column names to pvlib names). Thoughts?The description also seems misleading, as
recolumndoes not apply the pvlib "standard names"..AdamRJensen commentedon Aug 5, 2022
@cwhanse @wholmgren Can I go ahead and close this issue and open a new issue/PR concerning the deprecation of
rename_columnsand addition ofmap_variablesto theread_tmy3function?