Struct fitsio::fitsfile::FitsFile [] [src]

pub struct FitsFile {
    pub filename: String,
    // some fields omitted
}

Main entry point to the FITS file format

Fields

Name of the file

Methods

impl FitsFile
[src]

[src]

Open a fits file from disk

Examples

use fitsio::FitsFile;

let f = FitsFile::open("../testdata/full_example.fits").unwrap();

// Continue to use `f` afterwards

[src]

Open a fits file in read/write mode

[src]

Create a new fits file on disk

[src]

Return a new HDU object

[src]

Return the primary hdu (HDU 0)

[src]

Return the number of HDU objects in the file

[src]

Return the list of HDU names

[src]

Get the current hdu as an HDU object

[src]

Create a new fits table

Create a new fits table, with columns as detailed in the ColumnDescription object.

[src]

Create a new fits image, and return the FitsHdu object

Important traits for FitsHduIterator<'a>
[src]

Iterate over the HDUs in the file

[src]

Pretty-print file to stdout

[src]

Pretty-print the fits file structure to any Write implementor

[src]

Return a pointer to the underlying C fitsfile object representing the current file.

This is marked as unsafe as it is definitely something that is not required by most users, and hence the unsafe-ness marks it as an advanced feature. I have also not considered possible concurrency or data race issues as yet.

Trait Implementations

impl Drop for FitsFile
[src]

[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl !Send for FitsFile

impl !Sync for FitsFile