Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagepy
titleNetCDF
import cdsapi

c = cdsapi.Client()

c.retrieve(
    'cams-global-atmospheric-composition-forecasts-test',
    {
        'date':          '2023-03-01/2023-03-10',
        'type':          'forecast',
        'format':        'netcdf_zip',
        'variable':    [ 'biogenic_secondary_organic_aerosol_mass_mixing_ratio',
                         'anthropogenic_secondary_organic_aerosol_mass_mixing_ratio',
                         'secondary_organic_aerosol_optical_depth_550nm',
                         'glyoxal',
                         'total_column_glyoxal' ], # See other available variables at:, # See other available variables at:
        'time':          '00:00',                  # https://ads.atmosphere.copernicus.eu/cdsapp#!/dataset/cams-global-atmospheric-composition-forecasts?tab=form 
        'leadtime_hour': [h for h in range(0,24)],
        'area':          [70, -35, 35, 60]         # [N,E,S,W] area boundaries
    },
    '/tmp/cams_test_20230301_10.nc.zip')

...