Mathematical Model for Forecasting the State of the Environment Based on Retrospective Satellite Data