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

Conversion from .dat to .epw fails with WeatherConverter

asked 2018-04-11 12:45:17 -0500

KLL's avatar

updated 2018-04-12 08:36:52 -0500

Hi,

when I try to convert a .dat file to epw with WeatherConverter, it says "Errors occured while processing" and returns a .stat-file and a .audit-file. The stat doesnt seem to workn the audit-file says:

-EnergyPlus Weather Converter V8.1.0.005 -Input File Type=DAT, with FileName=C:\Users\ga49nez\Downloads\TRY2015_41135002387500_Jahr.dat -Out of Range Data items will be corrected. Error ( 64 { 40}) [Input conversion error] found while Reading Samson file=c:\users\ga49nez\downloads\try2015_41135002387500_jahr.dat Severe ** Error during reading header "Koordinatensystem : Lambert konform konisch" " aaaaa aaaaaaaaaaaaaaaaaaaaaa aa ddd add dd a ddd dd dddd" (1X,A5,1X,A22,1X,A2,1X,I3,2X,A1,I2,1X,I2,2X,A1,I3,1X,I2,2X,I4)

Am I missing something? Thanks for your help!

Kai

edit retag flag offensive close merge delete

Comments

Hi @KLL,

Did you manage to convert the .dat file to EPW? I´m facing the same issue with a TRY file from the German database dwd.de. Unfortunately, they are all in .dat format

Actually, I´ve just found out that the data is encoded as netCDF-Format. Not sure if that gives more precision to find a solution.

Thanks in advance!

rafael.alonso's avatar rafael.alonso  ( 2018-12-19 14:19:16 -0500 )edit

Hi @rafael.alonso, writing to you from 4 years in the future :) I'm doing the exact task, converting a TRY file from the german DWD. Did you figure out how to do it? I'm trying to author my own .def after Joe Huang's tip but it's proving to be tricky -- errors from WeatherConverter are ambiguous

joshkpeterson's avatar joshkpeterson  ( 2023-05-10 03:56:37 -0500 )edit

Hi @joshkpeterson :) I never managed to convert it myself, we ended up working with @Joe Huang to get it done

rafael.alonso's avatar rafael.alonso  ( 2023-05-10 10:26:37 -0500 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2018-04-11 19:49:57 -0500

Joe Huang's avatar

What's the format of your source weather file? If it's not one of the formats recognized by WeatherConverter you have to develop a *.def (definition) file that gives the format and variables of the source weather file.
For example, here's a sample *.def file that I use to convert from my *.FIN4 format to *.epw:

&location City='SAN-FRANCISCO-IAP' StateProv='' Country='USA' InWMO='724940' InLat=37.620 InLong=-122.365 InTime=-8.0 InElev=2 / &wthdata NumInHour=1 InputFileType='CUSTOM' InFormat='DELIMITED' DataElements=date,time,extraterrestrial_horizontal_radiation,extraterrestrial_direct_normal_radiation,global_horizontal_radiation,ignore,ignore,direct_normal_radiation,ignore,ignore,diffuse_horizontal_radiation,ignore,ignore,global_horizontal_illuminance,ignore,ignore,direct_normal_illuminance,ignore,ignore,diffuse_horizontal_illuminance,ignore,ignore,zenith_luminance,ignore,ignore,total_sky_cover,ignore,ignore,opaque_sky_cover,ignore,ignore,dry_bulb_temperature,ignore,ignore,dew_point_temperature,ignore,ignore,relative_humidity,ignore,ignore,atmospheric_pressure,ignore,ignore,wind_direction,ignore,ignore,wind_speed,ignore,ignore,visibility,ignore,ignore,ceiling_height,ignore,ignore,precipitable_water,ignore,ignore,aerosol_opt_depth,ignore,ignore,albedo,ignore,ignore,liq_precip_depth,liq_precip_rate,ignore,ignore DataUnits='mm/dd/yyyy','hh:mm','wh/m2','wh/m2','wh/m2',,,'wh/m2',,,'wh/m2',,,'lux',,,'lux',,,'lux',,,'cd/m2',,,'tenths',,,'tenths' ,,,'c',,,'c',,,'%',,,'Pa',,,'deg',,,'m/s',,,'m',,,'m',,,'cm',,,'x',,,'x',,,'mm','hour',,, DataConversionFactors=1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,100,1,1,1,1,1,1,1,1,.001,1,1,1,1,1,100,1,1,1,1,1,1,1,1,1,1 DataMissingValues=-9900,-9900,-9900,-9900,-9900,0,0,-9900,0,0,-9900,0,0,-9900,0,0,-9900,0,0,-9900,0,0,-9900,0,0,-9900,0,0,-9900,0,0,-9900,0,0,-9900,0,0,-9900,0,0,-9900,0,0,-9900,0,0,-9900,0,0,-9900,0,0,-9900,0,0,-9900,0,0,-9900,0,0,-9900,0,0,-9900,-9900,0,0 DelimiterChar=',' / &datacontrol NumRecordsToSkip=2 MaxNumRecordsToRead=8784 GenerateSolarRadiationWarnings='no' GenerateIlluminanceWarnings='no' / &miscdata Comments1='' Comments2='' SourceData='' /

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Careers

Question Tools

1 follower

Stats

Asked: 2018-04-11 12:45:17 -0500

Seen: 908 times

Last updated: Apr 11 '18