6 - Exploring Trackerdict Structure#

Tutorial 6 gives a good, detailed introduction to the trackerdict structure step by step. Here is a condensed summary of functions you can use to explore the tracker dictionary.

Steps:

  1. Create a short Simulation + tracker dictionary beginning to end for 1 day

  2. Explore the tracker dictionary

  3. Explore Save Options

1. Create a short Simulation + tracker dictionary beginning to end for 1 day#

[1]:
import bifacial_radiance
from pathlib import Path
import os

testfolder = str(Path().resolve().parent.parent / 'bifacial_radiance' / 'Tutorial_06')
if not os.path.exists(testfolder):
    os.makedirs(testfolder)

simulationName = 'tutorial_6'
moduletype = 'test-module'
albedo = "litesoil"      # this is one of the options on ground.rad
lat = 37.5
lon = -77.6

# Scene variables
nMods = 3
nRows = 1
hub_height = 2.3 # meters
pitch = 10 # meters      # We will be using pitch instead of GCR for this example.

# Traking parameters
cumulativesky = False
limit_angle = 45 # tracker rotation limit angle
angledelta = 0.01 # we will be doing hourly simulation, we want the angle to be as close to real tracking as possible.
backtrack = True

#makeModule parameters
# x and y will be defined by the cell-level module parameters
xgap = 0.01
ygap = 0.10
zgap = 0.05
numpanels = 2
torquetube = True
axisofrotationTorqueTube = False
diameter = 0.1
tubetype = 'Oct'    # This will make an octagonal torque tube.
material = 'black'   # Torque tube will be made of this material (0% reflectivity)

tubeParams = {'diameter':diameter,
              'tubetype':tubetype,
              'material':material,
              'axisofrotation':axisofrotationTorqueTube,
              'visible':torquetube}

# Simulation range between two hours
startdate = '11_06_11'       # Options: mm_dd, mm_dd_HH, mm_dd_HHMM, YYYY-mm-dd_HHMM
enddate = '11_06_14'

# Cell Parameters
numcellsx = 6
numcellsy = 12
xcell = 0.156
ycell = 0.156
xcellgap = 0.02
ycellgap = 0.02

demo = bifacial_radiance.RadianceObj(simulationName, path=testfolder)
demo.setGround(albedo)
epwfile = demo.getEPW(lat,lon)
metdata = demo.readWeatherFile(epwfile, starttime=startdate, endtime=enddate)
cellLevelModuleParams = {'numcellsx': numcellsx, 'numcellsy':numcellsy,
                         'xcell': xcell, 'ycell': ycell, 'xcellgap': xcellgap, 'ycellgap': ycellgap}
mymodule = demo.makeModule(name=moduletype, xgap=xgap, ygap=ygap, zgap=zgap,
                           numpanels=numpanels, cellModule=cellLevelModuleParams, tubeParams=tubeParams)

sceneDict = {'pitch':pitch,'hub_height':hub_height, 'nMods': nMods, 'nRows': nRows}
demo.set1axis(limit_angle=limit_angle, backtrack=backtrack, gcr=mymodule.sceney / pitch, cumulativesky=cumulativesky)
demo.gendaylit1axis()
demo.makeScene1axis(module=mymodule, sceneDict=sceneDict)
demo.makeOct1axis()
demo.analysis1axis()
path = C:\Users\sayala\Documents\GitHub\bifacial_radiance\bifacial_radiance\Tutorial_06
Loading albedo, 1 value(s), 0.213 avg
1 nonzero albedo values.
Getting weather file: USA_VA_Richmond.724010_TMY2.epw
 ... OK!
8760 line in WeatherFile. Assuming this is a standard hourly WeatherFile for the year for purposes of saving Gencumulativesky temporary weather files in EPW folder.
Coercing year to 2021
Filtering dates
Saving file EPWs\metdata_temp.csv, # points: 8760
Calculating Sun position for Metdata that is right-labeled  with a delta of -30 mins. i.e. 12 is 11:30 sunpos

Module Name: test-module
Module was shifted by 0.078 in X to avoid sensors on air
This is a Cell-Level detailed module with Packaging Factor of 0.81 %
Module test-module updated in module.json
Pre-existing .rad file objects\test-module.rad will be overwritten
Creating ~4 skyfiles.
Created 4 skyfiles in /skies/

Making ~4 .rad files for gendaylit 1-axis workflow (this takes a minute..)
4 Radfiles created in /objects/

Making 4 octfiles in root directory.
Created 1axis_2021-11-06_1100.oct
Created 1axis_2021-11-06_1200.oct
Created 1axis_2021-11-06_1300.oct
Created 1axis_2021-11-06_1400.oct
Linescan in process: 1axis_2021-11-06_1100_Front
Linescan in process: 1axis_2021-11-06_1100_Back
Saved: results\irr_1axis_2021-11-06_1100.csv
Index: 2021-11-06_1100. Wm2Front: 319.9788703703703. Wm2Back: 35.58884666666667
Linescan in process: 1axis_2021-11-06_1200_Front
Linescan in process: 1axis_2021-11-06_1200_Back
Saved: results\irr_1axis_2021-11-06_1200.csv
Index: 2021-11-06_1200. Wm2Front: 196.19313703703705. Wm2Back: 28.03435222222222
Linescan in process: 1axis_2021-11-06_1300_Front
Linescan in process: 1axis_2021-11-06_1300_Back
Saved: results\irr_1axis_2021-11-06_1300.csv
Index: 2021-11-06_1300. Wm2Front: 243.92397037037037. Wm2Back: 35.621324074074074
Linescan in process: 1axis_2021-11-06_1400_Front
Linescan in process: 1axis_2021-11-06_1400_Back
Saved: results\irr_1axis_2021-11-06_1400.csv
Index: 2021-11-06_1400. Wm2Front: 113.61148555555556. Wm2Back: 23.56205148148148
Saving a cumulative-results file in the main simulation folder.This adds up by sensor location the irradiance over all hours or configurations considered.
Warning: This file saving routine does not clean results, so if your setup has ygaps, or 2+modules or torque tubes, doing a deeper cleaning and working with the individual results files in the results folder is highly suggested.

