Skip to content

Commit

Permalink
The updated chimera code is in chimera_copy
Browse files Browse the repository at this point in the history
  • Loading branch information
imogenagle committed Jul 13, 2024
1 parent 9aeafef commit b83b7d0
Show file tree
Hide file tree
Showing 3 changed files with 1,160 additions and 194 deletions.
6 changes: 4 additions & 2 deletions chimerapy/chimera.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

file_path = "./"


im171 = glob.glob(file_path + "*171*.fts")
im193 = glob.glob(file_path + "*193*.fts")
im211 = glob.glob(file_path + "*211*.fts")
Expand Down Expand Up @@ -197,17 +198,18 @@ def to_helio(image: np.array):
'np.array'
"""

aia = sunpy.map.Map(image)
adj = 4096 / aia.dimensions[0].value
x, y = (np.meshgrid(*[np.arange(adj * v.value) for v in aia.dimensions]) * u.pixel) / adj
print(x, y)
global hpc
hpc = aia.pixel_to_world(x, y)
global hg
hg = hpc.transform_to(sunpy.coordinates.frames.HeliographicStonyhurst)
global csys
csys = wcs.WCS(hedb)
print(csys)



to_helio(im171)

Expand Down
Loading

0 comments on commit b83b7d0

Please sign in to comment.