Home
last modified time | relevance | path

Searched refs:ImageHDU (Results 1 – 25 of 43) sorted by relevance

12

/dports/science/py-asdf/asdf-2.8.1/asdf/tests/
H A Dtest_fits_embed.py34 hdulist.append(fits.ImageHDU(np.arange(512, dtype=dtype)))
35 hdulist.append(fits.ImageHDU(np.arange(512, dtype=dtype)))
36 hdulist.append(fits.ImageHDU(np.arange(512, dtype=dtype)))
100 assert isinstance(asdf_hdu, fits.ImageHDU)
218 hdulist.append(fits.ImageHDU(tree['model']['sci']['data']))
219 hdulist.append(fits.ImageHDU(tree['model']['dq']['data']))
220 hdulist.append(fits.ImageHDU(tree['model']['err']['data']))
429 hdulist.append(fits.ImageHDU(np.arange(512, dtype=float)))
430 hdulist.append(fits.ImageHDU(np.arange(512, dtype=float)))
431 hdulist.append(fits.ImageHDU(np.arange(512, dtype=float)))
[all …]
/dports/astro/py-astropy/astropy-5.0/examples/io/
H A Dcreate-mef.py28 new_hdul.append(fits.ImageHDU())
29 new_hdul.append(fits.ImageHDU())
45 hdu2 = fits.ImageHDU()
/dports/astro/py-astropy/astropy-5.0/astropy/io/fits/tests/
H A Dtest_image_dask.py7 from astropy.io.fits import ImageHDU, PrimaryHDU
18 hdu = ImageHDU(data=dask_array_in_mem)
23 hdu = ImageHDU(data=dask_array_in_mem)
48 hdu = ImageHDU(data=dask_array_in_mem)
63 hdu2 = ImageHDU(data=np.random.random((128, 128)))
64 hdu3 = ImageHDU(data=dask_array_in_mem * 2)
166 hdu2 = ImageHDU(data=np.arange(10))
H A Dtest_convenience.py199 fits.ImageHDU(np.zeros((10, 10)))]
314 exthdu1 = fits.ImageHDU(data=np.ones((5, 5), dtype=int))
315 exthdu2 = fits.ImageHDU(data=2 * np.ones((5, 5), dtype=int))
327 exthdu1 = fits.ImageHDU(data=np.ones((5, 5), dtype=int))
328 exthdu2 = fits.ImageHDU(data=None)
339 exthdu1 = fits.ImageHDU(data=None)
340 exthdu2 = fits.ImageHDU(data=None)
352 exthdu1 = fits.ImageHDU(data=np.ones((5, 5), dtype=int))
353 exthdu2 = fits.ImageHDU(data=None)
366 exthdu1 = fits.ImageHDU(data=None)
[all …]
H A Dtest_hdulist.py51 hdu = fits.ImageHDU(data=hdul[0].data)
388 hdu = fits.ImageHDU(n)
404 hdu = fits.ImageHDU(n)
470 hdul.append(fits.ImageHDU())
534 sci = fits.ImageHDU(data=np.array(10))
688 hdu = fits.ImageHDU(data=data2)
892 assert fits.ImageHDU() not in hdulist
909 hdulist.append(fits.ImageHDU())
910 hdulist.append(fits.ImageHDU())
923 hdulist.append(fits.ImageHDU(name='SCI'))
[all …]
H A Dtest_fitsdiff.py10 from astropy.io.fits import Header, ImageHDU, HDUList, FITSDiff
265 ihdu_a = ImageHDU(data=a, name='SCI')
266 ihdu_b = ImageHDU(data=b, name='SCI')
286 ihdu_a = ImageHDU(data=a, name='SCI')
287 ihdu_b = ImageHDU(data=b, name='SCI')
308 hdulist = HDUList([PrimaryHDU(), ImageHDU(data=np.zeros(5))])
H A Dtest_core.py191 hdu = fits.ImageHDU()
199 hdu = fits.ImageHDU()
236 hdu = fits.ImageHDU()
242 hdu = fits.ImageHDU()
252 hdu = fits.ImageHDU()
272 hdu = fits.ImageHDU()
393 hdu = fits.ImageHDU()
399 hdu = fits.ImageHDU()
492 h2 = fits.ImageHDU()
964 hdul.insert(1, fits.ImageHDU())
[all …]
H A Dtest_image.py26 hdu = fits.ImageHDU()
34 hdu = fits.ImageHDU(name='FOO')
50 hdu = fits.ImageHDU()
58 hdu = fits.ImageHDU(ver=2)
72 hdu = fits.ImageHDU(header=hdr)
381 x = fits.ImageHDU()
730 hdu = fits.ImageHDU(data=arr)
827 hdu = fits.ImageHDU(data=arr)
1035 im = fits.ImageHDU()
1072 fits.ImageHDU(data=1)
[all …]
H A Dtest_diff.py8 from astropy.io.fits.hdu import HDUList, PrimaryHDU, ImageHDU
233 ihdua = ImageHDU(data=a, name='SCI')
234 ihdub = ImageHDU(data=b, name='SCI')
262 ihduc = ImageHDU(data=a, name='SCI', ver=2)
624 ehdu = ImageHDU(data=a)
638 ehdu = ImageHDU(data=a)
661 ehdu = ImageHDU(data=a)
662 ehdu2 = ImageHDU(data=(a + 1))
708 ehdu = ImageHDU(name='FOO')
876 hdulist = HDUList([PrimaryHDU(), ImageHDU(data=np.zeros(5), name="SCI")])
[all …]
H A Dtest_checksum.py240 hdu = fits.ImageHDU(n)
272 hdu = fits.ImageHDU(n)
328 hdu = fits.ImageHDU(n)
358 hdu = fits.ImageHDU(n)
H A Dtest_nonstandard.py32 imghdu = fits.ImageHDU(data=a + 1)
/dports/astro/py-astropy/astropy-5.0/docs/io/fits/api/
H A Dimages.rst8 `ImageHDU`
11 .. autoclass:: ImageHDU
H A Dhdus.rst10 The :class:`ImageHDU` and :class:`CompImageHDU` classes are discussed in the
/dports/astro/py-astropy/astropy-5.0/docs/io/fits/usage/
H A Dimage.rst177 write scaled data with the `~ImageHDU.scale` method.
186 To write scaled data with the `~ImageHDU.scale` method::
200 Caution must be exercised when using the :meth:`~ImageHDU.scale` method.
201 The :attr:`~ImageHDU.data` attribute of an image HDU, after the
202 :meth:`~ImageHDU.scale` call, will become the storage values, not the physical
203 values. So, only call :meth:`~ImageHDU.scale` just before writing out to FITS
206 an example of what happens to the :attr:`~ImageHDU.data` attribute after the
207 :meth:`~ImageHDU.scale` call::
225 When a FITS image HDU's :attr:`~ImageHDU.data` is accessed, either the whole
233 the images(s) ten rows at a time), the :attr:`~ImageHDU.section` attribute of an
[all …]
/dports/science/py-asdf/asdf-2.8.1/asdf/commands/tests/
H A Dtest_extract.py8 from astropy.io.fits import HDUList, ImageHDU
20 image = ImageHDU(np.random.random((25, 25)))
H A Dtest_remove_hdu.py17 image = fits.ImageHDU(np.random.random((25, 25)))
/dports/graphics/py-scikit-image/scikit-image-0.19.0/skimage/io/_plugins/
H A Dfits_plugin.py46 if isinstance(hdu, fits.ImageHDU) or \
89 if isinstance(hdu, fits.ImageHDU) or \
/dports/astro/py-astropy/astropy-5.0/astropy/visualization/scripts/tests/
H A Dtest_fits2bitmap.py34 hdu2 = fits.ImageHDU(self.array)
43 hdu2 = fits.ImageHDU(self.array)
/dports/astro/py-astropy/astropy-5.0/astropy/io/fits/hdu/
H A D__init__.py8 from .image import PrimaryHDU, ImageHDU
H A Dhdulist.py16 from .image import PrimaryHDU, ImageHDU
608 hdu1 = ImageHDU(self[0].data, self[0].header)
618 if isinstance(hdu, ImageHDU):
636 hdu = ImageHDU(hdu.data, hdu.header)
668 hdu = ImageHDU(hdu.data, hdu.header)
675 if isinstance(hdu, ImageHDU):
/dports/astro/py-astropy/astropy-5.0/docs/io/fits/
H A Dindex.rst75 1 SCI 1 ImageHDU 61 (40, 40) int16
76 2 SCI 2 ImageHDU 61 (40, 40) int16
77 3 SCI 3 ImageHDU 61 (40, 40) int16
78 4 SCI 4 ImageHDU 61 (40, 40) int16
93 1 SCI 1 ImageHDU 61 (40, 40) int16
94 2 SCI 2 ImageHDU 61 (40, 40) int16
95 3 SCI 3 ImageHDU 61 (40, 40) int16
96 4 SCI 4 ImageHDU 61 (40, 40) int16
749 >>> image_hdu = fits.ImageHDU(n2)
750 >>> image_hdu2 = fits.ImageHDU(n3)
[all …]
/dports/graphics/py-imageio/imageio-2.9.0/imageio/plugins/
H A Dfits.py95 allowed_hdu_types = (_fits.ImageHDU, _fits.PrimaryHDU, _fits.CompImageHDU)
/dports/astro/py-astropy/astropy-5.0/astropy/io/misc/asdf/tags/fits/
H A Dfits.py35 hdu = fits.ImageHDU(data=data, header=header)
/dports/astro/py-astropy/astropy-5.0/astropy/io/fits/
H A Dconvenience.py67 from .hdu.image import PrimaryHDU, ImageHDU
689 hdu = ImageHDU(data, header)
1111 hdu = ImageHDU(data, header=header)
/dports/astro/astrometry/astrometry.net-0.85/solver/
H A Dimage2xy.py103 if (i == 0 and hdu.data != None) or isinstance(hdu, pyfits.ImageHDU):

12