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=''
/
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!
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
Hi @joshkpeterson :) I never managed to convert it myself, we ended up working with @Joe Huang to get it done