Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

Others can jump in here but the sources for the EPW definition that I am aware of would consist of:

  • The technical paper by Crawly, Hand, and Lawrie (1999) "Improving the Weather Information Available to Simulation Programs" (link)
  • The relevant parts of the EnergyPlus documentation (link)
  • Behavior of reference programs such as the Weather Converter Program (that ships with EnergyPlus) and the EnergyPlus simulator itself

Beyond that, looking at CSV specifications such as the following are helpful since EPW is essentially a CSV file:

  • csv-spec (link)
  • RFC 4180 - Common Format and MIME Type for Comma-Separated Values (CSV) Files (link)

Since you mention that EnergyPlus does not have a problem here, I would consider this to be an issue with the Elements parser itself (which seeks to read/write EnergyPlus compliant EPW files) and will file this in Element's issue tracker (as a disclaimer, I am one of the developers of the Elements software). In addition, from the csv-spec (and RFC 4180), we see:

Though it is RECOMMENDED, the last record in a file is not required to have a ending line break.

Beyond the above, I don't think the EPW file format has a rigorous formal computer grammar associated with it that goes to this level of detail which is why these subtle differences can occur.

Thank you for catching this and reporting it.

Others can jump in here but the sources for the EPW definition that I am aware of would consist of:

  • The technical paper by Crawly, Crawley, Hand, and Lawrie (1999) "Improving the Weather Information Available to Simulation Programs" (link)
  • The relevant parts of the EnergyPlus documentation (link)
  • Behavior of reference programs such as the Weather Converter Program (that ships with EnergyPlus) and the EnergyPlus simulator itself

Beyond that, looking at CSV specifications such as the following are helpful since EPW is essentially a CSV file:

  • csv-spec (link)
  • RFC 4180 - Common Format and MIME Type for Comma-Separated Values (CSV) Files (link)

Since you mention that EnergyPlus does not have a problem here, I would consider this to be an issue with the Elements parser itself (which seeks to read/write EnergyPlus compliant EPW files) and will file this in Element's issue tracker (as a disclaimer, I am one of the developers of the Elements software). In addition, from the csv-spec (and RFC 4180), we see:

Though it is RECOMMENDED, the last record in a file is not required to have a ending line break.

Beyond the above, I don't think the EPW file format has a rigorous formal computer grammar associated with it that goes to this level of detail which is why these subtle differences can occur.

Thank you for catching this and reporting it.