# Now we show examples and plots of the different resampling currently
# available.

from specutils.manipulation import FluxConservingResampler, LinearInterpolatedResampler, SplineInterpolatedResampler
new_disp_grid = np.arange(4800, 5200, 3) * u.AA

# Flux Conserving Resampler:

fluxcon = FluxConservingResampler()
new_spec_fluxcon = fluxcon(input_spec, new_disp_grid) # doctest: +IGNORE_OUTPUT +REMOTE_DATA
f, ax = plt.subplots()  # doctest: +IGNORE_OUTPUT
ax.step(new_spec_fluxcon.spectral_axis, new_spec_fluxcon.flux) # doctest: +IGNORE_OUTPUT +REMOTE_DATA
