asteroid_model¶
- sofia_redux.calibration.standard_model.genastmodel2.asteroid_model(params, date, time, outprefix=None, outfile=None, return_model=False, save_model=True)[source]¶
Generate a model of the flux from an asteroid.
- Parameters:
- paramsdict
Contains information about the target pulled from JPL’s Horizons database.
- datestr, datetime.date
The date of the observation.
- timestr, datetime.time
The time of the observation.
- outprefixstr, optional
A prefix to attached to the beginning of the filename created with the model. Defaults to ‘test_obs’.
- outfilestr, optional
Name of output file created with the model. Defaults to ‘
outprefix
_date
_time
_model.out’.- return_modelbool, optional
If set, the model will be returned. Defaults to False.
- save_modelbool, optional
If set, write the model to file. Defaults to True.
- Returns:
- modelnumpy.array
An array with two columns. The first is the wavelength of the model (um), and the second is the asteroid’s flux (Jy).