From 6f47b8b8b6e4b9d511c75e022b18b57f3a26c487 Mon Sep 17 00:00:00 2001 From: fxpineau Date: Fri, 20 Sep 2024 17:52:27 +0200 Subject: [PATCH] Fix skymap fits header writting --- src/nested/map/fits/write.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nested/map/fits/write.rs b/src/nested/map/fits/write.rs index 85e841c..42a7c13 100644 --- a/src/nested/map/fits/write.rs +++ b/src/nested/map/fits/write.rs @@ -161,7 +161,7 @@ fn write_skymap_fits_header( 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)