Skip to content

Commit

Permalink
update scale_intensity function for single frames
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-houghton committed Oct 29, 2024
1 parent f387a6c commit 01c62ab
Show file tree
Hide file tree
Showing 25 changed files with 261 additions and 266 deletions.
9 changes: 1 addition & 8 deletions examples/notebooks/tools/add_contours_to_ccd_image.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "87ffc44bcbdd4122829c89eee2877a0c",
"model_id": "74776931f59e4c52bd9ea2b0d1420d71",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -319,13 +319,6 @@
"for i in range(len(ccd_x)):\n",
" plt.plot(ccd_x[i], ccd_y[i], color='gray', linestyle='--')"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
26 changes: 13 additions & 13 deletions examples/notebooks/tools/add_contours_to_mosaic.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "20c5baa6d8cf49d08c3661729eec2e66",
"model_id": "4fae5e7c9c0c48a087b85e7296b65a20",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -85,7 +85,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "50b14c0962fb4f4a921627b3faa05b61",
"model_id": "1a8480d6d6214403b4384aecd7b9d7da",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -99,7 +99,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "57966e0ac5554f309f7b0dd4bb2e5f8e",
"model_id": "8303039f3b2e4983b689b7689c28ccdd",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -113,7 +113,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "06127ed4dbc947fabe5b54b7a4a98115",
"model_id": "c49e996f93624043a86795718559324a",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -127,7 +127,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "ef4914373dbf49668c0401329ac96d2c",
"model_id": "209a7b6c3ed947c0a5c544acc79dac80",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -164,7 +164,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "29177fb9c5494a6c8aade4a15cc9cdc8",
"model_id": "465837288a34466b8e50c144bb806a56",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -178,7 +178,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "e624090a694e4230b2467a4c21f841be",
"model_id": "814e34f6d38c40798388f3bdb43e6792",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -192,7 +192,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "81a88f467c0f45f19ebffc6f1e96799d",
"model_id": "8aa8684748b543fab5a48e59c2e7c679",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -206,7 +206,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "47452bb50ad649c2bbcdc6d321713f3d",
"model_id": "916f99ce47aa4419be98a9d6e36d8cb3",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -220,7 +220,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "879a7a2e45de4d4f84c00aeaec13aa93",
"model_id": "1bfa6ed4d0194bd988abc06d06fd22a4",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -276,7 +276,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "77faa982ceb24e48ae4ffbe50571760c",
"model_id": "9238b0ce005a4373bccb1af62b4fc240",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -325,8 +325,8 @@
"projection_obj = cartopy.crs.NearsidePerspective(central_longitude=center_lat, central_latitude=center_lon)\n",
"\n",
"# create mosaic\n",
"frame_num = 0\n",
"mosaic = at.mosaic.create(prepped_images, prepped_skymap, frame_num, projection_obj, image_intensity_scales=scale)\n",
"dt = start_dt\n",
"mosaic = at.mosaic.create(prepped_images, prepped_skymap, dt, projection_obj, image_intensity_scales=scale)\n",
"print(mosaic)"
]
},
Expand Down
63 changes: 28 additions & 35 deletions examples/notebooks/tools/apply_calibration_rego.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 20,
"execution_count": 1,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -41,7 +41,7 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -53,13 +53,13 @@
},
{
"cell_type": "code",
"execution_count": 22,
"execution_count": 3,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "9ace6bc4f8ab4c26bfbc2a8da237eba7",
"model_id": "a33f48f6cfba4683a081033e505c46b5",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -81,7 +81,7 @@
},
{
"cell_type": "code",
"execution_count": 23,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -91,7 +91,7 @@
},
{
"cell_type": "code",
"execution_count": 24,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -101,7 +101,7 @@
},
{
"cell_type": "code",
"execution_count": 25,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand All @@ -110,7 +110,7 @@
"'rego-652'"
]
},
"execution_count": 25,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -122,16 +122,16 @@
},
{
"cell_type": "code",
"execution_count": 26,
"execution_count": 7,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[PosixPath('/home/darrenc/pyaurorax_data/REGO_CALIBRATION_RAYLEIGHS_IDLSAV/REGO_Rayleighs_15652_20141102-+_v01.sav')]"
"[PosixPath('/home/josh/pyaurorax_data/REGO_CALIBRATION_RAYLEIGHS_IDLSAV/REGO_Rayleighs_15652_20141102-+_v01.sav')]"
]
},
"execution_count": 26,
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -146,7 +146,7 @@
},
{
"cell_type": "code",
"execution_count": 27,
"execution_count": 8,
"metadata": {},
"outputs": [
{
Expand All @@ -156,7 +156,7 @@
"Calibration:\n",
" dataset : Dataset(...)\n",
" detector_uid : 15652\n",
" filename : /home/darrenc/pyaurorax_data/REGO_CALIBRATION_RAYLEIGHS_IDLSAV/REGO_Rayleighs_15652_20141102-+_v01.sav\n",
" filename : /home/josh/pyaurorax_data/REGO_CALIBRATION_RAYLEIGHS_IDLSAV/REGO_Rayleighs_15652_20141102-+_v01.sav\n",
" flat_field_multiplier : None\n",
" generation_info : CalibrationGenerationInfo(...)\n",
" rayleighs_perdn_persecond : 10.600000381469727\n",
Expand All @@ -174,16 +174,16 @@
},
{
"cell_type": "code",
"execution_count": 28,
"execution_count": 9,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[PosixPath('/home/darrenc/pyaurorax_data/REGO_CALIBRATION_FLATFIELD_IDLSAV/REGO_flatfield_15652_20141102-+_v01.sav')]"
"[PosixPath('/home/josh/pyaurorax_data/REGO_CALIBRATION_FLATFIELD_IDLSAV/REGO_flatfield_15652_20141102-+_v01.sav')]"
]
},
"execution_count": 28,
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -198,7 +198,7 @@
},
{
"cell_type": "code",
"execution_count": 29,
"execution_count": 10,
"metadata": {},
"outputs": [
{
Expand All @@ -208,7 +208,7 @@
"Calibration:\n",
" dataset : Dataset(...)\n",
" detector_uid : 15652\n",
" filename : /home/darrenc/pyaurorax_data/REGO_CALIBRATION_FLATFIELD_IDLSAV/REGO_flatfield_15652_20141102-+_v01.sav\n",
" filename : /home/josh/pyaurorax_data/REGO_CALIBRATION_FLATFIELD_IDLSAV/REGO_flatfield_15652_20141102-+_v01.sav\n",
" flat_field_multiplier : array(dims=(512, 512), dtype=>f8)\n",
" generation_info : CalibrationGenerationInfo(...)\n",
" rayleighs_perdn_persecond : None\n",
Expand All @@ -233,7 +233,7 @@
},
{
"cell_type": "code",
"execution_count": 30,
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -242,7 +242,7 @@
},
{
"cell_type": "code",
"execution_count": 31,
"execution_count": 12,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -271,7 +271,7 @@
},
{
"cell_type": "code",
"execution_count": 32,
"execution_count": 13,
"metadata": {},
"outputs": [
{
Expand All @@ -298,7 +298,7 @@
},
{
"cell_type": "code",
"execution_count": 33,
"execution_count": 14,
"metadata": {},
"outputs": [
{
Expand All @@ -318,7 +318,7 @@
},
{
"cell_type": "code",
"execution_count": 34,
"execution_count": 15,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -327,7 +327,7 @@
},
{
"cell_type": "code",
"execution_count": 35,
"execution_count": 16,
"metadata": {},
"outputs": [
{
Expand All @@ -354,7 +354,7 @@
},
{
"cell_type": "code",
"execution_count": 36,
"execution_count": 17,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -367,7 +367,7 @@
},
{
"cell_type": "code",
"execution_count": 37,
"execution_count": 18,
"metadata": {},
"outputs": [
{
Expand All @@ -387,7 +387,7 @@
},
{
"cell_type": "code",
"execution_count": 38,
"execution_count": 19,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -427,18 +427,11 @@
"cbar.ax.set_yticklabels(cbar_ticknames)\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "pyaurorax39",
"display_name": "pyaurorax",
"language": "python",
"name": "python3"
},
Expand Down
Loading

0 comments on commit 01c62ab

Please sign in to comment.