@@ -231,7 +231,6 @@ print(hdu_mer_irsa.info())
231231``` {code-cell} ipython3
232232# download_path='/yourlocalpath/'
233233# hdu_mer_irsa.writeto(download_path+'./MER_image_VIS.fits', overwrite=True)
234- # df_g_irsa.to_csv(download_path+'./df_table_irsa.csv', index=False)
235234```
236235
237236``` {code-cell} ipython3
@@ -269,11 +268,6 @@ df_g_irsa['x_pix']=xy_irsa[0]
269268df_g_irsa['y_pix']=xy_irsa[1]
270269```
271270
272- ``` {code-cell} ipython3
273- ## Save the dataframe as a csv
274- # df_g_irsa.to_csv("./df_table_irsa.csv", index=False)
275- ```
276-
277271``` {code-cell} ipython3
278272df_g_irsa
279273```
@@ -346,7 +340,6 @@ plt.title('Object ID is '+str(obj_id))
346340
347341## Lets cut out a very small patch of the MER image to see what this galaxy looks like
348342
349-
350343``` {code-cell} ipython3
351344## How large do you want the image cutout to be?
352345im_cutout= 2.0 * u.arcsec
@@ -396,7 +389,7 @@ if os.path.exists(download_path):
396389 print("Output directory already created.")
397390else:
398391 print("Creating data directory.")
399- os.mkdir(dowload_path )
392+ os.mkdir(download_path )
400393```
401394
402395### Vizualize the image with Firefly
@@ -417,6 +410,7 @@ fc.align_images(lock_match=True)
417410
418411``` {code-cell} ipython3
419412csv_path = os.path.join(download_path, "mer_df.csv")
413+ df_g_irsa.to_csv(csv_path, index=False)
420414```
421415
422416### Upload the CSV table to Firefly and display as an overlay on the FITS image
0 commit comments