Skip to content

Commit

Permalink
Fix skymap fits header writting
Browse files Browse the repository at this point in the history
  • Loading branch information
fxpineau committed Sep 20, 2024
1 parent abee56d commit 6f47b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nested/map/fits/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ fn write_skymap_fits_header<R: Write, T: SkyMapValue>(
write_uint_mandatory_keyword_record(it.next().unwrap(), b"LASTPIX ", n_cells);
it.next().unwrap()[0..20].copy_from_slice(b"INDXSCHM= 'IMPLICIT'");
it.next().unwrap()[0..20].copy_from_slice(b"OBJECT = 'FULLSKY '");
it.next().unwrap()[0..26].copy_from_slice(b"CREATOR = 'CDS HEALPix Rust'");
it.next().unwrap()[0..28].copy_from_slice(b"CREATOR = 'CDS HEALPix Rust'");
it.next().unwrap()[0..3].copy_from_slice(b"END");
// Do write the header
writer.write_all(&header_block[..]).map_err(FitsError::Io)
Expand Down

0 comments on commit 6f47b8b

Please sign in to comment.