Skip to content

Commit

Permalink
Rebase and add change log
Browse files Browse the repository at this point in the history
  • Loading branch information
samaloney committed May 27, 2024
1 parent 514d0f8 commit 236b902
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog/115.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update imaging demo for latest changes in `xrayvision<https://github.com/TCDSolar/xrayvision>`_.
6 changes: 3 additions & 3 deletions examples/imaging_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
# Set up image parameters

imsize = [512, 512] * u.pixel # number of pixels of the map to reconstruct
pixel = [10, 10] * u.arcsec/u.pixel # pixel size in aresec
pixel = [10, 10] * u.arcsec / u.pixel # pixel size in aresec

###############################################################################
# Make a full disk back projection (inverse transform) map
Expand Down Expand Up @@ -168,7 +168,7 @@
# Use estimated flare location to create more accurate visibilities

# because WCS axes and array are reversed and all positions are expected follow array indices
flare_pos_stix = [max_stix.Ty.to_value('arcsec'), max_stix.Tx.to_value('arcsec')]*u.arcsec
flare_pos_stix = [max_stix.Ty.to_value("arcsec"), max_stix.Tx.to_value("arcsec")] * u.arcsec

meta_pixels_sci = create_meta_pixels(
cpd_sci, time_range=time_range_sci, energy_range=energy_range, phase_center=flare_pos_stix, no_shadowing=True
Expand Down Expand Up @@ -221,7 +221,7 @@
###############################################################################
# Create a back projection image with uniform weighting

bp_uni = vis_to_image(stix_vis1, imsize, pixel_size=pixel, scheme='uniform')
bp_uni = vis_to_image(stix_vis1, imsize, pixel_size=pixel, scheme="uniform")

###############################################################################
# Create a `sunpy.map.Map` with back projection
Expand Down

0 comments on commit 236b902

Please sign in to comment.