Created
May 22, 2019 15:03
-
-
Save ziotom78/8273216dfcc4f18c3e8e82140d06a872 to your computer and use it in GitHub Desktop.
Save Strip bandpasses using Stripeline
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
import Stripeline | |
import DelimitedFiles | |
db = Stripeline.InstrumentDB() | |
for horn in keys(db.focalplane) |> collect |> sort | |
curdet = db.detectors[db.focalplane[horn].polid] | |
curdet.band == "W" && continue | |
response = curdet.bandshape | |
freqs = range(response.lowest_frequency_hz, response.highest_frequency_hz, length=response.num_of_frequencies) ./ 1e9 | |
filename = "$(horn).txt" | |
open(filename, "w") do io | |
DelimitedFiles.writedlm(io, [freqs response.bandshape]) | |
end | |
println("$horn bandpass saved to $filename") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment