Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High cadence scans #316

Merged
merged 3 commits into from
Jan 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/run_tiny_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ set -e
# * updated `TOASTDATACOMMIT` below to the latest commit
# * run `run_tiny_tests.sh` again and check that the test passes

TOASTDATACOMMIT=d50dfea8a1d939bfc4681171198f5c31eed5fee7
TOASTDATACOMMIT=6db99526a590fbbbd858eddbdcc5cd54f1e6d385

if [ "x${TYPES}" = "x" ]; then
TYPES="satellite ground ground_simple ground_multisite"
Expand Down
1 change: 1 addition & 0 deletions pipelines/toast_ground_sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ def create_observation(args, comm, telescope, ces, verbose=True):
el=ces.el,
scanrate=args.scan_rate,
scan_accel=args.scan_accel,
sinc_modulation=args.scan_sinc_modulate,
CES_start=None,
CES_stop=None,
sun_angle_min=args.sun_angle_min,
Expand Down
1 change: 1 addition & 0 deletions pipelines/toast_ground_sim_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ def create_observations(args, comm, schedule):
el=ces.el,
scanrate=args.scan_rate,
scan_accel=args.scan_accel,
sinc_modulation=args.scan_sinc_modulate,
CES_start=None,
CES_stop=None,
sun_angle_min=args.sun_angle_min,
Expand Down
10 changes: 10 additions & 0 deletions src/toast/pipeline_tools/madam.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,16 @@ def setup_madam(args):
pars["fsample"] = args.sample_rate
pars["iter_max"] = args.madam_iter_max
pars["file_root"] = args.madam_prefix

# Translate boolean values. Madam knows how to do this but it
# simplifies pipeline_tools/madam.py

for key, value in pars.items():
if value == "T":
pars[key] = True
elif value == "F":
pars[key] = False

return pars


Expand Down
20 changes: 18 additions & 2 deletions src/toast/pipeline_tools/todground.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,22 @@ def add_todground_args(parser):
type=np.float,
help="Scanning rate change [deg / s^2]",
)
parser.add_argument(
"--scan-sinc-modulate",
required=False,
action="store_true",
help="Modulate scan rate so integration depth is constant at "
"all declinations. The --scan-rate becomes the *minimum* scan rate.",
dest="scan_sinc_modulate",
)
parser.add_argument(
"--no-scan-sinc-modulate",
required=False,
action="store_false",
help="Use constant sky scan rate according to --scan-rate.",
dest="scan_sinc_modulate",
)
parser.set_defaults(scan_sinc_modulate=False)
parser.add_argument(
"--sun-angle-min",
required=False,
Expand Down Expand Up @@ -183,7 +199,7 @@ def add_todground_args(parser):
"--sort-schedule",
required=False,
action="store_true",
help="Reorder the observing schedule so that observations of the"
help="Reorder the observing schedule so that observations of the "
"same patch are consecutive. This will reduce the sky area observed "
"by individual process groups.",
dest="sort_schedule",
Expand All @@ -192,7 +208,7 @@ def add_todground_args(parser):
"--no-sort-schedule",
required=False,
action="store_false",
help="Do not reorder the observing schedule so that observations of the"
help="Do not reorder the observing schedule so that observations of the "
"same patch are consecutive.",
dest="sort_schedule",
)
Expand Down
Loading