Saving Cumulative results
Saved: cumulative_results_.csv
[1]:
{'2021-11-06_1100': {'surf_azm': 90.0,
  'surf_tilt': 32.06,
  'theta': -32.06,
  'ghi': 303,
  'dhi': 191,
  'skyfile': 'skies\\sky2_37.5_-77.33_2021-11-06_1100.rad',
  'clearance_height': 1.1630113044697146,
  'radfile': 'objects\\1axis2021-11-06_1100__C_1.16301_rtr_10.00000_tilt_32.06000_20modsx7rows_origin0,0.rad',
  'scene': {'module': {'x': 1.036, 'y': 2.092, 'z': 0.02, 'modulematerial': 'black', 'scenex': 1.046, 'sceney': 4.284, 'scenez': 0.1, 'numpanels': 2, 'bifi': 1, 'text': '! genbox black cellPVmodule 0.156 0.156 0.02 | xform -t -0.44 -2.142 0 -a 6 -t 0.176 0 0 -a 12 -t 0 0.176 0 -a 2 -t 0 2.192 0\r\n! genbox black octtube1a 1.046 0.04142135623730951 0.1 | xform -t -0.523 -0.020710678118654756 -0.15000000000000002\r\n! genbox black octtube1b 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 45 -t 0 0 -0.1\r\n! genbox black octtube1c 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 90 -t 0 0 -0.1\r\n! genbox black octtube1d 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 135 -t 0 0 -0.1 ', 'modulefile': 'objects\\test-module.rad', 'glass': False, 'offsetfromaxis': 0, 'xgap': 0.01, 'ygap': 0.1, 'zgap': 0.05}, 'modulefile': 'objects\\test-module.rad', 'gcr': 0.4284, 'text': '!xform -rx 32.06 -t 0 0 2.3 -a 20 -t 1.046 0 0 -a 7 -t 0 10 0 -i 1 -t -9.414 -30.0 0 -rz 90.0 -t 0 0 0 objects\\test-module.rad', 'radfiles': 'objects\\1axis2021-11-06_1100__C_1.16301_rtr_10.00000_tilt_32.06000_20modsx7rows_origin0,0.rad', 'sceneDict': {'tilt': 0, 'pitch': 10, 'clearance_height': 2.3, 'azimuth': 90.0, 'nMods': 20, 'nRows': 7, 'modulez': 0.02, 'axis_tilt': 0, 'originx': 0, 'originy': 0}},
  'octfile': '1axis_2021-11-06_1100.oct',
  'AnalysisObj': {'octfile': '1axis_2021-11-06_1100.oct', 'name': '1axis_2021-11-06_1100', 'x': [1.46341, 1.100345, 0.7372787, 0.3742128, 0.01114695, -0.3519189, -0.7149848, -1.078051, -1.441117], 'y': [8.960805e-17, 6.737667e-17, 4.51453e-17, 2.291393e-17, 6.825537e-19, -2.154882e-17, -4.378019e-17, -6.601157e-17, -8.824294e-17], 'z': [1.408206, 1.635604, 1.863002, 2.0904, 2.317797, 2.545195, 2.772593, 2.999991, 3.227388], 'rearZ': [1.389562, 1.616959, 1.844357, 2.071755, 2.299153, 2.52655, 2.753948, 2.981346, 3.208743], 'mattype': ['a9.3.a2.2.0.cellPVmodule.6457', 'a9.3.a2.4.0.cellPVmodule.6457', 'a9.3.a2.7.0.cellPVmodule.6457', 'a9.3.a2.9.0.cellPVmodule.6457', 'a9.3.octtube1a.6457', 'a9.3.a2.2.1.cellPVmodule.6457', 'a9.3.a2.4.1.cellPVmodule.6457', 'a9.3.a2.7.1.cellPVmodule.6457', 'a9.3.a2.9.1.cellPVmodule.6457'], 'rearMat': ['a9.3.a2.2.0.cellPVmodule.2310', 'a9.3.a2.4.0.cellPVmodule.2310', 'a9.3.a2.7.0.cellPVmodule.2310', 'a9.3.a2.9.0.cellPVmodule.2310', 'sky', 'a9.3.a2.2.1.cellPVmodule.2310', 'a9.3.a2.4.1.cellPVmodule.2310', 'a9.3.a2.7.1.cellPVmodule.2310', 'a9.3.a2.9.1.cellPVmodule.2310'], 'Wm2Front': [316.83666666666664, 319.46896666666663, 322.48049999999995, 324.2786, 272.9574666666667, 329.6786666666667, 330.9568666666667, 331.09273333333334, 332.0593666666666], 'Wm2Back': [37.88070333333334, 34.49788, 32.862869999999994, 28.840656666666664, 41.98657, 33.188293333333334, 35.08822, 37.04478666666666, 38.90964], 'Back/FrontRatio': [0.1195587119797415, 0.10798473596735596, 0.10190621787606421, 0.08893762255370571, 0.15382036143716127, 0.10066830529433117, 0.10602020237017078, 0.11188610033090325, 0.11717640497295123], 'backRatio': [0.1195587119797415, 0.10798473596735596, 0.10190621787606421, 0.08893762255370571, 0.15382036143716127, 0.10066830529433117, 0.10602020237017078, 0.11188610033090325, 0.11717640497295123], 'rearX': [1.451733, 1.088667, 0.7256009, 0.3625351, -0.000530807, -0.3635967, -0.7266626, -1.089728, -1.452794], 'rearY': [8.889299e-17, 6.666162e-17, 4.443024e-17, 2.219887e-17, -3.250256e-20, -2.226388e-17, -4.449525e-17, -6.672662e-17, -8.895799e-17]},
  'Wm2Front': [316.83666666666664,
   319.46896666666663,
   322.48049999999995,
   324.2786,
   272.9574666666667,
   329.6786666666667,
   330.9568666666667,
   331.09273333333334,
   332.0593666666666],
  'Wm2Back': [37.88070333333334,
   34.49788,
   32.862869999999994,
   28.840656666666664,
   41.98657,
   33.188293333333334,
   35.08822,
   37.04478666666666,
   38.90964],
  'backRatio': [0.1195587119797415,
   0.10798473596735596,
   0.10190621787606421,
   0.08893762255370571,
   0.15382036143716127,
   0.10066830529433117,
   0.10602020237017078,
   0.11188610033090325,
   0.11717640497295123]},
 '2021-11-06_1200': {'surf_azm': 90.0,
  'surf_tilt': 9.27,
  'theta': -9.27,
  'ghi': 200,
  'dhi': 197,
  'skyfile': 'skies\\sky2_37.5_-77.33_2021-11-06_1200.rad',
  'clearance_height': 1.954951469221026,
  'radfile': 'objects\\1axis2021-11-06_1200__C_1.95495_rtr_10.00000_tilt_9.27000_20modsx7rows_origin0,0.rad',
  'scene': {'module': {'x': 1.036, 'y': 2.092, 'z': 0.02, 'modulematerial': 'black', 'scenex': 1.046, 'sceney': 4.284, 'scenez': 0.1, 'numpanels': 2, 'bifi': 1, 'text': '! genbox black cellPVmodule 0.156 0.156 0.02 | xform -t -0.44 -2.142 0 -a 6 -t 0.176 0 0 -a 12 -t 0 0.176 0 -a 2 -t 0 2.192 0\r\n! genbox black octtube1a 1.046 0.04142135623730951 0.1 | xform -t -0.523 -0.020710678118654756 -0.15000000000000002\r\n! genbox black octtube1b 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 45 -t 0 0 -0.1\r\n! genbox black octtube1c 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 90 -t 0 0 -0.1\r\n! genbox black octtube1d 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 135 -t 0 0 -0.1 ', 'modulefile': 'objects\\test-module.rad', 'glass': False, 'offsetfromaxis': 0, 'xgap': 0.01, 'ygap': 0.1, 'zgap': 0.05}, 'modulefile': 'objects\\test-module.rad', 'gcr': 0.4284, 'text': '!xform -rx 9.27 -t 0 0 2.3 -a 20 -t 1.046 0 0 -a 7 -t 0 10 0 -i 1 -t -9.414 -30.0 0 -rz 90.0 -t 0 0 0 objects\\test-module.rad', 'radfiles': 'objects\\1axis2021-11-06_1200__C_1.95495_rtr_10.00000_tilt_9.27000_20modsx7rows_origin0,0.rad', 'sceneDict': {'tilt': 9.27, 'pitch': 10, 'clearance_height': 1.954951469221026, 'azimuth': 90.0, 'nMods': 20, 'nRows': 7, 'modulez': 0.02, 'axis_tilt': 0, 'originx': 0, 'originy': 0}},
  'octfile': '1axis_2021-11-06_1200.oct',
  'AnalysisObj': {'octfile': '1axis_2021-11-06_1200.oct', 'name': '1axis_2021-11-06_1200', 'x': [1.694604, 1.271798, 0.8489932, 0.426188, 0.003382829, -0.4194224, -0.8422275, -1.265033, -1.687838], 'y': [1.037645e-16, 7.787519e-17, 5.198584e-17, 2.609649e-17, 2.071385e-19, -2.568221e-17, -5.157156e-17, -7.746091e-17, -1.033503e-16], 'z': [2.044687, 2.113697, 2.182706, 2.251716, 2.320726, 2.389735, 2.458745, 2.527755, 2.596765], 'rearZ': [2.022974, 2.091984, 2.160994, 2.230003, 2.299013, 2.368023, 2.437032, 2.506042, 2.575052], 'mattype': ['a9.3.a2.2.0.cellPVmodule.6457', 'a9.3.a2.4.0.cellPVmodule.6457', 'a9.3.a2.7.0.cellPVmodule.6457', 'a9.3.a2.9.0.cellPVmodule.6457', 'a9.3.octtube1a.6457', 'a9.3.a2.2.1.cellPVmodule.6457', 'a9.3.a2.4.1.cellPVmodule.6457', 'a9.3.a2.7.1.cellPVmodule.6457', 'a9.3.a2.9.1.cellPVmodule.6457'], 'rearMat': ['a9.3.a2.2.0.cellPVmodule.2310', 'a9.3.a2.4.0.cellPVmodule.2310', 'a9.3.a2.7.0.cellPVmodule.2310', 'a9.3.a2.9.0.cellPVmodule.2310', 'sky', 'a9.3.a2.2.1.cellPVmodule.2310', 'a9.3.a2.4.1.cellPVmodule.2310', 'a9.3.a2.7.1.cellPVmodule.2310', 'a9.3.a2.9.1.cellPVmodule.2310'], 'Wm2Front': [195.62653333333333, 195.71346666666668, 195.79826666666668, 196.2162, 196.3092333333333, 196.40113333333338, 196.53986666666665, 196.55846666666665, 196.57506666666666], 'Wm2Back': [23.727, 22.663216666666667, 21.86466, 20.963626666666666, 68.72899, 21.57405, 23.282780000000002, 24.19316666666667, 25.311679999999996], 'Back/FrontRatio': [0.12128660825861935, 0.11579735035768093, 0.11166875327078174, 0.10683888398502613, 0.3501039596000005, 0.10984631192057653, 0.11846279297978064, 0.12308319246558805, 0.12876277580078413], 'backRatio': [0.12128660825861935, 0.11579735035768093, 0.11166875327078174, 0.10683888398502613, 0.3501039596000005, 0.10984631192057653, 0.11846279297978064, 0.12308319246558805, 0.12876277580078413], 'rearX': [1.69106, 1.268254, 0.8454493, 0.4226441, -0.0001610871, -0.4229663, -0.8457714, -1.268577, -1.691382], 'rearY': [1.035475e-16, 7.765819e-17, 5.176884e-17, 2.587949e-17, -9.863739e-21, -2.589921e-17, -5.178856e-17, -7.767792e-17, -1.035673e-16]},
  'Wm2Front': [195.62653333333333,
   195.71346666666668,
   195.79826666666668,
   196.2162,
   196.3092333333333,
   196.40113333333338,
   196.53986666666665,
   196.55846666666665,
   196.57506666666666],
  'Wm2Back': [23.727,
   22.663216666666667,
   21.86466,
   20.963626666666666,
   68.72899,
   21.57405,
   23.282780000000002,
   24.19316666666667,
   25.311679999999996],
  'backRatio': [0.12128660825861935,
   0.11579735035768093,
   0.11166875327078174,
   0.10683888398502613,
   0.3501039596000005,
   0.10984631192057653,
   0.11846279297978064,
   0.12308319246558805,
   0.12876277580078413]},
 '2021-11-06_1300': {'surf_azm': 90.0,
  'surf_tilt': -14.87,
  'theta': 14.87,
  'ghi': 250,
  'dhi': 249,
  'skyfile': 'skies\\sky2_37.5_-77.33_2021-11-06_1300.rad',
  'clearance_height': 1.7503054702295644,
  'radfile': 'objects\\1axis2021-11-06_1300__C_1.75031_rtr_10.00000_tilt_-14.87000_20modsx7rows_origin0,0.rad',
  'scene': {'module': {'x': 1.036, 'y': 2.092, 'z': 0.02, 'modulematerial': 'black', 'scenex': 1.046, 'sceney': 4.284, 'scenez': 0.1, 'numpanels': 2, 'bifi': 1, 'text': '! genbox black cellPVmodule 0.156 0.156 0.02 | xform -t -0.44 -2.142 0 -a 6 -t 0.176 0 0 -a 12 -t 0 0.176 0 -a 2 -t 0 2.192 0\r\n! genbox black octtube1a 1.046 0.04142135623730951 0.1 | xform -t -0.523 -0.020710678118654756 -0.15000000000000002\r\n! genbox black octtube1b 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 45 -t 0 0 -0.1\r\n! genbox black octtube1c 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 90 -t 0 0 -0.1\r\n! genbox black octtube1d 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 135 -t 0 0 -0.1 ', 'modulefile': 'objects\\test-module.rad', 'glass': False, 'offsetfromaxis': 0, 'xgap': 0.01, 'ygap': 0.1, 'zgap': 0.05}, 'modulefile': 'objects\\test-module.rad', 'gcr': 0.4284, 'text': '!xform -rx -14.87 -t 0 0 2.3 -a 20 -t 1.046 0 0 -a 7 -t 0 10 0 -i 1 -t -9.414 -30.0 0 -rz 90.0 -t 0 0 0 objects\\test-module.rad', 'radfiles': 'objects\\1axis2021-11-06_1300__C_1.75031_rtr_10.00000_tilt_-14.87000_20modsx7rows_origin0,0.rad', 'sceneDict': {'tilt': -14.87, 'pitch': 10, 'clearance_height': 1.7503054702295644, 'azimuth': 90.0, 'nMods': 20, 'nRows': 7, 'modulez': 0.02, 'axis_tilt': 0, 'originx': 0, 'originy': 0}},
  'octfile': '1axis_2021-11-06_1300.oct',
  'AnalysisObj': {'octfile': '1axis_2021-11-06_1300.oct', 'name': '1axis_2021-11-06_1300', 'x': [1.650823, 1.23677, 0.8227171, 0.408664, -0.005389162, -0.4194423, -0.8334954, -1.247549, -1.661602], 'y': [1.010838e-16, 7.573034e-17, 5.037689e-17, 2.502345e-17, -3.29991e-19, -2.568343e-17, -5.103688e-17, -7.639032e-17, -1.017438e-16], 'z': [2.760052, 2.650113, 2.540175, 2.430236, 2.320297, 2.210358, 2.100419, 1.99048, 1.880541], 'rearZ': [2.738789, 2.62885, 2.518911, 2.408972, 2.299033, 2.189095, 2.079156, 1.969217, 1.859278], 'mattype': ['a9.3.a2.2.0.cellPVmodule.6457', 'a9.3.a2.4.0.cellPVmodule.6457', 'a9.3.a2.7.0.cellPVmodule.6457', 'a9.3.a2.9.0.cellPVmodule.6457', 'a9.3.octtube1a.6457', 'a9.3.a2.2.1.cellPVmodule.6457', 'a9.3.a2.4.1.cellPVmodule.6457', 'a9.3.a2.7.1.cellPVmodule.6457', 'a9.3.a2.9.1.cellPVmodule.6457'], 'rearMat': ['a9.3.a2.2.0.cellPVmodule.2310', 'a9.3.a2.4.0.cellPVmodule.2310', 'a9.3.a2.7.0.cellPVmodule.2310', 'a9.3.a2.9.0.cellPVmodule.2310', 'sky', 'a9.3.a2.2.1.cellPVmodule.2310', 'a9.3.a2.4.1.cellPVmodule.2310', 'a9.3.a2.7.1.cellPVmodule.2310', 'a9.3.a2.9.1.cellPVmodule.2310'], 'Wm2Front': [245.12846666666667, 245.0658, 244.99986666666666, 244.0445, 243.9407, 243.83343333333332, 242.9188333333333, 242.76886666666664, 242.61526666666668], 'Wm2Back': [33.25434666666667, 31.81038, 30.317716666666666, 27.925346666666666, 85.64816, 26.577423333333332, 27.017993333333333, 28.18733, 29.853220000000004], 'Back/FrontRatio': [0.13566033948862943, 0.12980289455772875, 0.1237453445742913, 0.11442680429127629, 0.3511009392818038, 0.10899782680406227, 0.11122185028119702, 0.11610720221180663, 0.12304706691829402], 'backRatio': [0.13566033948862943, 0.12980289455772875, 0.1237453445742913, 0.11442680429127629, 0.3511009392818038, 0.10899782680406227, 0.11122185028119702, 0.11610720221180663, 0.12304706691829402], 'rearX': [1.656469, 1.242416, 0.8283629, 0.4143098, 0.0002566268, -0.4137965, -0.8278496, -1.241903, -1.655956], 'rearY': [1.014295e-16, 7.607604e-17, 5.07226e-17, 2.536916e-17, 1.571386e-20, -2.533773e-17, -5.069117e-17, -7.604461e-17, -1.013981e-16]},
  'Wm2Front': [245.12846666666667,
   245.0658,
   244.99986666666666,
   244.0445,
   243.9407,
   243.83343333333332,
   242.9188333333333,
   242.76886666666664,
   242.61526666666668],
  'Wm2Back': [33.25434666666667,
   31.81038,
   30.317716666666666,
   27.925346666666666,
   85.64816,
   26.577423333333332,
   27.017993333333333,
   28.18733,
   29.853220000000004],
  'backRatio': [0.13566033948862943,
   0.12980289455772875,
   0.1237453445742913,
   0.11442680429127629,
   0.3511009392818038,
   0.10899782680406227,
   0.11122185028119702,
   0.11610720221180663,
   0.12304706691829402]},
 '2021-11-06_1400': {'surf_azm': 90.0,
  'surf_tilt': -36.95,
  'theta': 36.95,
  'ghi': 136,
  'dhi': 135,
  'skyfile': 'skies\\sky2_37.5_-77.33_2021-11-06_1400.rad',
  'clearance_height': 1.012405558600545,
  'radfile': 'objects\\1axis2021-11-06_1400__C_1.01241_rtr_10.00000_tilt_-36.95000_20modsx7rows_origin0,0.rad',
  'scene': {'module': {'x': 1.036, 'y': 2.092, 'z': 0.02, 'modulematerial': 'black', 'scenex': 1.046, 'sceney': 4.284, 'scenez': 0.1, 'numpanels': 2, 'bifi': 1, 'text': '! genbox black cellPVmodule 0.156 0.156 0.02 | xform -t -0.44 -2.142 0 -a 6 -t 0.176 0 0 -a 12 -t 0 0.176 0 -a 2 -t 0 2.192 0\r\n! genbox black octtube1a 1.046 0.04142135623730951 0.1 | xform -t -0.523 -0.020710678118654756 -0.15000000000000002\r\n! genbox black octtube1b 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 45 -t 0 0 -0.1\r\n! genbox black octtube1c 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 90 -t 0 0 -0.1\r\n! genbox black octtube1d 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 135 -t 0 0 -0.1 ', 'modulefile': 'objects\\test-module.rad', 'glass': False, 'offsetfromaxis': 0, 'xgap': 0.01, 'ygap': 0.1, 'zgap': 0.05}, 'modulefile': 'objects\\test-module.rad', 'gcr': 0.4284, 'text': '!xform -rx -36.95 -t 0 0 2.3 -a 20 -t 1.046 0 0 -a 7 -t 0 10 0 -i 1 -t -9.414 -30.0 0 -rz 90.0 -t 0 0 0 objects\\test-module.rad', 'radfiles': 'objects\\1axis2021-11-06_1400__C_1.01241_rtr_10.00000_tilt_-36.95000_20modsx7rows_origin0,0.rad', 'sceneDict': {'tilt': -36.95, 'pitch': 10, 'clearance_height': 1.012405558600545, 'azimuth': 90.0, 'nMods': 20, 'nRows': 7, 'modulez': 0.02, 'axis_tilt': 0, 'originx': 0, 'originy': 0}},
  'octfile': '1axis_2021-11-06_1400.oct',
  'AnalysisObj': {'octfile': '1axis_2021-11-06_1400.oct', 'name': '1axis_2021-11-06_1400', 'x': [1.356818, 1.014457, 0.6720971, 0.3297368, -0.01262347, -0.3549838, -0.6973441, -1.039704, -1.382065], 'y': [8.308113e-17, 6.21176e-17, 4.115408e-17, 2.019056e-17, -7.729649e-19, -2.173649e-17, -4.270001e-17, -6.366353e-17, -8.462706e-17], 'z': [3.346858, 3.089339, 2.83182, 2.574301, 2.316782, 2.059263, 1.801745, 1.544226, 1.286707], 'rearZ': [3.329276, 3.071758, 2.814239, 2.55672, 2.299201, 2.041682, 1.784163, 1.526644, 1.269125], 'mattype': ['a9.3.a2.2.0.cellPVmodule.6457', 'a9.3.a2.4.0.cellPVmodule.6457', 'a9.3.a2.7.0.cellPVmodule.6457', 'a9.3.a2.9.0.cellPVmodule.6457', 'a9.3.octtube1a.6457', 'a9.3.a2.2.1.cellPVmodule.6457', 'a9.3.a2.4.1.cellPVmodule.6457', 'a9.3.a2.7.1.cellPVmodule.6457', 'a9.3.a2.9.1.cellPVmodule.6457'], 'rearMat': ['a9.3.a2.2.0.cellPVmodule.2310', 'a9.3.a2.4.0.cellPVmodule.2310', 'a9.3.a2.7.0.cellPVmodule.2310', 'a9.3.a2.9.0.cellPVmodule.2310', 'sky', 'a9.3.a2.2.1.cellPVmodule.2310', 'a9.3.a2.4.1.cellPVmodule.2310', 'a9.3.a2.7.1.cellPVmodule.2310', 'a9.3.a2.9.1.cellPVmodule.2310'], 'Wm2Front': [121.17556666666667, 120.7421, 120.09243333333335, 119.5391, 80.94470333333334, 117.1721, 116.2254, 113.97833333333331, 112.63363333333332], 'Wm2Back': [23.816963333333334, 23.154840000000004, 22.38333333333333, 21.456746666666664, 46.39253, 17.265833333333333, 19.087196666666667, 19.252326666666665, 19.248693333333335], 'Back/FrontRatio': [0.1965475998247186, 0.19176946757206006, 0.18638265816920874, 0.17949413348881807, 0.5731314707212584, 0.14735321787452352, 0.1642242783624604, 0.16891067971386628, 0.1708949793121654], 'backRatio': [0.1965475998247186, 0.19176946757206006, 0.18638265816920874, 0.17949413348881807, 0.5731314707212584, 0.14735321787452352, 0.1642242783624604, 0.16891067971386628, 0.1708949793121654], 'rearX': [1.370042, 1.027682, 0.6853217, 0.3429614, 0.0006011179, -0.3417592, -0.6841195, -1.02648, -1.36884], 'rearY': [8.38909e-17, 6.292738e-17, 4.196385e-17, 2.100033e-17, 3.680785e-20, -2.092672e-17, -4.189024e-17, -6.285376e-17, -8.381728e-17]},
  'Wm2Front': [121.17556666666667,
   120.7421,
   120.09243333333335,
   119.5391,
   80.94470333333334,
   117.1721,
   116.2254,
   113.97833333333331,
   112.63363333333332],
  'Wm2Back': [23.816963333333334,
   23.154840000000004,
   22.38333333333333,
   21.456746666666664,
   46.39253,
   17.265833333333333,
   19.087196666666667,
   19.252326666666665,
   19.248693333333335],
  'backRatio': [0.1965475998247186,
   0.19176946757206006,
   0.18638265816920874,
   0.17949413348881807,
   0.5731314707212584,
   0.14735321787452352,
   0.1642242783624604,
   0.16891067971386628,
   0.1708949793121654]}}

