Skip to content

Commit

Permalink
Update output of crop example
Browse files Browse the repository at this point in the history
  • Loading branch information
rosteen committed Mar 7, 2023
1 parent 69ad345 commit e38c008
Showing 1 changed file with 14 additions and 63 deletions.
77 changes: 14 additions & 63 deletions docs/spectrum1d.rst
Original file line number Diff line number Diff line change
Expand Up @@ -327,69 +327,20 @@ value will apply to the lower bound input.
>>> lower = [SkyCoord(ra=205, dec=26, unit=u.deg), SpectralCoord(4.9, unit=u.um)]
>>> upper = [SkyCoord(ra=205.5, dec=27.5, unit=u.deg), SpectralCoord(4.9, unit=u.um)]
>>> spec.crop(lower, upper) # doctest: +IGNORE_WARNINGS +FLOAT_CMP
<Spectrum1D(flux=<Quantity [[[0.70861236],
[0.5663815 ],
[0.0606386 ],
[0.13811995],
[0.8974065 ]],
<BLANKLINE>
[[0.97618597],
[0.870499 ],
[0.01522275],
[0.59180312],
[0.29160346]],
<BLANKLINE>
[[0.13274479],
[0.99381789],
[0.767089 ],
[0.73765335],
[0.36185756]],
<BLANKLINE>
[[0.09635759],
[0.38060021],
[0.63263223],
[0.60785285],
[0.4914904 ]],
<BLANKLINE>
[[0.83173506],
[0.1679683 ],
[0.39415721],
[0.25540459],
[0.39779061]],
<BLANKLINE>
[[0.27625437],
[0.90381118],
[0.65453332],
[0.64141404],
[0.36941242]],
<BLANKLINE>
[[0.90620901],
[0.41437874],
[0.71279457],
[0.41105785],
[0.7459662 ]],
<BLANKLINE>
[[0.57160214],
[0.45227951],
[0.29112881],
[0.44654224],
[0.65356417]],
<BLANKLINE>
[[0.60171961],
[0.46916617],
[0.3919754 ],
[0.01304226],
[0.32085301]],
<BLANKLINE>
[[0.00470581],
[0.54743546],
[0.24740782],
[0.77903598],
[0.63457146]]] Jy>, spectral_axis=<SpectralAxis
(observer to target:
radial_velocity=0.0 km / s
redshift=0.0)
[4.90049987e-06] m>)>
<Spectrum1D(flux=<Quantity [[[0.70861236, 0.97618597, 0.13274479, 0.09635759, 0.83173506,
0.27625437, 0.90620901, 0.57160214, 0.60171961, 0.00470581],
[0.5663815 , 0.870499 , 0.99381789, 0.38060021, 0.1679683 ,
0.90381118, 0.41437874, 0.45227951, 0.46916617, 0.54743546],
[0.0606386 , 0.01522275, 0.767089 , 0.63263223, 0.39415721,
0.65453332, 0.71279457, 0.29112881, 0.3919754 , 0.24740782],
[0.13811995, 0.59180312, 0.73765335, 0.60785285, 0.25540459,
0.64141404, 0.41105785, 0.44654224, 0.01304226, 0.77903598],
[0.8974065 , 0.29160346, 0.36185756, 0.4914904 , 0.39779061,
0.36941242, 0.7459662 , 0.65356417, 0.32085301, 0.63457146]]] Jy>, spectral_axis=<SpectralAxis
(observer to target:
radial_velocity=0.0 km / s
redshift=0.0)
[4.90049987e-06] m>)>
Collapsing
----------
Expand Down

0 comments on commit e38c008

Please sign in to comment.