Skip to content

gtobssim not working past end of 2024 #66

@joeastro

Description

@joeastro

When trying to follow the example thread for using gtobssim I get the following error when I try to use the GalacticDiffuse component:

FITSIO status = 202: keyword not found in header
If I comment that source out in the source_names.txt it seems to work fine.

That is, unless I specify a Simulation start time that is after 2024. Example input/output (786499205 is the MET corresponding to the start of MW 914):

(fermi) jeggen@gs66-glowbug dailyMaps % gtobssim chatter=4
This is gtobssim version HEAD
File of flux-style source definitions[test.xml] 
File containing list of source names[source_names.txt] 
Pointing history file[none] 
Prefix for output files[test] 
Simulation time (seconds)[604800] 
Simulation start time (seconds wrt MET 0)[INDEF] 786499205
Apply acceptance cone?[no] 
Response functions[P8R3_SOURCE_V3] 
Random number seed[293049] 
Using irfs: P8R3_SOURCE_V3
Adding IRF: P8R3_SOURCE_V3::BACK, with event_type bit 1
Adding IRF: P8R3_SOURCE_V3::FRONT, with event_type bit 0
added source "IsotropicDiffuse"
Generating events for a simulation time of 604800 seconds....
libc++abi: terminating due to uncaught exception of type std::runtime_error: Requested year, 2025.97, is outside the valid range of 1900-2025
zsh: abort      gtobssim chatter=4

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions