rustronomy_fits/
lib.rs

1/*
2    Copyright (C) 2022 Raúl Wolters
3
4    This file is part of rustronomy-fits.
5
6    rustronomy is free software: you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation, either version 3 of the License, or
9    (at your option) any later version.
10
11    rustronomy is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15
16    You should have received a copy of the GNU General Public License
17    along with rustronomy.  If not, see <http://www.gnu.org/licenses/>.
18*/
19
20//Module structure
21mod bitpix;
22mod err;
23mod extensions;
24mod fits;
25mod header;
26mod header_data_unit;
27mod raw;
28
29//Constants defined by the FITS standard
30pub(crate) const BLOCK_SIZE: usize = 2880;
31
32//Public api re-exports
33pub use err::*;
34pub use extensions::Extension;
35pub use fits::Fits;
36pub use header::Header;
37pub use header_data_unit::HeaderDataUnit;
38
39//prelude (kinda pointless rn but whatev)
40pub mod prelude {
41  pub use crate::err::*;
42  pub use crate::extensions::Extension;
43  pub use crate::fits::Fits;
44  pub use crate::header::Header;
45  pub use crate::header_data_unit::HeaderDataUnit;
46}