Module Expr Str ImportFrom alias alias Assign NameStore Dict Str Str Str Str Str Str Str Num Num Num Num Num Num Num If CompareEq NameLoad Str body Import alias Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Str ImportFrom alias Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str If CompareGtE AttributeLoad AttributeLoad NameLoad attr attr Num body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad If CompareNotIn Call AttributeLoad Call AttributeLoad NameLoad attr attr ListLoad Str Str Str body Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Num Expr Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Str Assign NameStore SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str Str attr Str Slice Num Expr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Str ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str attr Assign TupleStore NameStore NameStore TupleLoad Num Num Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad For NameStore NameLoad body If UnaryOpNot NameLoad body Break Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BinOpDiv BinOpAdd Call NameLoad NameLoad Num Num Assign NameStore BinOpAdd BinOpMult BinOpDiv Call NameLoad NameLoad Num Num Num Assign NameStore BinOpDiv BinOpAdd NameLoad BinOpMult NameLoad Num BinOpMult Num Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore BinOpMult Num BinOpSub Num Call AttributeLoad NameLoad attr BinOpDiv BinOpMult AttributeLoad NameLoad attr Call NameLoad Num BinOpAdd Num Call NameLoad NameLoad Num Assign NameStore Call NameLoad Num Call NameLoad Num BinOpMult NameLoad Num Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad AugAssignAdd NameStore SubscriptLoad NameLoad Index Str If CompareGtE NameLoad Num body AugAssignAdd NameStore Num Assign NameStore BinOpMod NameLoad Num Expr Call NameLoad Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Str attr Index Num attr NameLoad Assign AttributeStore SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Str attr Index Num attr NameLoad Assign AttributeStore SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Str attr Index Num attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call NameLoad Str
N/A N/A 

This script downloads real world sun position data and imports them into the
pipelines time of day system.

(c) 2016 tobpsr

 __future__ print_function division N/A CONFIG N/A year month day latitude longitude height precision 2016 7 21 50.7782287598 6.08864021301 167 6 N/A N/A __name__ __main__ N/A N/A sys N/A math N/A N/A N/A N/A sys path insert 0 ../../ rplibs.six.moves urllib N/A N/A CONFIG N/A end_day N/A CONFIG N/A day N/A API http://www.nrel.gov/midc/apps/spa.pl?syear={year}&smonth={month}&sday={day}&eyear={year}&emonth={month}&eday={end_day}&step={precision}&stepunit=1&latitude={latitude}&longitude={longitude}&timezone=%2B1&elev={height}&press=1013&temp=20&dut1=0.0&deltat=64.797&azmrot=180&slope=0&refract=0.5667&field=2&field=35&field=36&field=38&zip=0 N/A url N/A N/A API format CONFIG N/A query_str Are you sure you want to import the data? This overrides your current sun azimuth, altitude and intensity settings! (y/n):  N/A N/A N/A N/A sys version_info major 3 N/A N/A query_result N/A input query_str N/A N/A query_result N/A raw_input query_str N/A N/A N/A N/A N/A N/A query_result strip lower N/A y yes j N/A N/A N/A print Aborted. N/A N/A N/A sys exit 0 N/A N/A print Querying api .. N/A handle N/A N/A N/A urllib request urlopen url N/A data N/A N/A N/A N/A handle read decode utf-8 N/A N/A N/A handle close N/A N/A print Extracting data .. N/A lines N/A N/A N/A N/A N/A data replace split N/A 1 N/A N/A print Loading plugin api .. N/A N/A N/A N/A sys path insert 0 ../../ rpcore.pluginbase.manager PluginManager rpcore.mount_manager MountManager N/A mount_mgr N/A MountManager None N/A N/A N/A mount_mgr mount N/A plugin_mgr N/A PluginManager None N/A N/A N/A plugin_mgr load N/A convert_to_linear N/A N/A N/A N/A plugin_mgr day_settings N/A scattering N/A sun_intensity get_linear_value N/A N/A hour minutes N/A 0 0 N/A data_points_azimuth N/A N/A data_points_altitude N/A N/A data_points_intensity N/A N/A line lines N/A N/A N/A line N/A N/A N/A N/A date time azim_angle declination ascension elevation N/A N/A line split , N/A float_azim N/A N/A N/A float azim_angle 180 360 N/A float_elev N/A N/A N/A N/A float elevation 60 0.5 0.5 N/A float_time N/A N/A minutes N/A hour 60 N/A 24 60 N/A N/A N/A data_points_azimuth append N/A float_time float_azim N/A N/A N/A data_points_altitude append N/A float_time float_elev N/A approx_intensity N/A 2.0 N/A 1 N/A N/A math cos N/A N/A N/A math pi N/A max 0 N/A 8.0 N/A float elevation 60.0 N/A approx_intensity N/A max 0 N/A min 150.0 N/A approx_intensity 0.25 N/A N/A N/A data_points_intensity append N/A float_time approx_intensity N/A minutes N/A CONFIG N/A precision N/A N/A minutes 60 N/A N/A hour 1 N/A minutes N/A minutes 60 N/A N/A print Saving .. N/A settings N/A N/A plugin_mgr day_settings N/A scattering N/A N/A N/A N/A N/A settings N/A sun_azimuth curves N/A 0 control_points data_points_azimuth N/A N/A N/A N/A N/A settings N/A sun_altitude curves N/A 0 control_points data_points_altitude N/A N/A N/A N/A N/A settings N/A sun_intensity curves N/A 0 control_points data_points_intensity N/A N/A N/A plugin_mgr save_daytime_overrides /$$rpconfig/daytime.yaml N/A N/A print Done!