CamsProduct#
- class grs.cams.CamsProduct(prod, cams_file=None, dir='./', type='forecast', suffix='')[source]#
Bases:
objectUnit Conversion:
PWC (Precipitable Water Content), Grib Unit [kg/m^2]
MSL (Mean Sea Level pressure), Grib Unit [Pa]
OZO (Ozone), Grib Unit [kg/m^2]
Calculation for Ozone according to R. Richter (20/1/2016):#
GRIB_UNIT = [kg/m^2] standard ozone column is 300 DU (Dobson Units), equals to an air column of 3 mm at STP (standard temperature (0 degree C) and pressure of 1013 mbar).
Thus, molecular weight of O3 (M = 48): 2.24 g (equals to 22.4 liter at STP)
- 300 DU = 3 mm (equals to (0.3*48 / 2.24) [g/m^2])
= 6.428 [g/m^2] = 6.428 E-3 [kg/m^2]
Example:
ozone (kg/m^2 = 300 /6.428E-3 DU ) pressure (Pa = 1/100 hPa) water vapor (kg/m^2 = 10^3/10^4 = 0.1 g/cm^2)
- cams_download()[source]#
Autodownload from CAMS api of the cams netcdf data for the region-of-interest of the input image.
- Returns:
- load()[source]#
Lazy loading and then resmapling of the CAMS data for the region and date of interest.
- Returns:
- plot_params(params=['amaod550', 'bcaod550', 'duaod550', 'niaod550', 'omaod550', 'ssaod550', 'suaod550', 'aod550', 't2m', 'msl', 'sp', 'tcco', 'tc_ch4', 'tcno2', 'gtco3', 'tcwv', 'u10', 'v10'], **kwargs)[source]#
Function to plot the cams data extracted for date and region of interest. Note that secondary organic aerosols optical thickness at 550 nm is not available for the whole timeserires (check parameter ‘soaod550’)
- Parameters:
params – parameters to plot
kwargs – kwargs for matplotlib plotting
- Returns:
fig, axs