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

Test- Trigger api call on AWS API gateway-2 #326

Closed
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"import matplotlib.colors as colors\n",
"import matplotlib.pyplot as plt\n",
"\n",
"# import the focus_diverse_psfs functions from acstools \n",
"# import the focus_diverse_psfs functions from acstools\n",
"from acstools.focus_diverse_epsfs import psf_retriever, multi_psf_retriever, interp_epsf"
]
},
Expand All @@ -57,7 +57,7 @@
"id": "c5ce3a38",
"metadata": {},
"source": [
"Let's begin with downloading the focus-diverse ePSF FITS file that matches a single observation of our choosing. For this example, we will aim to retrieve the ePSF file for the observation rootname \"jds408jsq\", from GO-15445 (PI W. Keel). \n",
"Let's begin with downloading the focus-diverse ePSF FITS file that matches a single observation of our choosing. For this example, we will aim to retrieve the ePSF file for the observation rootname \"jds408jsq\", from GO-15445 (PI W. Keel).\n",
"\n",
"Please note that only IPPPSSOOT formats will work (e.g. jds408jsq), and the tool does not support inputs in the form of association IDs or product names (e.g. jds408010 or jds408011).\n",
"\n",
Expand Down Expand Up @@ -140,7 +140,7 @@
"\n",
"# open the file with astropy.io\n",
"with fits.open(retrieved_filepath) as hdu:\n",
" hdu.info() # Display basic information about the file"
" hdu.info() # Display basic information about the file"
]
},
{
Expand All @@ -165,11 +165,12 @@
"\n",
"\n",
"def show_ePSF(grid_index):\n",
" plt.imshow(ePSFs[grid_index], cmap='viridis', norm=colors.LogNorm(vmin=1e-4), origin='lower')\n",
" plt.imshow(ePSFs[grid_index], cmap='viridis',\n",
" norm=colors.LogNorm(vmin=1e-4), origin='lower')\n",
" cbar = plt.colorbar()\n",
" cbar.set_label('Fractional Energy')\n",
" \n",
" \n",
"\n",
"\n",
"widgets.interact(show_ePSF, grid_index=(0, 89, 1))"
]
},
Expand Down Expand Up @@ -277,7 +278,7 @@
"outputs": [],
"source": [
"# # use astroquery to grab ACS/WFC observations from GO-13376 (PI K. McQuinn)\n",
"obsTable = Observations.query_criteria(obs_collection='HST', proposal_id=\"13376\", \n",
"obsTable = Observations.query_criteria(obs_collection='HST', proposal_id=\"13376\",\n",
" instrument_name=\"ACS/WFC\", provenance_name=\"CALACS\")\n",
"\n",
"# retrieve the data products for the above observations\n",
Expand Down Expand Up @@ -400,7 +401,7 @@
"source": [
"# # get interpolated ePSF in detector space with specified sub-pixel shifts\n",
"P = interp_epsf(ePSFs, x, y, chip,\n",
" pixel_space=True, \n",
" pixel_space=True,\n",
" subpixel_x=0.77, subpixel_y=0.33)\n",
"\n",
"plt.imshow(P, cmap='viridis', norm=colors.LogNorm(vmin=1e-4), origin='lower')\n",
Expand Down
Loading