Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified Assignment 4 - Deadline 17 oct 2017/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import os
import numpy as np
import pandas as pd
import scipy as sp

os.chdir("/Users/chenrujing/Dropbox/Iris/Scientific_Python_Assignments_POLIMI_EETBS/Assignment 8 Pandas C Deadline Nov 28th 2017/Assignment8_CHEN/RLF Method")
BeamIrradiance_DF=pd.read_csv("BeamIrradiance.csv",sep=";",index_col=0)
windows_DF=pd.read_csv("windows.csv",sep=";",index_col=0)
DiffuseIrradiance_DF=pd.read_csv("DiffuseIrradiance.csv",sep=";",index_col=0)



Latitude=42
name_of_columns=BeamIrradiance_DF.columns.get_values()
name_of_columns_as_numbers = name_of_columns.astype(np.int32, copy=False)

def PXI_finder(DirectionoftheWall,Latitude):
ED=sp.interp(Latitude,name_of_columns_as_numbers,BeamIrradiance_DF.loc[DirectionoftheWall])
Ed=sp.interp(Latitude,name_of_columns_as_numbers,DiffuseIrradiance_DF.loc[DirectionoftheWall])
PXI=ED+Ed
return PXI

PXI_values=[]
for index in windows_DF.index.tolist():
print index
PXI_values = np.append(PXI_values,PXI_finder(windows_DF["Direction"][index],Latitude))


