diff --git a/00_install/environment.yml b/00_install/environment.yml index abae118..44112c7 100644 --- a/00_install/environment.yml +++ b/00_install/environment.yml @@ -5,16 +5,17 @@ dependencies: - notebook >= 6.0 - matplotlib >= 3.2 - ipympl - - numpy >= 1.20 + - numpy >= 2.0 - packaging - pip - python == 3.11 - pyyaml - pip: - asdf_standard - - asdf - - asdf-astropy - - astropy >= 6.0 - - gwcs >= 0.20 + - asdf == 4.1.0 + - asdf-astropy == 0.7.1 + - astropy >= 7.0 + - gwcs >= 0.24 - stpipe - - romancal >= 0.17.0 + - romancal >= 0.18.0 + - webbpsf == 1.5.0 diff --git a/06-Roman-WCS/Roman_Imaging_WCS.ipynb b/06-Roman-WCS/Roman_Imaging_WCS.ipynb index 59826eb..b032b5d 100644 --- a/06-Roman-WCS/Roman_Imaging_WCS.ipynb +++ b/06-Roman-WCS/Roman_Imaging_WCS.ipynb @@ -164,7 +164,7 @@ "outputs": [], "source": [ "ax = plt.subplot(projection=image.meta.wcs)\n", - "plt.imshow(image.data, vmin=10, vmax=60, origin='lower')\n", + "plt.imshow(image.data, vmin=.1, vmax=.4, origin='lower')\n", "plt.gray()\n", "plt.grid(color='white', ls='solid')\n", "ax.coords[0].set_format_unit(u.degree)\n", @@ -351,6 +351,14 @@ "metadata": {}, "outputs": [], "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "6d856f47-948e-41b3-9858-5134b9a6843b", + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": { @@ -369,7 +377,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.10" + "version": "3.12.9" } }, "nbformat": 4, diff --git a/07-Roman_Data_Models/07-Roman_Data_Models.ipynb b/07-Roman_Data_Models/07-Roman_Data_Models.ipynb index 4e1981d..32ae7e6 100644 --- a/07-Roman_Data_Models/07-Roman_Data_Models.ipynb +++ b/07-Roman_Data_Models/07-Roman_Data_Models.ipynb @@ -400,21 +400,10 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "id": "6aa83c51", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "type of data model: \n", - "shape of error array: (4088, 4088)\n", - "type of dm.meta.insrument: \n", - "optical_element = F158\n" - ] - } - ], + "outputs": [], "source": [ "import roman_datamodels as rdm\n", "dm = rdm.open('../data/r0000101001001001001_0001_wfi01_cal.asdf')\n", @@ -535,7 +524,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "id": "2fb4866f", "metadata": {}, "outputs": [], @@ -579,19 +568,10 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "id": "1d638ac4", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "\n", - "WFI01\n" - ] - } - ], + "outputs": [], "source": [ "import astropy.time as atime\n", "meta = {}\n", @@ -611,7 +591,7 @@ "gainref = rdnode.GainRef()\n", "gainref['meta'] = meta\n", "# Using small array since schema isn't specific about size\n", - "gainref['data'] = np.ones((100, 100), dtype=np.float32) * u.electron/u.DN\n", + "gainref['data'] = np.ones((100, 100), dtype=np.float32)\n", "af = asdf.AsdfFile()\n", "af.tree = {'roman': gainref}\n", "af.write_to('gainref.asdf')\n", @@ -659,7 +639,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.10" + "version": "3.12.9" } }, "nbformat": 4, diff --git a/data/download.py b/data/download.py index ded2057..15f638a 100644 --- a/data/download.py +++ b/data/download.py @@ -8,18 +8,34 @@ REMOTE_URL = "https://data.science.stsci.edu/redirect/Roman/Roman_Data_Workshop/" REMOTE_PATHS = [ - "ExampleData/Build16/r0000101001001001001_0001_wfi01_uncal.asdf", - "ExampleData/Build16/r0000101001001001001_0001_wfi01_cal.asdf", - "ExampleData/Build16/r0000201001001001001_0003_wfi12_uncal.asdf", - "ExampleData/Build16/r0000201001001001001_0003_wfi12_cal.asdf", - "ExampleData/Build16/r0000301001001001001_0001_wfi14_uncal.asdf", - "ExampleData/Build16/r0000301001001001001_0001_wfi14_cal.asdf", - "ExampleData/Build16/r00001_p_v01001001001_r274dp63x31y80_f158_coadd_cat.asdf", - "ExampleData/Build16/r00001_p_v01001001001_r274dp63x31y80_f158_coadd_segm.asdf", - "ExampleData/Build16/r00001_p_v01001001001_r274dp63x31y80_f158_coadd_i2d.asdf", + "ExampleData/Build17/r0000101001001001001_0001_wfi01_uncal.asdf", + "ExampleData/Build17/r0000101001001001001_0001_wfi01_cal.asdf", + "ExampleData/Build17/r0000101001001001001_0001_wfi01_cat.asdf", + "ExampleData/Build17/r0000101001001001001_0001_wfi01_segm.asdf", + "ExampleData/Build17/r0000101001001001001_p_v01001001001_r274dp63x31y80_f158_asn.json", + "ExampleData/Build17/r0000101001001001001_p_v01001001001_r274dp63x31y81_f158_asn.json", + "ExampleData/Build17/r0000101001001001001_p_v01001001001_r274dp63x31y82_f158_asn.json", + "ExampleData/Build17/r0000101001001001001_p_v01001001001_r274dp63x32y80_f158_asn.json", + "ExampleData/Build17/r0000101001001001001_p_v01001001001_r274dp63x32y81_f158_asn.json", + "ExampleData/Build17/r0000101001001001001_p_v01001001001_r274dp63x31y80_f158_coadd.asdf", + "ExampleData/Build17/r0000101001001001001_p_v01001001001_r274dp63x31y81_f158_coadd.asdf", + "ExampleData/Build17/r0000101001001001001_p_v01001001001_r274dp63x31y82_f158_coadd.asdf", + "ExampleData/Build17/r0000101001001001001_p_v01001001001_r274dp63x32y80_f158_coadd.asdf", + "ExampleData/Build17/r0000101001001001001_p_v01001001001_r274dp63x32y81_f158_coadd.asdf", "ExampleData/Build16/new_distortion.asdf", - "ExampleData/Build16/skycell_wcs.asdf", - "ExampleData/Build16/r00001_p_v01001001001_r274dp63x31y80_f158_coadd_asn.json", + "ExampleData/Build17/r0000101001001001001_p_v01001001001_r274dp63x31y80_f158_cat.asdf", + "ExampleData/Build17/r0000101001001001001_p_v01001001001_r274dp63x31y81_f158_cat.asdf", + "ExampleData/Build17/r0000101001001001001_p_v01001001001_r274dp63x31y82_f158_cat.asdf", + "ExampleData/Build17/r0000101001001001001_p_v01001001001_r274dp63x32y80_f158_cat.asdf", + "ExampleData/Build17/r0000101001001001001_p_v01001001001_r274dp63x32y81_f158_cat.asdf", + "ExampleData/Build17/r0000101001001001001_p_v01001001001_r274dp63x31y80_f158_segm.asdf", + "ExampleData/Build17/r0000101001001001001_p_v01001001001_r274dp63x31y81_f158_segm.asdf", + "ExampleData/Build17/r0000101001001001001_p_v01001001001_r274dp63x32y80_f158_segm.asdf", + "ExampleData/Build17/r0000101001001001001_p_v01001001001_r274dp63x32y81_f158_segm.asdf", + "ExampleData/Build17/r0000201001001001001_0003_wfi12_uncal.asdf", + "ExampleData/Build17/r0000201001001001001_0003_wfi12_cal.asdf", + "ExampleData/Build17/r0000301001001001001_0001_wfi14_uncal.asdf", + "ExampleData/Build17/r0000301001001001001_0001_wfi14_cal.asdf", "ExampleData/jw01448013001_02105_00001_nis_rate.fits", "ExampleData/jw01448013001_02106_00001_nis_rate.fits", "ExampleData/jw01448013001_02106_00001_nis_cat.ecsv",