A non-transitory computer-readable storage medium storing a computer program for causing a computer to execute respective steps of a control method of a radiation imaging apparatus having a battery and being operable in at least two of a plurality of power supply forms including the battery and an external power source, the method comprising:
- determining the power supply form;
- and controlling an operation of the radiation imaging apparatus, wherein in the controlling, in accordance with the power supply form, switching between a first obtaining mode of obtaining offset correction data after imaging of an object for each imaging of the object and a second obtaining mode of obtaining offset correction data obtained in advance before imaging of an object is done, and in the controlling, switching to the first obtaining mode is done if power is supplied from the battery and switching to the second obtaining mode is done if power is supplied from the external power source.