Pulling my hair out. My data is such that I want to look up by Temperature (not unique) and Humidity (not unique) and by Heating Load (not exact, nor unique) to return Power Demand and Fuel: A subset of the data would be such as:
Tamb (F) Rel_Hum (%) Heating Capacity (MBH) PowerDemand (kW) FuelPressure (0/1) Cooling Capacity (Ton) Power Output (kW)
59 0 240.220 6.5 0 48.7 25.894
59 0 341.768 13 0 63.2 51.722
59 0 449.750 19.5 0 77.8 77.477
59 0 569.015 26 0 93.1 103.143
59 0 694.804 32.5 0 108.4 128.716
59 0 821.576 39 0 123.0 154.206
59 0 947.941 45.5 0 136.8 179.600
59 0 1073.918 52 0 149.9 204.889
59 0 1200.767 58.5 0 162.3 229.049
59 0 1200.767 65 0 162.3 229.049
59 20 240.109 6.5 0 48.7 25.894
59 20 340.916 13 0 63.0 51.722
59 20 449.493 19.5 0 77.8 77.477
59 20 568.679 26 0 93.0 103.143
59 20 694.327 32.5 0 108.3 128.716
for example I want to look up based on 59 Tamb and 20 RelHumidity and a heating value of 463.4 and return a power demand of 77.477. The heating values should be less than or equal to the value in the data. That's the part that is throwing me. Since the values for heating won't match (in most cases) a value in the table I want to pick the value that is just lower in value and then return the power demand associated with those three inputs: tamb, relhumidity and heating value. I can sort the table and move columns around. I need to do this 8,760 times X 3 different values (power demand, cooling and fuel input).
Bookmarks