2. Explore the tracker dictionary#

You can use any of the below options to explore the tracking dictionary. Copy it into an empty cell to see their contents.

[8]:
print(demo)   # Shows all keys for top-level RadianceObj

trackerkeys = sorted(demo.trackerdict.keys()) # get the trackerdict keys to see a specific hour.

demo.trackerdict[trackerkeys[0]] # This prints all trackerdict content
demo.trackerdict[trackerkeys[0]]['scene']  # This shows the Scene Object contents
demo.trackerdict[trackerkeys[0]]['scene'].module.scenex  # This shows the Module Object in the Scene's contents
demo.trackerdict[trackerkeys[0]]['scene'].sceneDict # Printing the scene dictionary saved in the Scene Object
demo.trackerdict[trackerkeys[0]]['scene'].sceneDict['tilt'] # Addressing one of the variables in the scene dictionary


# Looking at the AnalysisObj results indivudally
demo.trackerdict[trackerkeys[0]]['AnalysisObj']  # This shows the Analysis Object contents
demo.trackerdict[trackerkeys[0]]['AnalysisObj'].mattype # Addressing one of the variables in the Analysis Object

# Looking at the Analysis results Accumulated for the day:
demo.Wm2Back  # this value is the addition of every individual irradiance result for each hour simulated.

