-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Thomas Morris
committed
Feb 21, 2024
1 parent
2b316a0
commit b333cba
Showing
23 changed files
with
350 additions
and
165 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
=========== | ||
Instruments | ||
=========== | ||
|
||
The observing instrument is instantiated as an ``Instrument``. | ||
The simplest way to get an instrument is to grab a pre-defined one, e.g.:: | ||
|
||
# The Atacama Cosmology Telescope | ||
act = maria.get_instrument('ACT') | ||
|
||
# The Atacama Large Millimeter Array | ||
alma = maria.get_instrument('ALMA') | ||
|
||
# MUSTANG-2 | ||
m2 = maria.get_instrument('MUSTANG-2') | ||
|
||
|
||
+++++++++++++++++++++++ | ||
Customizing Instruments | ||
+++++++++++++++++++++++ | ||
|
||
One way to customize instruments is to load a pre-defined instrument and pass extra parameters. | ||
For example, we can give ACT twice the resolution with | ||
|
||
.. code-block:: python | ||
act = maria.get_instrument('ACT', primary_size=12) | ||
Custom arrays of detectors are a bit more complicated. For example: | ||
|
||
.. code-block:: python | ||
f090 = {"center": 90, "width": 30} | ||
f150 = {"center": 150, "width": 30} | ||
dets = {"n": 500, | ||
"field_of_view": 2 | ||
"array_shape": "hex", | ||
"bands": [f090, f150]} | ||
my_custom_array = maria.get_instrument(dets=dets) | ||
Actually, there are several valid ways to define an array of detectors. | ||
These are all valid: | ||
|
||
.. code-block:: python | ||
f090 = {"center": 90, "width": 30} | ||
f150 = {"center": 150, "width": 30} | ||
dets = {"n": 500, | ||
"field_of_view": 2 | ||
"array_shape": "hex", | ||
"bands": [f090, f150]} | ||
my_custom_array = maria.get_instrument(dets=dets) |
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
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
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
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
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
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
Empty file.
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
Oops, something went wrong.