Closed shirubana closed 3 days ago
starttime format causing funny things in Solargis as well,. maybe related to #439 ? Accroding to documentation
starttime : str
Limited start time option in 'YYYY-mm-dd_HHMM' or 'mm_dd_HH' format
Dont work
[timeControlParamsDict] starttime = 06_21_1130 endtime = 06_22_1230
[timeControlParamsDict] starttime = 06_21_11 endtime = 06_22_12
[timeControlParamsDict] starttime = 06_21 endtime = 06_22
simulation D9 testing with solargis in the test folder:
WORKS: [timeControlParamsDict] starttime = 2020-06-21_1130 endtime = 2020-06-22_1230
[timeControlParamsDict] starttime = 2020-06-21_11 endtime = 2020-06-22_12
[timeControlParamsDict] starttime = 2020-06-21 endtime = 2020-06-22
I tried reading Solargis TMY file however, it somehow not parsing the info and gives the error message. I found a way-out by creating TMY3 from solargis and it worked.
If anyone else gets this error ValueError: invalid literal for int() with base 10:
. This error is coming from within pvlib.read_tmy3. It appears to be due to reading the 'Time (HH:MM)' column as literally HH:MM, but in our test file we have time entries like '2:30' (without the leading zero). I've fixed this by re-saving this 15-minute test file with data['HH:MM'].str.zfill(5)
to make sure it reads '02:30' etc. Now it's working. I've added this weather csv file to our test matrix. Anyone else who gets this error: check to make sure you have leading zeros on your time data.
First identified TMY3 subhourly format failing on readEPWWeatherFile
simulation_D8.ini
[timeControlParamsDict] starttime = 06_21_12 endtime = 06_22_12
weatherFile = C:\Users\sayala\Documents\GitHub\bifacial_radiance\tests\Custom_WeatherFile_TMY3format_15mins_2021_wTrackerAngles_BESTFieldData.csv