open
- astrodata.open(source)
Return an
AstroDatainstance from a file or HDUList.Takes either a string (with the path to a file) or an HDUList as input, and tries to return an AstroData instance.
It will raise exceptions if the file is not found, or if there is no match for the HDUList, among the registered AstroData classes.
Returns an instantiated object, or raises AstroDataError if it was not possible to find a match