8000 fix table line lengtsh, remove #noqa, use grid (#852) · pvlib/pvlib-python@6dbac00 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6dbac00

Browse files
mikofskiwholmgren
authored andcommitted
fix table line lengtsh, remove #noqa, use grid (#852)
1 parent d635c09 commit 6dbac00

File tree

1 file changed

+141
-40
lines changed

1 file changed

+141
-40
lines changed

pvlib/iotools/epw.py

Lines changed: 141 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -68,46 +68,147 @@ def read_epw(filename, coerce_year=None):
6868
=============== ====== =========================================
6969
7070
71-
============================= ================================================================================================================================================================================================================== # noqa: E501
72-
EPWData field description
73-
============================= ==================================================================================================================================================================================================================
74-
index A pandas datetime index. NOTE, times are set to local standard time (daylight savings is not included). Days run from 0-23h to comply with PVLIB's convention
75-
year Year, from original EPW file. Can be overwritten using coerce function.
76-
month Month, from original EPW file
77-
day Day of the month, from original EPW file.
78-
hour Hour of the day from original EPW file. Note that EPW's convention of 1-24h is not taken over in the index dataframe used in PVLIB.
79-
minute Minute, from original EPW file. Not used.
80-
data_source_unct Data source and uncertainty flags. See [1]_, chapter 2.13
81-
temp_air Dry bulb temperature at the time indicated, deg C
82-
temp_dew Dew-point temperature at the time indicated, deg C
83-
relative_humidity Relatitudeive humidity at the time indicated, percent
84-
atmospheric_pressure Station pressure at the time indicated, Pa
85-
etr Extraterrestrial horizontal radiation recv'd during 60 minutes prior to timestamp, Wh/m^2
86-
etrn Extraterrestrial normal radiation recv'd during 60 minutes prior to timestamp, Wh/m^2
87-
ghi_infrared Horizontal infrared radiation recv'd during 60 minutes prior to timestamp, Wh/m^2
88-
ghi Direct and diffuse horizontal radiation recv'd during 60 minutes prior to timestamp, Wh/m^2
89-
dni Amount of direct normal radiation (modeled) recv'd during 60 mintues prior to timestamp, Wh/m^2
90-
dhi Amount of diffuse horizontal radiation recv'd during 60 minutes prior to timestamp, Wh/m^2
91-
global_hor_illum Avg. total horizontal illuminance recv'd during the 60 minutes prior to timestamp, lx
92-
direct_normal_illum Avg. direct normal illuminance recv'd during the 60 minutes prior to timestamp, lx
93-
diffuse_horizontal_illum Avg. horizontal diffuse illuminance recv'd during the 60 minutes prior to timestamp, lx
94-
zenith_luminance Avg. luminance at the sky's zenith during the 60 minutes prior to timestamp, cd/m^2
95-
wind_direction Wind direction at time indicated, degrees from north (360 = north; 0 = undefined,calm)
96-
wind_speed Wind speed at the time indicated, meter/second
97-
total_sky_cover Amount of sky dome covered by clouds or obscuring phenonema at time stamp, tenths of sky
98-
opaque_sky_cover Amount of sky dome covered by clouds or obscuring phenonema that prevent observing the sky at time stamp, tenths of sky
99-
visibility Horizontal visibility at the time indicated, km
100-
ceiling_height Height of cloud base above local terrain (7777=unlimited), meter
101-
present_weather_observation Indicator for remaining fields: If 0, then the observed weather codes are taken from the following field. If 9, then missing weather is assumed.
102-
present_weather_codes Present weather code, see [1], chapter 2.9.1.28
103-
precipitable_water Total precipitable water contained in a column of unit cross section from earth to top of atmosphere, cm. Note that some old *_TMY3.epw files may have incorrect unit if it was retrieved from www.energyplus.net.
104-
aerosol_optical_depth The broadband aerosol optical depth per unit of air mass due to extinction by aerosol component of atmosphere, unitless
105-
snow_depth Snow depth in centimeters on the day indicated, (999 = missing data)
106-
days_since_last_snowfall Number of days since last snowfall (maximum value of 88, where 88 = 88 or greater days; 99 = missing data)
107-
albedo The ratio of reflected solar irradiance to global horizontal irradiance, unitless
108-
liquid_precipitation_depth The amount of liquid precipitation observed at indicated time for the period indicated in the liquid precipitation quantity field, millimeter
109-
liquid_precipitation_quantity The period of accumulation for the liquid precipitation depth field, hour
110-
============================= ==================================================================================================================================================================================================================
71+
+-------------------------------+-----------------------------------------+
72+
| EPWData field | description |
73+
+===============================+=========================================+
74+
| index | A pandas datetime index. NOTE, times are|
75+
| | set to local standard time (daylight |
76+
| | savings is not included). Days run from |
77+
| | 0-23h to comply with PVLIB's convention.|
78+
+-------------------------------+-----------------------------------------+
79+
| year | Year, from original EPW file. Can be |
80+
| | overwritten using coerce function. |
81+
+-------------------------------+-----------------------------------------+
82+
| month | Month, from original EPW file. |
83+
+-------------------------------+-----------------------------------------+
84+
| day | Day of the month, from original EPW |
85+
| | file. |
86+
+-------------------------------+-----------------------------------------+
87+
| hour | Hour of the day from original EPW file. |
88+
| | Note that EPW's convention of 1-24h is |
89+
| | not taken over in the index dataframe |
90+
| | used in PVLIB. |
91+
+-------------------------------+-----------------------------------------+
92+
| minute | Minute, from original EPW file. Not |
93+
| | used. |
94+
+-------------------------------+-----------------------------------------+
95+
| data_source_unct | Data source and uncertainty flags. See |
96+
| | [1]_, chapter 2.13 |
97+
+-------------------------------+-----------------------------------------+
98+
| temp_air | Dry bulb temperature at the time |
99+
| | indicated, deg C |
100+
+-------------------------------+-----------------------------------------+
101+
| temp_dew | Dew-point temperature at the time |
102+
| | indicated, deg C |
103+
+-------------------------------+-----------------------------------------+
104+
| relative_humidity | Relative humidity at the time indicated,|
105+
| | percent |
106+
+-------------------------------+-----------------------------------------+
107+
| atmospheric_pressure | Station pressure at the time indicated, |
108+
| | Pa |
109+
+-------------------------------+-----------------------------------------+
110+
| etr | Extraterrestrial horizontal radiation |
111+
| | recv'd during 60 minutes prior to |
112+
| | timestamp, Wh/m^2 |
113+
+-------------------------------+-----------------------------------------+
114+
| etrn | Extraterrestrial normal radiation recv'd|
115+
| | during 60 minutes prior to timestamp, |
116+
| | Wh/m^2 |
117+
+-------------------------------+-----------------------------------------+
118+
| ghi_infrared | Horizontal infrared radiation recv'd |
119+
| | during 60 minutes prior to timestamp, |
120+
| | Wh/m^2 |
121+
+-------------------------------+-----------------------------------------+
122+
| ghi | Direct and diffuse horizontal radiation |
123+
| | recv'd during 60 minutes prior to |
124+
| | timestamp, Wh/m^2 |
125+
+-------------------------------+-----------------------------------------+
126+
| dni | Amount of direct normal radiation |
127+
| | (modeled) recv'd during 60 minutes prior|
128+
| | to timestamp, Wh/m^2 |
129+
+-------------------------------+-----------------------------------------+
130+
| dhi | Amount of diffuse horizontal radiation |
131+
| | recv'd during 60 minutes prior to |
132+
| | timestamp, Wh/m^2 |
133+
+-------------------------------+-----------------------------------------+
134+
| global_hor_illum | Avg. total horizontal illuminance recv'd|
135+
| | during the 60 minutes prior to |
136+
| | timestamp, lx |
137+
+-------------------------------+-----------------------------------------+
138+
| direct_normal_illum | Avg. direct normal illuminance recv'd |
139+
| | during the 60 minutes prior to |
140+
| | timestamp, lx |
141+
+-------------------------------+-----------------------------------------+
142+
| diffuse_horizontal_illum | Avg. horizontal diffuse illuminance |
143+
| | recv'd during the 60 minutes prior to |
144+
| | timestamp, lx |
145+
+-------------------------------+-----------------------------------------+
146+
| zenith_luminance | Avg. luminance at the sky's zenith |
147+
| | during the 60 minutes prior to |
148+
| | timestamp, cd/m^2 |
149+
+-------------------------------+-----------------------------------------+
150+
| wind_direction | Wind direction at time indicated, |
151+
| | degrees from north (360 = north; 0 = |
152+
| | undefined,calm) |
153+
+-------------------------------+-----------------------------------------+
154+
| wind_speed | Wind speed at the time indicated, m/s |
155+
+-------------------------------+-----------------------------------------+
156+
| total_sky_cover | Amount of sky dome covered by clouds or |
157+
| | obscuring phenomena at time stamp, |
158+
| | tenths of sky |
159+
+-------------------------------+-----------------------------------------+
160+
| opaque_sky_cover | Amount of sky dome covered by clouds or |
161+
| | obscuring phenomena that prevent |
162+
| | observing the sky at time stamp, tenths |
163+
| | of sky |
164+
+-------------------------------+-----------------------------------------+
165+
| visibility | Horizontal visibility at the time |
166+
| | indicated, km |
167+
+-------------------------------+-----------------------------------------+
168+
| ceiling_height | Height of cloud base above local terrain|
169+
| | (7777=unlimited), meter |
170+
+-------------------------------+-----------------------------------------+
171+
| present_weather_observation | Indicator for remaining fields: If 0, |
172+
| | then the observed weather codes are |
173+
| | taken from the following field. If 9, |
174+
| | then missing weather is assumed. |
175+
+-------------------------------+-----------------------------------------+
176+
| present_weather_codes | Present weather code, see [1], chapter |
177+
| | 2.9.1.28 |
178+
+-------------------------------+-----------------------------------------+
179+
| precipitable_water | Total precipitable water contained in a |
180+
| | column of unit cross section from earth |
181+
| | to top of atmosphere, cm. Note that some|
182+
| | old *_TMY3.epw files may have incorrect |
183+
| | unit if it was retrieved from |
184+
| | www.energyplus.net. |
185+
+-------------------------------+-----------------------------------------+
186+
| aerosol_optical_depth | The broadband aerosol optical depth per |
187+
| | unit of air mass due to extinction by |
188+
| | aerosol component of atmosphere, |
189+
| | unitless |
190+
+-------------------------------+-----------------------------------------+
191+
| snow_depth | Snow depth in centimeters on the day |
192+
| | indicated, (999 = missing data) |
193+
+-------------------------------+-----------------------------------------+
194+
| days_since_last_snowfall | Number of days since last snowfall |
195+
| | (maximum value of 88, where 88 = 88 or |
196+
| | greater days; 99 = missing data) |
197+
+-------------------------------+-----------------------------------------+
198+
| albedo | The ratio of reflected solar irradiance |
199+
| | to global horizontal irradiance, |
200+
| | unitless |
201+
+-------------------------------+-----------------------------------------+
202+
| liquid_precipitation_depth | The amount of liquid precipitation |
203+
| | observed at indicated time for the |
204+
| | period indicated in the liquid |
205+
| | precipitation quantity field, |
206+
| | millimeter |
207+
+-------------------------------+-----------------------------------------+
208+
| liquid_precipitation_quantity | The period of accumulation for the |
209+
| | liquid precipitation depth field, hour |
210+
+-------------------------------+-----------------------------------------+
211+
111212
112213
References
113214
----------

0 commit comments

Comments
 (0)
0