{ "cells": [ { "cell_type": "markdown", "id": "0", "metadata": {}, "source": [ "# Scan patterns\n", "\n", "This notebook shows all the possible scan configurations." ] }, { "cell_type": "code", "execution_count": null, "id": "1", "metadata": {}, "outputs": [], "source": [ "from maria.cmb import generate_cmb_patch\n", "\n", "cmb_patch = generate_cmb_patch(width=5, center=(150, -45)) \n", "\n", "cmb_patch.plot(cmap=\"cmb\")" ] }, { "cell_type": "code", "execution_count": null, "id": "2", "metadata": {}, "outputs": [], "source": [ "from maria import Planner\n", "\n", "planner = Planner(target=cmb_patch, site=\"llano_de_chajnantor\", constraints={\"el\": (40, 90)})" ] }, { "cell_type": "code", "execution_count": null, "id": "3", "metadata": {}, "outputs": [], "source": [ "plans = planner.generate_plans(total_duration=900, \n", " scan_pattern=\"daisy\",\n", " scan_options={\"radius\": 1e0, \"speed\": 2e-1})\n", "plans[0].plot()\n", "plans[0].plot_counts(instrument=\"test/1deg\")" ] }, { "cell_type": "code", "execution_count": null, "id": "4", "metadata": {}, "outputs": [], "source": [ "plans = planner.generate_plans(total_duration=900, \n", " scan_pattern=\"raster\",\n", " scan_options={\"radius\": 1e0, \"n\": 21, \"speed\": 2e-1})\n", "plans[0].plot()\n", "plans[0].plot_counts(instrument=\"test/1deg\")\n" ] }, { "cell_type": "code", "execution_count": null, "id": "5", "metadata": {}, "outputs": [], "source": [ "plans = planner.generate_plans(total_duration=900, \n", " scan_pattern=\"double_circle\",\n", " scan_options={\"radius\": 1e0, \n", " \"ratio\": 0.75, \n", " \"speed\": 2e-1})\n", "plans[0].plot()\n", "plans[0].plot_counts(instrument=\"test/1deg\")" ] }, { "cell_type": "code", "execution_count": null, "id": "6", "metadata": {}, "outputs": [], "source": [ "plans = planner.generate_plans(total_duration=900, \n", " scan_pattern=\"lissajous\",\n", " scan_options={\"x_throw\": 1e0, \n", " \"y_throw\": 0.75,\n", " \"speed\": 2e-1})\n", "plans[0].plot()\n", "plans[0].plot_counts(instrument=\"test/1deg\")" ] } ], "metadata": { "kernelspec": { "display_name": "maria", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.13.2" } }, "nbformat": 4, "nbformat_minor": 5 }