windows_DF["PXI"]=PXI_values
windows_DF.to_csv("windows_completed_withPXI.csv")
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
;20;25;30;35;40;45;50;55;60
N;125;106;92;84;81;85;96;112;136
NE;460;449;437;425;412;399;386;374;361
NW;460;449;437;425;412;399;386;374;361
E;530;543;552;558;560;559;555;547;537
W;530;543;552;558;560;559;555;547;537
SE;282;328;369;405;436;463;485;503;517
SW;282;328;369;405;436;463;485;503;517
S;0;60;139;214;283;348;408;464;515
H;845;840;827;806;776;738;691;637;574
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
;20;25;30;35;40;45;50;55;60
N;128;115;103;93;84;76;69;62;55
NE;177;169;162;156;151;147;143;140;137
NW;177;169;162;156;151;147;143;140;137
E;200;196;193;190;189;188;187;187;187
W;200;196;193;190;189;188;187;187;187
SE;204;203;203;204;205;207;210;212;215
SW;204;203;203;204;205;207;210;212;215
S;166;193;196;200;204;209;214;219;225
H;170;170;170;170;170;170;170;170;170
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Exposure;SingleFamilyDetached;MultiFamily
N;0.44;0.27
NE;0.21;0.43
E;0.31;0.56
SE;0.37;0.54
S;0.47;0.53
SW;0.58;0.61
W;0.56;0.65
NW;0.46;0.57
H;0.58;0.73
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Type;ID;DrapesLightOpen;DrapesDarkClosed;DrapesLightClosed;RollerOpaqueDark;RollerOpqaueWhite;RollerTranslucentLight;BlindsMedium;BlindsDark
clear_1Layer;1a;0.64;0.71;0.45;0.64;0.34;0.44;0.74;0.66
HeatAbsorbing_1Layer;1c;0.68;0.72;0.50;0.67;0.40;0.49;0.76;0.69
Clear_2Layer;5a;0.72;0.81;0.57;0.76;0.48;0.55;0.82;0.74
lowEpsillonHighSolar_2Layers;17c;0.76;0.86;0.64;0.82;0.57;0.62;0.86;0.79
lowEpsillonLowSolar_2Layers;25a;0.79;0.88;0.68;0.85;0.60;0.66;0.88;0.82
HeatAbsorbing_2Layers;5c;0.73;0.82;0.59;0.77;0.51;0.58;0.83;0.76
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
;20;25;30;35;40;45;50;55;60
N;2.8;2.1;1.4;1.5;1.7;1.0;0.8;0.9;0.8
NE;1.4;1.5;1.6;1.2;1.3;1.3;0.9;0.9;0.8
NW;1.4;1.5;1.6;1.2;1.3;1.3;0.9;0.9;0.8
E;1.2;1.2;1.1;1.1;1.1;1.0;1.0;0.9;0.8
W;1.2;1.2;1.1;1.1;1.1;1.0;1.0;0.9;0.8
SE;2.1;1.8;2.0;1.7;1.5;1.6;1.4;1.2;1.1
SW;2.1;1.8;2.0;1.7;1.5;1.6;1.4;1.2;1.1
S;20.0;14.0;6.9;4.7;3.3;2.7;2.1;1.7;1.4
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Name;Direction;width;Height;Area;Window_ID;Frame_type;Frame_material;U;SHGC;HF;Q heating;SLF;Doh;Xoh;Fshd;IntShading_ID;IntShading_closeness;IAC_cl;IAC;Tx;Ed;ED;PXI;FFs;C_value;CF;Qcooling
east;E;8;1.8;0;5c;Fixed;Wood;0;0;0;0;0;0.9;0.3;0;DrapesLightOpen;0.4;0;0;1;0;0;0;0;0;0;0
west;W;8;1.8;0;5c;Fixed;Wood;0;0;0;0;0;0.9;0.3;0;DrapesLightOpen;0.4;0;0;1;0;0;0;0;0;0;0
south-Fixed;S;2;1.8;0;5c;Fixed;Wood;0;0;0;0;0;0.9;0.3;0;DrapesLightOpen;0.4;0;0;1;0;0;0;0;0;0;0
south-Operable;S;2;1.8;0;5c;Operable;Wood;0;0;0;0;0;0.9;0.3;0;DrapesLightOpen;0.4;0;0;0.64;0;0;0;0;0;0;0
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
<table border="1" class="dataframe">
<thead>
<tr style="text-align: right;">
<th></th>
<th>Direction</th>
<th>width</th>
<th>Height</th>
<th>Area</th>
<th>Window_ID</th>
<th>Frame_type</th>
<th>Frame_material</th>
<th>U</th>
<th>SHGC</th>
<th>HF</th>
<th>Q heating</th>
<th>SLF</th>
<th>Doh</th>
<th>Xoh</th>
<th>Fshd</th>
<th>IntShading_ID</th>
<th>IntShading_closeness</th>
<th>IAC_cl</th>
<th>IAC</th>
<th>Tx</th>
<th>Ed</th>
<th>ED</th>
<th>PXI</th>
<th>FFs</th>
<th>C_value</th>
<th>CF</th>
<th>Qcooling</th>
</tr>
<tr>
<th>Name</th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<th>east</th>
<td>E</td>
<td>8</td>
<td>1.8</td>
<td>0</td>
<td>5c</td>
<td>Fixed</td>
<td>Wood</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0.9</td>
<td>0.3</td>
<td>0</td>
<td>DrapesLightOpen</td>
<td>0.4</td>
<td>0.73</td>
<td>0</td>
<td>1.00</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<th>west</th>
<td>W</td>
<td>8</td>
<td>1.8</td>
<td>0</td>
<td>5c</td>
<td>Fixed</td>
<td>Wood</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0.9</td>
<td>0.3</td>
<td>0</td>
<td>DrapesLightOpen</td>
<td>0.4</td>
<td>0.73</td>
<td>0</td>
<td>1.00</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<th>south-Fixed</th>
<td>S</td>
<td>2</td>
<td>1.8</td>
<td>0</td>
<td>5c</td>
<td>Fixed</td>
<td>Wood</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0.9</td>
<td>0.3</td>
<td>0</td>
<td>DrapesLightOpen</td>
<td>0.4</td>
<td>0.73</td>
<td>0</td>
<td>1.00</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<th>south-Operable</th>
<td>S</td>
<td>2</td>
<td>1.8</td>
<td>0</td>
<td>5c</td>
<td>Operable</td>
<td>Wood</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0.9</td>
<td>0.3</td>
<td>0</td>
<td>DrapesLightOpen</td>
<td>0.4</td>
<td>0.73</td>
<td>0</td>
<td>0.64</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
</tbody>
</table>
Loading