GITMCode / GITM

The Global Ionosphere/Thermosphere Model
Apache License 2.0
9 stars 8 forks source link

Indices bug v2 #20

Closed aaronjridley closed 4 days ago

aaronjridley commented 4 days ago

[BUG/FEAT/DOC/etc.] Description

The code would happily run if the time requested and the indices did not match up. The code by default just used the first or last time in the file.

This is not great behavior, since the user probably wasn't aware of this.

Now the code stops if the start time or end time are outside of the times on the indices. It checks each index individual and reports an error. It also checks to see if any data was read in for the SME indices, IMF indices, and FISM.

Justification

The user most likely doesn't want constant values outside of their requested interval.

Changes to GITM outputs

Shouldn't be any changes, but will stop running if start/end time is outside of indices intervals.