#  Access module values
demo.trackerdict[trackerkeys[0]]['scene'].module.scenex

{'metdata': <bifacial_radiance.main.MetObj object at 0x000001A43CAD2040>, 'data': {}, 'path': 'C:\\Users\\sayala\\Documents\\GitHub\\bifacial_radiance\\bifacial_radiance\\Tutorial_06', 'name': '2021-11-06_1400', 'materialfiles': ['materials\\ground.rad'], 'skyfiles': ['skies\\sky2_37.5_-77.33_2021-11-06_1400.rad'], 'radfiles': [], 'octfile': '1axis_2021-11-06_1400.oct', 'Wm2Front': array([878.76723333, 880.99033333, 883.37106667, 884.0784    ,
       794.15210333, 887.08533333, 886.64096667, 884.3984    ,
       883.88333333]), 'Wm2Back': array([118.67901333, 112.12631667, 107.42858   ,  99.18637667,
       242.75625   ,  98.6056    , 104.47619   , 108.67761   ,
       113.32323333]), 'backRatio': 0.14055784005561572, 'nMods': 20, 'nRows': 7, 'nowstr': '2022-02-02_135820', 'basename': 'tutorial_6', 'ground': <bifacial_radiance.main.GroundObj object at 0x000001A43CB02700>, 'epwfile': 'EPWs\\USA_VA_Richmond.724010_TMY2.epw', 'gencumsky_metfile': 'EPWs\\metdata_temp.csv', 'module': {'x': 1.036, 'y': 2.092, 'z': 0.02, 'modulematerial': 'black', 'scenex': 1.046, 'sceney': 4.284, 'scenez': 0.1, 'numpanels': 2, 'bifi': 1, 'text': '! genbox black cellPVmodule 0.156 0.156 0.02 | xform -t -0.44 -2.142 0 -a 6 -t 0.176 0 0 -a 12 -t 0 0.176 0 -a 2 -t 0 2.192 0\r\n! genbox black octtube1a 1.046 0.04142135623730951 0.1 | xform -t -0.523 -0.020710678118654756 -0.15000000000000002\r\n! genbox black octtube1b 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 45 -t 0 0 -0.1\r\n! genbox black octtube1c 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 90 -t 0 0 -0.1\r\n! genbox black octtube1d 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 135 -t 0 0 -0.1 ', 'modulefile': 'objects\\test-module.rad', 'glass': False, 'offsetfromaxis': 0, 'xgap': 0.01, 'ygap': 0.1, 'zgap': 0.05}, 'trackerdict': {'2021-11-06_1100': {'surf_azm': 90.0, 'surf_tilt': 32.06, 'theta': -32.06, 'ghi': 303, 'dhi': 191, 'skyfile': 'skies\\sky2_37.5_-77.33_2021-11-06_1100.rad', 'clearance_height': 1.1630113044697146, 'radfile': 'objects\\1axis2021-11-06_1100__C_1.16301_rtr_10.00000_tilt_32.06000_20modsx7rows_origin0,0.rad', 'scene': {'module': {'x': 1.036, 'y': 2.092, 'z': 0.02, 'modulematerial': 'black', 'scenex': 1.046, 'sceney': 4.284, 'scenez': 0.1, 'numpanels': 2, 'bifi': 1, 'text': '! genbox black cellPVmodule 0.156 0.156 0.02 | xform -t -0.44 -2.142 0 -a 6 -t 0.176 0 0 -a 12 -t 0 0.176 0 -a 2 -t 0 2.192 0\r\n! genbox black octtube1a 1.046 0.04142135623730951 0.1 | xform -t -0.523 -0.020710678118654756 -0.15000000000000002\r\n! genbox black octtube1b 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 45 -t 0 0 -0.1\r\n! genbox black octtube1c 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 90 -t 0 0 -0.1\r\n! genbox black octtube1d 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 135 -t 0 0 -0.1 ', 'modulefile': 'objects\\test-module.rad', 'glass': False, 'offsetfromaxis': 0, 'xgap': 0.01, 'ygap': 0.1, 'zgap': 0.05}, 'modulefile': 'objects\\test-module.rad', 'gcr': 0.4284, 'text': '!xform -rx 32.06 -t 0 0 2.3 -a 20 -t 1.046 0 0 -a 7 -t 0 10 0 -i 1 -t -9.414 -30.0 0 -rz 90.0 -t 0 0 0 objects\\test-module.rad', 'radfiles': 'objects\\1axis2021-11-06_1100__C_1.16301_rtr_10.00000_tilt_32.06000_20modsx7rows_origin0,0.rad', 'sceneDict': {'tilt': 0, 'pitch': 10, 'clearance_height': 2.3, 'azimuth': 90.0, 'nMods': 20, 'nRows': 7, 'modulez': 0.02, 'axis_tilt': 0, 'originx': 0, 'originy': 0}}, 'octfile': '1axis_2021-11-06_1100.oct', 'AnalysisObj': {'octfile': '1axis_2021-11-06_1100.oct', 'name': '1axis_2021-11-06_1100', 'x': [1.46341, 1.100345, 0.7372787, 0.3742128, 0.01114695, -0.3519189, -0.7149848, -1.078051, -1.441117], 'y': [8.960805e-17, 6.737667e-17, 4.51453e-17, 2.291393e-17, 6.825537e-19, -2.154882e-17, -4.378019e-17, -6.601157e-17, -8.824294e-17], 'z': [1.408206, 1.635604, 1.863002, 2.0904, 2.317797, 2.545195, 2.772593, 2.999991, 3.227388], 'rearZ': [1.389562, 1.616959, 1.844357, 2.071755, 2.299153, 2.52655, 2.753948, 2.981346, 3.208743], 'mattype': ['a9.3.a2.2.0.cellPVmodule.6457', 'a9.3.a2.4.0.cellPVmodule.6457', 'a9.3.a2.7.0.cellPVmodule.6457', 'a9.3.a2.9.0.cellPVmodule.6457', 'a9.3.octtube1a.6457', 'a9.3.a2.2.1.cellPVmodule.6457', 'a9.3.a2.4.1.cellPVmodule.6457', 'a9.3.a2.7.1.cellPVmodule.6457', 'a9.3.a2.9.1.cellPVmodule.6457'], 'rearMat': ['a9.3.a2.2.0.cellPVmodule.2310', 'a9.3.a2.4.0.cellPVmodule.2310', 'a9.3.a2.7.0.cellPVmodule.2310', 'a9.3.a2.9.0.cellPVmodule.2310', 'sky', 'a9.3.a2.2.1.cellPVmodule.2310', 'a9.3.a2.4.1.cellPVmodule.2310', 'a9.3.a2.7.1.cellPVmodule.2310', 'a9.3.a2.9.1.cellPVmodule.2310'], 'Wm2Front': [316.83666666666664, 319.46896666666663, 322.48049999999995, 324.2786, 272.9574666666667, 329.6786666666667, 330.9568666666667, 331.09273333333334, 332.0593666666666], 'Wm2Back': [37.88070333333334, 34.49788, 32.862869999999994, 28.840656666666664, 41.98657, 33.188293333333334, 35.08822, 37.04478666666666, 38.90964], 'Back/FrontRatio': [0.1195587119797415, 0.10798473596735596, 0.10190621787606421, 0.08893762255370571, 0.15382036143716127, 0.10066830529433117, 0.10602020237017078, 0.11188610033090325, 0.11717640497295123], 'backRatio': [0.1195587119797415, 0.10798473596735596, 0.10190621787606421, 0.08893762255370571, 0.15382036143716127, 0.10066830529433117, 0.10602020237017078, 0.11188610033090325, 0.11717640497295123], 'rearX': [1.451733, 1.088667, 0.7256009, 0.3625351, -0.000530807, -0.3635967, -0.7266626, -1.089728, -1.452794], 'rearY': [8.889299e-17, 6.666162e-17, 4.443024e-17, 2.219887e-17, -3.250256e-20, -2.226388e-17, -4.449525e-17, -6.672662e-17, -8.895799e-17]}, 'Wm2Front': [316.83666666666664, 319.46896666666663, 322.48049999999995, 324.2786, 272.9574666666667, 329.6786666666667, 330.9568666666667, 331.09273333333334, 332.0593666666666], 'Wm2Back': [37.88070333333334, 34.49788, 32.862869999999994, 28.840656666666664, 41.98657, 33.188293333333334, 35.08822, 37.04478666666666, 38.90964], 'backRatio': [0.1195587119797415, 0.10798473596735596, 0.10190621787606421, 0.08893762255370571, 0.15382036143716127, 0.10066830529433117, 0.10602020237017078, 0.11188610033090325, 0.11717640497295123]}, '2021-11-06_1200': {'surf_azm': 90.0, 'surf_tilt': 9.27, 'theta': -9.27, 'ghi': 200, 'dhi': 197, 'skyfile': 'skies\\sky2_37.5_-77.33_2021-11-06_1200.rad', 'clearance_height': 1.954951469221026, 'radfile': 'objects\\1axis2021-11-06_1200__C_1.95495_rtr_10.00000_tilt_9.27000_20modsx7rows_origin0,0.rad', 'scene': {'module': {'x': 1.036, 'y': 2.092, 'z': 0.02, 'modulematerial': 'black', 'scenex': 1.046, 'sceney': 4.284, 'scenez': 0.1, 'numpanels': 2, 'bifi': 1, 'text': '! genbox black cellPVmodule 0.156 0.156 0.02 | xform -t -0.44 -2.142 0 -a 6 -t 0.176 0 0 -a 12 -t 0 0.176 0 -a 2 -t 0 2.192 0\r\n! genbox black octtube1a 1.046 0.04142135623730951 0.1 | xform -t -0.523 -0.020710678118654756 -0.15000000000000002\r\n! genbox black octtube1b 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 45 -t 0 0 -0.1\r\n! genbox black octtube1c 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 90 -t 0 0 -0.1\r\n! genbox black octtube1d 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 135 -t 0 0 -0.1 ', 'modulefile': 'objects\\test-module.rad', 'glass': False, 'offsetfromaxis': 0, 'xgap': 0.01, 'ygap': 0.1, 'zgap': 0.05}, 'modulefile': 'objects\\test-module.rad', 'gcr': 0.4284, 'text': '!xform -rx 9.27 -t 0 0 2.3 -a 20 -t 1.046 0 0 -a 7 -t 0 10 0 -i 1 -t -9.414 -30.0 0 -rz 90.0 -t 0 0 0 objects\\test-module.rad', 'radfiles': 'objects\\1axis2021-11-06_1200__C_1.95495_rtr_10.00000_tilt_9.27000_20modsx7rows_origin0,0.rad', 'sceneDict': {'tilt': 9.27, 'pitch': 10, 'clearance_height': 1.954951469221026, 'azimuth': 90.0, 'nMods': 20, 'nRows': 7, 'modulez': 0.02, 'axis_tilt': 0, 'originx': 0, 'originy': 0}}, 'octfile': '1axis_2021-11-06_1200.oct', 'AnalysisObj': {'octfile': '1axis_2021-11-06_1200.oct', 'name': '1axis_2021-11-06_1200', 'x': [1.694604, 1.271798, 0.8489932, 0.426188, 0.003382829, -0.4194224, -0.8422275, -1.265033, -1.687838], 'y': [1.037645e-16, 7.787519e-17, 5.198584e-17, 2.609649e-17, 2.071385e-19, -2.568221e-17, -5.157156e-17, -7.746091e-17, -1.033503e-16], 'z': [2.044687, 2.113697, 2.182706, 2.251716, 2.320726, 2.389735, 2.458745, 2.527755, 2.596765], 'rearZ': [2.022974, 2.091984, 2.160994, 2.230003, 2.299013, 2.368023, 2.437032, 2.506042, 2.575052], 'mattype': ['a9.3.a2.2.0.cellPVmodule.6457', 'a9.3.a2.4.0.cellPVmodule.6457', 'a9.3.a2.7.0.cellPVmodule.6457', 'a9.3.a2.9.0.cellPVmodule.6457', 'a9.3.octtube1a.6457', 'a9.3.a2.2.1.cellPVmodule.6457', 'a9.3.a2.4.1.cellPVmodule.6457', 'a9.3.a2.7.1.cellPVmodule.6457', 'a9.3.a2.9.1.cellPVmodule.6457'], 'rearMat': ['a9.3.a2.2.0.cellPVmodule.2310', 'a9.3.a2.4.0.cellPVmodule.2310', 'a9.3.a2.7.0.cellPVmodule.2310', 'a9.3.a2.9.0.cellPVmodule.2310', 'sky', 'a9.3.a2.2.1.cellPVmodule.2310', 'a9.3.a2.4.1.cellPVmodule.2310', 'a9.3.a2.7.1.cellPVmodule.2310', 'a9.3.a2.9.1.cellPVmodule.2310'], 'Wm2Front': [195.62653333333333, 195.71346666666668, 195.79826666666668, 196.2162, 196.3092333333333, 196.40113333333338, 196.53986666666665, 196.55846666666665, 196.57506666666666], 'Wm2Back': [23.727, 22.663216666666667, 21.86466, 20.963626666666666, 68.72899, 21.57405, 23.282780000000002, 24.19316666666667, 25.311679999999996], 'Back/FrontRatio': [0.12128660825861935, 0.11579735035768093, 0.11166875327078174, 0.10683888398502613, 0.3501039596000005, 0.10984631192057653, 0.11846279297978064, 0.12308319246558805, 0.12876277580078413], 'backRatio': [0.12128660825861935, 0.11579735035768093, 0.11166875327078174, 0.10683888398502613, 0.3501039596000005, 0.10984631192057653, 0.11846279297978064, 0.12308319246558805, 0.12876277580078413], 'rearX': [1.69106, 1.268254, 0.8454493, 0.4226441, -0.0001610871, -0.4229663, -0.8457714, -1.268577, -1.691382], 'rearY': [1.035475e-16, 7.765819e-17, 5.176884e-17, 2.587949e-17, -9.863739e-21, -2.589921e-17, -5.178856e-17, -7.767792e-17, -1.035673e-16]}, 'Wm2Front': [195.62653333333333, 195.71346666666668, 195.79826666666668, 196.2162, 196.3092333333333, 196.40113333333338, 196.53986666666665, 196.55846666666665, 196.57506666666666], 'Wm2Back': [23.727, 22.663216666666667, 21.86466, 20.963626666666666, 68.72899, 21.57405, 23.282780000000002, 24.19316666666667, 25.311679999999996], 'backRatio': [0.12128660825861935, 0.11579735035768093, 0.11166875327078174, 0.10683888398502613, 0.3501039596000005, 0.10984631192057653, 0.11846279297978064, 0.12308319246558805, 0.12876277580078413]}, '2021-11-06_1300': {'surf_azm': 90.0, 'surf_tilt': -14.87, 'theta': 14.87, 'ghi': 250, 'dhi': 249, 'skyfile': 'skies\\sky2_37.5_-77.33_2021-11-06_1300.rad', 'clearance_height': 1.7503054702295644, 'radfile': 'objects\\1axis2021-11-06_1300__C_1.75031_rtr_10.00000_tilt_-14.87000_20modsx7rows_origin0,0.rad', 'scene': {'module': {'x': 1.036, 'y': 2.092, 'z': 0.02, 'modulematerial': 'black', 'scenex': 1.046, 'sceney': 4.284, 'scenez': 0.1, 'numpanels': 2, 'bifi': 1, 'text': '! genbox black cellPVmodule 0.156 0.156 0.02 | xform -t -0.44 -2.142 0 -a 6 -t 0.176 0 0 -a 12 -t 0 0.176 0 -a 2 -t 0 2.192 0\r\n! genbox black octtube1a 1.046 0.04142135623730951 0.1 | xform -t -0.523 -0.020710678118654756 -0.15000000000000002\r\n! genbox black octtube1b 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 45 -t 0 0 -0.1\r\n! genbox black octtube1c 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 90 -t 0 0 -0.1\r\n! genbox black octtube1d 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 135 -t 0 0 -0.1 ', 'modulefile': 'objects\\test-module.rad', 'glass': False, 'offsetfromaxis': 0, 'xgap': 0.01, 'ygap': 0.1, 'zgap': 0.05}, 'modulefile': 'objects\\test-module.rad', 'gcr': 0.4284, 'text': '!xform -rx -14.87 -t 0 0 2.3 -a 20 -t 1.046 0 0 -a 7 -t 0 10 0 -i 1 -t -9.414 -30.0 0 -rz 90.0 -t 0 0 0 objects\\test-module.rad', 'radfiles': 'objects\\1axis2021-11-06_1300__C_1.75031_rtr_10.00000_tilt_-14.87000_20modsx7rows_origin0,0.rad', 'sceneDict': {'tilt': -14.87, 'pitch': 10, 'clearance_height': 1.7503054702295644, 'azimuth': 90.0, 'nMods': 20, 'nRows': 7, 'modulez': 0.02, 'axis_tilt': 0, 'originx': 0, 'originy': 0}}, 'octfile': '1axis_2021-11-06_1300.oct', 'AnalysisObj': {'octfile': '1axis_2021-11-06_1300.oct', 'name': '1axis_2021-11-06_1300', 'x': [1.650823, 1.23677, 0.8227171, 0.408664, -0.005389162, -0.4194423, -0.8334954, -1.247549, -1.661602], 'y': [1.010838e-16, 7.573034e-17, 5.037689e-17, 2.502345e-17, -3.29991e-19, -2.568343e-17, -5.103688e-17, -7.639032e-17, -1.017438e-16], 'z': [2.760052, 2.650113, 2.540175, 2.430236, 2.320297, 2.210358, 2.100419, 1.99048, 1.880541], 'rearZ': [2.738789, 2.62885, 2.518911, 2.408972, 2.299033, 2.189095, 2.079156, 1.969217, 1.859278], 'mattype': ['a9.3.a2.2.0.cellPVmodule.6457', 'a9.3.a2.4.0.cellPVmodule.6457', 'a9.3.a2.7.0.cellPVmodule.6457', 'a9.3.a2.9.0.cellPVmodule.6457', 'a9.3.octtube1a.6457', 'a9.3.a2.2.1.cellPVmodule.6457', 'a9.3.a2.4.1.cellPVmodule.6457', 'a9.3.a2.7.1.cellPVmodule.6457', 'a9.3.a2.9.1.cellPVmodule.6457'], 'rearMat': ['a9.3.a2.2.0.cellPVmodule.2310', 'a9.3.a2.4.0.cellPVmodule.2310', 'a9.3.a2.7.0.cellPVmodule.2310', 'a9.3.a2.9.0.cellPVmodule.2310', 'sky', 'a9.3.a2.2.1.cellPVmodule.2310', 'a9.3.a2.4.1.cellPVmodule.2310', 'a9.3.a2.7.1.cellPVmodule.2310', 'a9.3.a2.9.1.cellPVmodule.2310'], 'Wm2Front': [245.12846666666667, 245.0658, 244.99986666666666, 244.0445, 243.9407, 243.83343333333332, 242.9188333333333, 242.76886666666664, 242.61526666666668], 'Wm2Back': [33.25434666666667, 31.81038, 30.317716666666666, 27.925346666666666, 85.64816, 26.577423333333332, 27.017993333333333, 28.18733, 29.853220000000004], 'Back/FrontRatio': [0.13566033948862943, 0.12980289455772875, 0.1237453445742913, 0.11442680429127629, 0.3511009392818038, 0.10899782680406227, 0.11122185028119702, 0.11610720221180663, 0.12304706691829402], 'backRatio': [0.13566033948862943, 0.12980289455772875, 0.1237453445742913, 0.11442680429127629, 0.3511009392818038, 0.10899782680406227, 0.11122185028119702, 0.11610720221180663, 0.12304706691829402], 'rearX': [1.656469, 1.242416, 0.8283629, 0.4143098, 0.0002566268, -0.4137965, -0.8278496, -1.241903, -1.655956], 'rearY': [1.014295e-16, 7.607604e-17, 5.07226e-17, 2.536916e-17, 1.571386e-20, -2.533773e-17, -5.069117e-17, -7.604461e-17, -1.013981e-16]}, 'Wm2Front': [245.12846666666667, 245.0658, 244.99986666666666, 244.0445, 243.9407, 243.83343333333332, 242.9188333333333, 242.76886666666664, 242.61526666666668], 'Wm2Back': [33.25434666666667, 31.81038, 30.317716666666666, 27.925346666666666, 85.64816, 26.577423333333332, 27.017993333333333, 28.18733, 29.853220000000004], 'backRatio': [0.13566033948862943, 0.12980289455772875, 0.1237453445742913, 0.11442680429127629, 0.3511009392818038, 0.10899782680406227, 0.11122185028119702, 0.11610720221180663, 0.12304706691829402]}, '2021-11-06_1400': {'surf_azm': 90.0, 'surf_tilt': -36.95, 'theta': 36.95, 'ghi': 136, 'dhi': 135, 'skyfile': 'skies\\sky2_37.5_-77.33_2021-11-06_1400.rad', 'clearance_height': 1.012405558600545, 'radfile': 'objects\\1axis2021-11-06_1400__C_1.01241_rtr_10.00000_tilt_-36.95000_20modsx7rows_origin0,0.rad', 'scene': {'module': {'x': 1.036, 'y': 2.092, 'z': 0.02, 'modulematerial': 'black', 'scenex': 1.046, 'sceney': 4.284, 'scenez': 0.1, 'numpanels': 2, 'bifi': 1, 'text': '! genbox black cellPVmodule 0.156 0.156 0.02 | xform -t -0.44 -2.142 0 -a 6 -t 0.176 0 0 -a 12 -t 0 0.176 0 -a 2 -t 0 2.192 0\r\n! genbox black octtube1a 1.046 0.04142135623730951 0.1 | xform -t -0.523 -0.020710678118654756 -0.15000000000000002\r\n! genbox black octtube1b 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 45 -t 0 0 -0.1\r\n! genbox black octtube1c 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 90 -t 0 0 -0.1\r\n! genbox black octtube1d 1.046 0.04142135623730951 0.1 | xform -t -0.445 -0.020710678118654756 -0.05 -rx 135 -t 0 0 -0.1 ', 'modulefile': 'objects\\test-module.rad', 'glass': False, 'offsetfromaxis': 0, 'xgap': 0.01, 'ygap': 0.1, 'zgap': 0.05}, 'modulefile': 'objects\\test-module.rad', 'gcr': 0.4284, 'text': '!xform -rx -36.95 -t 0 0 2.3 -a 20 -t 1.046 0 0 -a 7 -t 0 10 0 -i 1 -t -9.414 -30.0 0 -rz 90.0 -t 0 0 0 objects\\test-module.rad', 'radfiles': 'objects\\1axis2021-11-06_1400__C_1.01241_rtr_10.00000_tilt_-36.95000_20modsx7rows_origin0,0.rad', 'sceneDict': {'tilt': -36.95, 'pitch': 10, 'clearance_height': 1.012405558600545, 'azimuth': 90.0, 'nMods': 20, 'nRows': 7, 'modulez': 0.02, 'axis_tilt': 0, 'originx': 0, 'originy': 0}}, 'octfile': '1axis_2021-11-06_1400.oct', 'AnalysisObj': {'octfile': '1axis_2021-11-06_1400.oct', 'name': '1axis_2021-11-06_1400', 'x': [1.356818, 1.014457, 0.6720971, 0.3297368, -0.01262347, -0.3549838, -0.6973441, -1.039704, -1.382065], 'y': [8.308113e-17, 6.21176e-17, 4.115408e-17, 2.019056e-17, -7.729649e-19, -2.173649e-17, -4.270001e-17, -6.366353e-17, -8.462706e-17], 'z': [3.346858, 3.089339, 2.83182, 2.574301, 2.316782, 2.059263, 1.801745, 1.544226, 1.286707], 'rearZ': [3.329276, 3.071758, 2.814239, 2.55672, 2.299201, 2.041682, 1.784163, 1.526644, 1.269125], 'mattype': ['a9.3.a2.2.0.cellPVmodule.6457', 'a9.3.a2.4.0.cellPVmodule.6457', 'a9.3.a2.7.0.cellPVmodule.6457', 'a9.3.a2.9.0.cellPVmodule.6457', 'a9.3.octtube1a.6457', 'a9.3.a2.2.1.cellPVmodule.6457', 'a9.3.a2.4.1.cellPVmodule.6457', 'a9.3.a2.7.1.cellPVmodule.6457', 'a9.3.a2.9.1.cellPVmodule.6457'], 'rearMat': ['a9.3.a2.2.0.cellPVmodule.2310', 'a9.3.a2.4.0.cellPVmodule.2310', 'a9.3.a2.7.0.cellPVmodule.2310', 'a9.3.a2.9.0.cellPVmodule.2310', 'sky', 'a9.3.a2.2.1.cellPVmodule.2310', 'a9.3.a2.4.1.cellPVmodule.2310', 'a9.3.a2.7.1.cellPVmodule.2310', 'a9.3.a2.9.1.cellPVmodule.2310'], 'Wm2Front': [121.17556666666667, 120.7421, 120.09243333333335, 119.5391, 80.94470333333334, 117.1721, 116.2254, 113.97833333333331, 112.63363333333332], 'Wm2Back': [23.816963333333334, 23.154840000000004, 22.38333333333333, 21.456746666666664, 46.39253, 17.265833333333333, 19.087196666666667, 19.252326666666665, 19.248693333333335], 'Back/FrontRatio': [0.1965475998247186, 0.19176946757206006, 0.18638265816920874, 0.17949413348881807, 0.5731314707212584, 0.14735321787452352, 0.1642242783624604, 0.16891067971386628, 0.1708949793121654], 'backRatio': [0.1965475998247186, 0.19176946757206006, 0.18638265816920874, 0.17949413348881807, 0.5731314707212584, 0.14735321787452352, 0.1642242783624604, 0.16891067971386628, 0.1708949793121654], 'rearX': [1.370042, 1.027682, 0.6853217, 0.3429614, 0.0006011179, -0.3417592, -0.6841195, -1.02648, -1.36884], 'rearY': [8.38909e-17, 6.292738e-17, 4.196385e-17, 2.100033e-17, 3.680785e-20, -2.092672e-17, -4.189024e-17, -6.285376e-17, -8.381728e-17]}, 'Wm2Front': [121.17556666666667, 120.7421, 120.09243333333335, 119.5391, 80.94470333333334, 117.1721, 116.2254, 113.97833333333331, 112.63363333333332], 'Wm2Back': [23.816963333333334, 23.154840000000004, 22.38333333333333, 21.456746666666664, 46.39253, 17.265833333333333, 19.087196666666667, 19.252326666666665, 19.248693333333335], 'backRatio': [0.1965475998247186, 0.19176946757206006, 0.18638265816920874, 0.17949413348881807, 0.5731314707212584, 0.14735321787452352, 0.1642242783624604, 0.16891067971386628, 0.1708949793121654]}}, 'cumulativesky': False, 'hub_height': 2.3}
[8]:
1.046

3. Explore Save Options#

The following lines offer ways to save your trackerdict or your demo object.

[9]:
demo.exportTrackerDict(trackerdict = demo.trackerdict, savefile = 'results\\test_reindexTrue.csv', reindex = False)
demo.save(savefile = 'results\\demopickle.pickle')

Saved to file results\demopickle.pickle