Skip to content

EpwFile cannot process epw file #5614

@shorowit

Description

@shorowit

When trying to process an EPW file from here (see "Download Weather Files" link), OpenStudio is throwing an error:

$ openstudio -e "OpenStudio::EpwFile.new('USA_OR_PDX_ETONZF_Future.epw')"
[openstudio.EpwFile] <1> Missing LOCATION specifier in EPW file 'USA_OR_PDX_ETONZF_Future.epw'
[openstudio.EpwFile] <1> Failed to parse EPW file header 'USA_OR_PDX_ETONZF_Future.epw'
[openstudio.EpwFile] <2> EpwFile 'USA_OR_PDX_ETONZF_Future.epw' cannot be processed
terminate called after throwing an instance of 'RubyException'
  what():  RuntimeError: ../../__w/OpenStudio/OpenStudio/src/utilities/filetypes/EpwFile.cpp@2639 : EpwFile 'USA_OR_PDX_ETONZF_Future.epw' cannot be processed
Aborted (core dumped)

The error is coming from here. I'm sure there is a logical explanation but I do not see the problem. This EPW file does have a LOCATION as the first field in the first line just like every other EPW file...

LOCATION,Portland International Ap,OR,USA,ETONZF_RWDI,726980,45.60,-122.62,-8.0,6.0
DESIGN CONDITIONS,1,Climate Design Data 2009 ASHRAE Handbook,,Heating,12,-4.5,-1.9,-12.7,1.3,-1.5,-8.7,1.8,1.5,14.3,1.9,12.5,4.3,5.1,120,Cooling,8,12.2,32.9,19.7,30.6,19.2,28.6,18.5,20.8,30.6,19.9,29.2,19,27.3,4.7,310,17.1,12.3,24,16.3,11.7,22.9,15.6,11.1,21.9,59.9,30.8,56.6,29.1,53.6,27.3,1111,Extremes,10.6,8.8,7.9,25.1,-6.4,37.2,3.3,1.8,-8.8,38.5,-10.7,39.6,-12.5,40.6,-14.9,41.9
etc...

Also attaching the EPW file here as backup: USA_OR_PDX_ETONZF_Future.epw

OpenStudio 3.11.0+241b8abb4d

Related Unmet Hours post: https://unmethours.com/question/103200/weather-file-not-running-in-beopt/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions