-
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
b333cba
commit d9eb82c
Showing
23 changed files
with
203 additions
and
164 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
Papers | ||
====== | ||
|
||
`Morris et al. (2022) <https://arxiv.org/abs/2111.01319>`_ | ||
`T. W. Morris et al. (2022) <https://arxiv.org/abs/2111.01319>`_ | ||
|
||
`J. van Marrewijk, T. W. Morris et al. (2024) <https://arxiv.org/abs/2402.10731>`_ |
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 |
---|---|---|
@@ -1,19 +1,72 @@ | ||
Customizing pointings | ||
+++++++++++++++++++++ | ||
=========== | ||
Pointings | ||
=========== | ||
|
||
We can simulate observing (and later mapping) some celestial signal by supplying the simulation with a map to use as the ground truth. | ||
The observing pointing is instantiated as an ``Pointing``. | ||
The simplest way to get an pointing is to grab a pre-defined one, e.g.:: | ||
|
||
# The Atacama Cosmology Telescope | ||
act = maria.get_pointing('ACT') | ||
|
||
|
||
Simulations are made up of an array (defining the instrument), a site (where on earth it is), and a pointing (defining how it observes). Simulations for a few different telescopes might be instantiated as:: | ||
# The Atacama Large Millimeter Array | ||
alma = maria.get_pointing('ALMA') | ||
|
||
# MUSTANG-2 | ||
mustang2_sim = Simulation(array='MUSTANG-2', | ||
site='green_bank', | ||
pointing='daisy', | ||
map_file=path_to_some_fits_file, # Input files must be a fits file. | ||
map_units='Jy/pixel', # Units of the input map in Kelvin Rayleigh Jeans (K, defeault) or Jy/pixel | ||
map_res=pixel_size, | ||
map_center=(10, 4.5), # RA & Dec. in degrees | ||
map_freqs=[90], | ||
degrees=True) | ||
m2 = maria.get_pointing('MUSTANG-2') | ||
|
||
|
||
+++++++++++++++++++++++ | ||
Customizing Pointings | ||
+++++++++++++++++++++++ | ||
|
||
One way to customize pointings is to load a pre-defined pointing and pass extra parameters. | ||
For example, we can give ACT twice the resolution with | ||
|
||
.. code-block:: python | ||
act = maria.get_pointing('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_pointing(dets=dets) | ||
Actually, there are several valid ways to define an array of detectors. | ||
These are all valid: | ||
|
||
.. code-block:: python | ||
dets = { | ||
"subarray-1": { | ||
"n": 500, | ||
"field_of_view": 2, | ||
"array_shape": "hex", | ||
"bands": [{"center": 30, "width": 5}, {"center": 40, "width": 5}], | ||
}, | ||
"subarray-2": { | ||
"n": 500, | ||
"field_of_view": 2, | ||
"array_shape": "hex", | ||
"bands": [{"center": 90, "width": 5}, {"center": 150, "width": 5}], | ||
}, | ||
} | ||
dets = { | ||
"n": 500, | ||
"field_of_view": 2, | ||
"array_shape": "hex", | ||
"bands": ["alma/f043", "alma/f078"], | ||
} | ||
dets = {"file": "path_to_some_dets_file.csv"} |
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
Oops, something went wrong.