Skip to content

Commit

Permalink
background adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
byrdie committed Nov 4, 2024
1 parent d0dd678 commit 90fd287
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions iris/sg/background/_background.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,21 +409,21 @@ def function(x: na.CartesianNdVectorArray):
guess=guess,
step_size=na.CartesianNdVectorArray.from_components(
components=dict(
amplitude=0.01 * u.DN / u.s,
shift=0.01 * (u.km / u.s) ** 2 / (u.DN / u.s),
width=0.01 * (u.km / u.s) ** 2 / (u.DN / u.s),
bias=0.001 * u.DN / u.s,
kappa=0.0001 / (u.DN / u.s),
slope=1e-6 * u.DN / u.s / (u.km / u.s) ** 2,
amplitude=0.001 * u.DN / u.s,
shift=0.1 * (u.km / u.s) ** 2 / (u.DN / u.s),
width=0.1 * (u.km / u.s) ** 2 / (u.DN / u.s),
bias=0.0001 * u.DN / u.s,
kappa=0.001 / (u.DN / u.s),
slope=1e-7 * u.DN / u.s / (u.km / u.s) ** 2,
),
),
momentum=0.9,
min_gradient=na.CartesianNdVectorArray.from_components(
components=dict(
amplitude=0.5,
shift=0.5 * u.DN / u.s / (u.km / u.s),
width=0.5 * u.DN / u.s / (u.km / u.s),
kappa=0.5 * u.DN / u.s,
shift=0.05 * u.DN / u.s / (u.km / u.s),
width=0.05 * u.DN / u.s / (u.km / u.s),
kappa=0.05 * u.DN / u.s,
bias=1,
slope=110 * (u.km / u.s),
)
Expand Down Expand Up @@ -500,8 +500,8 @@ def subtract_spectral_line(
bg.inputs.wavelength,
bg.inputs.position.y,
C=bg.outputs.value,
vmin=-5,
vmax=+5,
vmin=-1,
vmax=+1,
)
ax.set_xlabel(f"wavelength ({ax.get_xlabel()})")
ax.set_ylabel(f"helioprojective $y$ ({ax.get_ylabel()})")
Expand Down Expand Up @@ -748,7 +748,7 @@ def estimate(
constrained_layout=True,
)
mappable = plt.cm.ScalarMappable(
norm=plt.Normalize(vmin=0, vmax=5),
norm=plt.Normalize(vmin=0, vmax=1),
)
ax[0].set_title("original")
na.plt.pcolormesh(
Expand Down Expand Up @@ -804,7 +804,7 @@ def estimate(
)
ax.set_xlabel(f"Doppler velocity ({ax.get_xlabel()})")
ax.set_ylabel(f"median spectral radiance ({ax.get_ylabel()})")
ax.set_ylim(top=10)
ax.set_ylim(top=1)
ax.legend()
"""
avg = average(
Expand Down

0 comments on commit 90fd287

Please sign in to comment.