AMSIMP Preprocessing Class. For information about this class is described below.
Copyright (C) 2021 AMSIMP
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
amsimp.preprocessing.
Preprocessing
(forecast_length=120, amsimp_ic=True, initialisation_conditions=None)[source]¶This is the preprocessing class for AMSIMP.
interpolate_dataset
()[source]¶Generates a cube list with the expected parameters, interpolated if necessary onto the grid required for input into the operational AMSIMP Global Forecast Model.
Cube list with interpolated grid for operational model
iris.cube.CubeList
Notes
This method also ensures the expected number of time steps are included, and raises an error when an insufficient number is present. The number of time steps required is 6.
lat
()[source]¶Generates an array of latitude lines in accordance with the shape expected by the operational model of the AMSIMP Global Forecast Model.
Latitude lines
numpy.ndarray
Notes
The resolution of this model is approximately 100 kilometres (1 degree).
See also
load_dataset
()[source]¶Generates a cube list with the required dataset loaded, either the file provided is loaded or the files from the AMSIMP Initial Conditions repository are downloaded and saved into a single file.
Cube list with the required dataset loaded
iris.cube.CubeList
Notes
The AMSIMP Initial Conditions repository is update four times daily, at 1 am, 7 am, 1 pm, and 7 pm. The near real-time initialisation conditions are provided by the National Oceanic and Atmospheric Adminstrations’ Global Data Assimilation System (GDAS).
lon
()[source]¶Generates an array of longitude lines in accordance with the shape expected by the operational model of the AMSIMP Global Forecast Model.
Longitude lines
numpy.ndarray
Notes
The resolution of this model is approximately 100 kilometres (1 degree).
See also
normalise_dataset
()[source]¶Generates a NumPy array with the expected parameters, normalised, processed onto the grid required for input into the operational AMSIMP Global Forecast Model.
Normalised and preprocessed dataset for forecast model input
numpy.ndarray
Notes
This method also converts the parameters into the correct units of measurement if it is necessary to do so.
parameter_extraction
()[source]¶Generates a cube list with the expected parameters extracted in the expected order for interplolation and normalisation.
Cube list with expected parameters extracted
iris.cube.CubeList
Notes
The parameters, in this order, are: air temperature at 2 metres above the surface, air temperature at a pressure surface of 850 hectopascals, and geopotential at a pressure surface of 500 hectopascals.