- Posts: 5
Can't seem to change to customer weather file
- sbarsun
- Topic Author
Less
More
16 Sep 2015 17:29 #3715
by sbarsun
Can't seem to change to customer weather file was created by sbarsun
Hi,
In the 'old' scripting langauge, we succesfully used a line like this to set the weather for a PV site to be an actual weather file:
setinput( "climate.location", "K:/IPL/Program Folders/Renewables/WeatherData/IOWA_2010-15_4_CITIES_rev1/" + filename + "/" + filename + ".epw" )
Under the new scripting language, we've tried a variety of variables to set to a custom weather file but all teh simulations seem to use the same weather we start with. Example:
if (Station=="ALGONA")
{filename = "IA_" + Station + "_725457_" + run_yr;}
elseif (Station=="DECORAH-MUNI")
{filename = "IA_" + Station + "_725476_" + run_yr;}
elseif (Station=="PERRY-MUNI-AP")
{filename = "IA_" + Station + "_720412_" + run_yr;}
elseif (Station=="WASHINGTON")
{filename = "IA_" + Station + "_725454_" + run_yr;}
outln("filename: " + filename);
set( "solar_resource_file", filename + ".epw" );
Is it obvious what we're doing wrong?
Thanks,
Stephan
In the 'old' scripting langauge, we succesfully used a line like this to set the weather for a PV site to be an actual weather file:
setinput( "climate.location", "K:/IPL/Program Folders/Renewables/WeatherData/IOWA_2010-15_4_CITIES_rev1/" + filename + "/" + filename + ".epw" )
Under the new scripting language, we've tried a variety of variables to set to a custom weather file but all teh simulations seem to use the same weather we start with. Example:
if (Station=="ALGONA")
{filename = "IA_" + Station + "_725457_" + run_yr;}
elseif (Station=="DECORAH-MUNI")
{filename = "IA_" + Station + "_725476_" + run_yr;}
elseif (Station=="PERRY-MUNI-AP")
{filename = "IA_" + Station + "_720412_" + run_yr;}
elseif (Station=="WASHINGTON")
{filename = "IA_" + Station + "_725454_" + run_yr;}
outln("filename: " + filename);
set( "solar_resource_file", filename + ".epw" );
Is it obvious what we're doing wrong?
Thanks,
Stephan
Please Log in or Create an account to join the conversation.
- sbarsun
- Topic Author
Less
More
- Posts: 5
17 Sep 2015 16:11 #3716
by sbarsun
Replied by sbarsun on topic Can't seem to change to customer weather file
I seem to have found it in one of the LK examples:
//set location and resource mode to 'use a specific weather file on disk'
set('use_specific_weather_file',1);
//set location and resource mode to 'use a specific weather file on disk'
set('use_specific_weather_file',1);
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5423
17 Sep 2015 16:19 #3717
by pgilman
Replied by pgilman on topic Can't seem to change to customer weather file
Hello,
Yes, you'll need to set use_specific_weather_file to 1, and then set user_specified_weather_file to a string whose value is the weather file's full path and name.
I added a new file to the LK Script Cookbook that demonstrates how to work with solar resource data.
Best regards,
Paul.
Yes, you'll need to set use_specific_weather_file to 1, and then set user_specified_weather_file to a string whose value is the weather file's full path and name.
I added a new file to the LK Script Cookbook that demonstrates how to work with solar resource data.
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
Moderators: pgilman