This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Move to first HDU having specific type and keyword values




movNamHDU(fptr,hdutype,EXTNAME,EXTVER) moves to the first HDU which has the specified extension type and EXTNAME and EXTVER keyword values (or HDUNAME and HDUVER keywords).

Specify the hdutype parameter as one of these character vectors or string scalars.


If hdutype is 'ANY_HDU', only the EXTNAME and EXTVER values are used to locate the correct extension. If the input value of EXTVER is 0, then the EXTVER keyword is ignored and the first HDU with a matching EXTNAME (or HDUNAME) keyword will be found.

This function corresponds to the fits_movnam_hdu (ffmnhd) function in the CFITSIO library C API.


fptr = fits.openFile('tst0012.fits');