<jupyter_start><jupyter_text>Compare to 2012aw Swift obs<jupyter_code>ofile1 = asc.read('../../data/2012aw/2012aw_2011-03-23_00-00-00_Swift-UVOT_UV-grism_None.txt', names=['wave', 'flux'])
ofile2 = asc.read('../../data/2012aw/2012aw_2011-03-25_00-00-00_Swift-UVOT_UV-grism_None.txt', names=['wave', 'flux'])
ofile3 = asc.read('../../data/2012aw/2012aw_2011-03-28_00-00-00_Swift-UVOT_UV-grism_None.txt', names=['wave', 'flux'])

spec1 = spec.spectrum1d(ofile1['wave'], ofile1['flux'])
spec2 = spec.spectrum1d(ofile2['wave'], ofile2['flux'])
spec3 = spec.spectrum1d(ofile3['wave'], ofile3['flux'])

sca_spec1 = spec.scale_spectra(spec1, spec_15oz, wlmin=2500, wlmax=5000)
sca_spec2 = spec.scale_spectra(spec2, spec_15oz, wlmin=2500, wlmax=5000)
sca_spec3 = spec.scale_spectra(spec3, spec_15oz, wlmin=2500, wlmax=5000)
plt.style.use('az-paper-twocol')
fig = plt.figure()
ax1 = fig.add_subplot(3,1,1)
ax2 = fig.add_subplot(3,1,2, sharex=ax1)
ax3 = fig.add_subplot(3,1,3, sharex=ax1)
ax1.plot(spec_15oz.wave, convolve(spec_15oz.flux, Box1DKernel(5)), label='15oz')
ax1.plot(sca_spec1.wave, sca_spec1.flux, label='12aw Mar 23')
ax1.set_ylim(0, 2E-14)
ax1.set_xlim(2000, 5000)
ax1.legend()

ax2.plot(spec_15oz.wave, convolve(spec_15oz.flux, Box1DKernel(5)), label='15oz')
ax2.plot(sca_spec2.wave, sca_spec2.flux, label='12aw Mar 25')
ax2.set_ylim(0, 2E-14)
ax2.legend()

ax3.plot(spec_15oz.wave, convolve(spec_15oz.flux, Box1DKernel(5)), label='15oz')
ax3.plot(sca_spec3.wave, sca_spec3.flux, label='12aw Mar 28')
ax3.set_ylim(0, 2E-14)
ax3.legend()
plt.savefig('../figures/comp_15oz_12aw.pdf')
plt.plot(spec_15oz.wave, convolve(spec_15oz.flux, Box1DKernel(5)))
plt.plot(sca_spec2.wave, sca_spec2.flux)
plt.ylim(0, 2E-14)
plt.plot(spec_15oz.wave, convolve(spec_15oz.flux, Box1DKernel(5)))
plt.plot(sca_spec3.wave, sca_spec3.flux)
plt.ylim(0, 2E-14)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.190807055050775, 'fraction_numerical': 0.1272047033671833, 'mean_word_length': 7.034334763948498, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '608749', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 1017, 'n_tokens_neox': 868, 'n_words': 104, 'path': 'notebooks/comp_uv_to_other_obj.ipynb', 'repo_name': 'abostroem/asassn15oz', 'size': '1871'}