EPW (EnergyPlus Weather)

An EPW file is an EnergyPlus Weather file: a comma-separated text file of hourly weather records for one year. ArchiWind accepts EPW files in two places when you create a simulation:

InputUsed forFields required
Wind data source → EPW fileWind roses and wind statistics for the comfort assessment, per month, per season and for the whole yearWind direction and wind speed
Microclimate weather data → Data source → EPW fileAir temperature, humidity, solar radiation and wind for the microclimate (UTCI) analysisDry-bulb temperature, relative humidity, the three radiation fields, wind direction and wind speed

Both inputs follow the rules on this page. The only difference is the fields that must be readable, complete and in range: the ones the input uses.

The microclimate input is optional. It is shown only when microclimate is enabled for your workspace and the project has location coordinates; otherwise, or when you leave it on ArchiWind (default), ArchiWind uses its automatic weather data. The two inputs are independent: you can upload one file, the other, or both. When the wind data source is a valid EPW file, Use wind EPW file reuses it for microclimate; it is then replaced or removed together with the wind file.

The file must be a single typical or reference year with every hour of the year. It is checked as soon as you upload it, with the errors and warnings shown below the file name, and again when the simulation starts. A file with errors cannot be used: fix it, or choose another data source.

After uploading

ArchiWind shows the station, its distance from the project location, the number of hourly records and months covered, the time zone and elevation, how complete each required field is, any errors and warnings, and a preview of the first and last records (time in local standard time, hour ending).

For the wind data source, also enter:

  • Meteorological data recorded height (1–300 m): the height at which the wind speeds were measured.
  • Roughness length (optional, 0.0001–1 m, lower than that height): the terrain at the recording location. Values above 0.5 m show a warning, as weather stations are usually in open terrain.

File structure

  • File extension .epw or .EPW, at most 10 MB.
  • Line endings CRLF (Windows) or LF. Blank lines are ignored.
  • Text encoded in UTF-8 or Latin-1 (both are common for station names).

The file holds:

  1. 8 header records, in this order: LOCATION, DESIGN CONDITIONS, TYPICAL/EXTREME PERIODS, GROUND TEMPERATURES, HOLIDAYS/DAYLIGHT SAVINGS, COMMENTS 1, COMMENTS 2, DATA PERIODS.
  2. One hourly record per line for a full year: 8 760 records, or 8 784 for a leap year. Each record has 35 fields.

ArchiWind reads these header fields:

RecordFields used
LOCATIONCity, state, country, source, WMO number, latitude, longitude, time zone (hours from UTC), elevation (m). All must be present.
DATA PERIODSStart date of the first period (1/1 means January 1: records are then dated by their position, see below)

Hourly fields used

Fields are numbered from 1, as in the EnergyPlus documentation. A value equal to or above the missing code counts as missing.

FieldNameUnitMissing codeAccepted rangeWindMicroclimate
2–4Month, day, hour––hour 1–24✓✓
7Dry-bulb temperature°C99.9−70 to 70✓
9Relative humidity%9990 to 110✓
14Global horizontal radiationWh/m²99990 to 1 400✓
15Direct normal radiationWh/m²99990 to 1 400✓
16Diffuse horizontal radiationWh/m²99990 to 1 400✓
21Wind direction, clockwise from north, direction the wind blows from°9990 to 360✓✓
22Wind speedm/s9990 to 40✓✓

Other fields must be present (35 per record) but are not read. For microclimate, the sky long-wave radiation is computed from temperature, humidity and global radiation with the same model as for the automatic weather data, so results from an EPW file and from the automatic data are comparable.

Time convention

  • Each record holds the value for the hour ending at the given hour, in the local standard time of the LOCATION time zone (no daylight saving). Hour 1 is 00:00–01:00, hour 24 is 23:00–24:00.
  • In a full-year file whose DATA PERIODS starts on January 1, records are dated by their position in the file. If some records carry a date that does not match their position (for example, a published file that labels every 19th day of the month as the 1st), you get a warning and the position is used. If more than 5 % of the records disagree with their position, the file is rejected.
  • Other files are dated by their month, day and hour fields.
  • Wind: only the month of each record is used, so the year in the file does not matter.
  • Microclimate: typical-year files (TMY, TMYx…) combine months from different years. ArchiWind keeps the month, day and hour of each record, places them on the year being simulated and converts them to UTC. February 29 is dropped when the simulated year is not a leap year.

Checks

Checks run in three stages: header records, then the structure of the records, then their content. A stage is checked only when the previous ones have no error, so fixing an error can reveal others.

Errors (the file cannot be used)

  • The file has fewer than 8 header records, or they are out of order.
  • A LOCATION field is missing or not a number, latitude is outside −90 to 90, longitude outside −180 to 180, or time zone outside −12 to 14.
  • The file holds no hourly records, or a record does not have 35 fields.
  • The date/time or a required field cannot be read as a number.
  • The file does not have 8 760 or 8 784 hourly records.
  • More than 5 % of the records are not in hourly order from January 1 (files dated by position).
  • A month, day or hour is invalid, the same month, day and hour appears twice, or a month has fewer than 20 days of data (files dated by their fields).
  • A required field is missing in more than 1 % of the hours.
  • A required field has values outside its accepted range.

Warnings (the file is used)

  • A required field is missing in at most 1 % of the hours. For wind, those hours are left out; for microclimate, the gaps are filled by linear interpolation between the neighbouring hours.
  • Some records have a date that does not match their position in the file (see Time convention).
  • The weather station is more than 50 km from the project location (only for projects with location coordinates).
  • More than 15 % of the hours with a wind speed are calm (0 m/s). Check that the wind rose looks right for your site.

When the microclimate analysis runs, ArchiWind also compares, in daylight hours, global radiation with direct normal × cos(sun zenith) + diffuse. A difference larger than 75 W/m² or 15 % (whichever is larger) usually means the three radiation fields come from different sources. This check is not shown on upload and does not stop the simulation: the file is used as is.

Where to find EPW files

  • Climate.OneBuilding.Org publishes typical-year (TMYx) files for thousands of stations worldwide.
  • National weather services often publish EPW files for their own stations. Check the licence and the comments in the file header before use.

Example

NOR_RO_Stavanger.014160_NORCERRA from source