Created
August 13, 2015 17:41
-
-
Save akx/61302f35a9a58bd9371d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -- encoding: UTF-8 -- | |
def dims_to_volume(dims): | |
return dims[0] * dims[1] * dims[2] | |
# Taken from http://www.consumerreports.org/cro/2012/01/best-in-cargo-capacity-and-fuel-economy/index.htm | |
# [].slice.call(document.querySelector("table").querySelectorAll("td+td+td")).map(function(t){return parseFloat(t.innerHTML)}) | |
cargo_volume_cuft = [ | |
61, 61.5, 70.5, 70.5, 62, 32, 28.5, 35.5, 33, 26, 37, 31.5, 28.5, 30.5, 36, 33, 32.5, 26, 26, 25.5, 35, 35, 31.5, | |
31, 28, 26.5, 32, 32, 31, 30, 29.5, 28, 33.5, 40.5, 36.5, 34.5, 35.5, 37.5, 34.5, 33.5, 33.5, 33.5, 47, 40.5, 40.5, | |
34, 39, 33, 47.5, 44.5, 44, 42, 39.5, 37.5, 36.5, 36.5, 33.5, 32, 28, 24.5, 24.5, 34, 39, 34, 31.5, 34, 28.5 | |
] | |
cartridge_size_mm = (102, 105.4, 21.5) # http://www-03.ibm.com/systems/storage/media/lto_5/specifications.html | |
ssd_size_mm = (70, 100, 15) # http://www.snia.org/forums/sssi/knowledge/formfactors | |
tb_per_cartridge = 2.5 * 2.5 # 2.5 native capacity, 2.5:1 average compression | |
tb_per_ssd = 16 | |
avg_cargo_volume_cuft = sum(cargo_volume_cuft) / len(cargo_volume_cuft) | |
cargo_volume_m3 = avg_cargo_volume_cuft / 35.3147 | |
cargo_volume_mm3 = cargo_volume_m3 * 1000000000 | |
cartridge_volume_mm3 = dims_to_volume(cartridge_size_mm) | |
ssd_volume_mm3 = dims_to_volume(ssd_size_mm) | |
ssds_per_station_wagon = cargo_volume_mm3 / ssd_volume_mm3 | |
cartridges_per_station_wagon = cargo_volume_mm3 / cartridge_volume_mm3 | |
lto6_tb_per_station_wagon = tb_per_cartridge * cartridges_per_station_wagon | |
samsung_tb_per_station_wagon = tb_per_ssd * ssds_per_station_wagon | |
print("LTO6 TBs per station wagon:", lto6_tb_per_station_wagon) | |
print("Samsung SSD TBs per station wagon:", samsung_tb_per_station_wagon) | |
# > LTO6 TBs per station wagon: 27 598 | |
# > Samsung SSD TBs per station wagon: 155 531 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment