LMDZ-Fluxes

LMDZ-Fluxes#

Download lmdz-fluxes.yml

#####################
# pyCIF config file #
#####################

# Define here all parameters for pyCIF following YAML syntax
# For details on YAML syntax, please see:
# http://docs.ansible.com/ansible/latest/YAMLSyntax.html

###############################################################################
# pyCIF parameters

rootdir: &rootdir /tmp/CIF/
outdir: &outdir  !join [*rootdir, /.tox/py38/tmp]
verbose: 2
logfile: pyvar.logtest
workdir:  !join [*outdir, /gcp]
datei: 2019-01-01 00:00:00
datef: 2019-02-01 00:00:00

###############################################################################

# http://community-inversion.eu/documentation/plugins/platforms/docker.html

platform:
  plugin:
    name: docker
    version: cif

  cores: 10
  queue: mediump

###############################################################################

# http://community-inversion.eu/documentation/plugins/models/lmdz.html

model:
  plugin:
    name: LMDZ
    version: std

  periods: 1MS
  fileexec:  !join [*rootdir, /model_sources/DISPERSION_gch/dispersion.16x9x19.e]
  auto-recompile: true
  force-recompile: true
  file_controle: /tmp/PYCIF_DATA_TEST/LMDZ/ACAD/restart/ELI-16x9x19ST-AP_2020_start.nc
  physics: true
  thermals: true
  conv_scheme: TK
  do_chemistry: false
  nfilun: 3
  nfilus: 2
  nproc: 1

###############################################################################

chemistry:
  schemeid: LMDZ_CH4_no_chem
  acspecies:
    CH4:
      restart_id: 1
      mass: 16.0425
  emis_species:
    CH4: null

###############################################################################

# http://community-inversion.eu/documentation/plugins/obsoperators/standard.html

obsoperator:
  plugin:
    name: standard
    version: std

  autorestart: true
  save_debug: true
  init_inputs:
    components:
      flux: []

###############################################################################

# http://community-inversion.eu/documentation/plugins/obsvects/standard.html

obsvect:
  plugin:
    name: standard
    version: std

  dump: true

###############################################################################

# http://community-inversion.eu/documentation/plugins/controlvects/standard.html

controlvect:
  plugin:
    name: standard
    version: std

  transform_pipe:
    dump_flx_anthropo_1:
      plugin:
        name: dump2format
        version: std
        type: transform
      component: flux_anthropogenic
      parameter: CH4_biofuels
      dump_file: 'fch4.biofuels.gcp2022.ciflmdz.%Y%m.nc'
      dump_format:
        name: LMDZ
        version: sflx
        type: flux

    dump_flx_anthropo_2:
      plugin:
        name: dump2format
        version: std
        type: transform
      component: flux_anthropogenic
      parameter: CH4_biomass
      dump_file: 'fch4.biomass.gcp2022.ciflmdz.%Y%m.nc'
      dump_format:
        name: LMDZ
        version: sflx
        type: flux

    dump_flx_anthropo_3:
      plugin:
        name: dump2format
        version: std
        type: transform
      component: flux_anthropogenic
      parameter: CH4_coal
      dump_file: 'fch4.coal.gcp2022.ciflmdz.%Y%m.nc'
      dump_format:
        name: LMDZ
        version: sflx
        type: flux

    dump_flx_anthropo_4:
      plugin:
        name: dump2format
        version: std
        type: transform
      component: flux_anthropogenic
      parameter: CH4_livestock
      dump_file: 'fch4.livestock.gcp2022.ciflmdz.%Y%m.nc'
      dump_format:
        name: LMDZ
        version: sflx
        type: flux

    dump_flx_anthropo_5:
      plugin:
        name: dump2format
        version: std
        type: transform
      component: flux_anthropogenic
      parameter: CH4_oilgasind
      dump_file: 'fch4.oilgasind.gcp2022.ciflmdz.%Y%m.nc'
      dump_format:
        name: LMDZ
        version: sflx
        type: flux

    dump_flx_anthropo_6:
      plugin:
        name: dump2format
        version: std
        type: transform
      component: flux_anthropogenic
      parameter: CH4_rice
      dump_file: 'fch4.rice.gcp2022.ciflmdz.%Y%m.nc'
      dump_format:
        name: LMDZ
        version: sflx
        type: flux

    dump_flx_anthropo_7:
      plugin:
        name: dump2format
        version: std
        type: transform
      component: flux_anthropogenic
      parameter: CH4_waste
      dump_file: 'fch4.waste.gcp2022.ciflmdz.%Y%m.nc'
      dump_format:
        name: LMDZ
        version: sflx
        type: flux

    sum_anthropo:
      plugin:
        name: families
        version: std
        type: transform
      component: flux_anthropogenic
      parameters_in:
      - CH4_biofuels
      - CH4_biomass
      - CH4_coal
      - CH4_livestock
      - CH4_oilgasind
      - CH4_rice
      - CH4_waste
      component_out: flux
      parameter_out: CH4_anthropogenic

    dump_flx_anthropo_all:
      plugin:
        name: dump2format
        version: std
        type: transform
      component: flux
      parameter: CH4_anthropogenic
      dump_file: 'fch4.anthropogenic.gcp2022.ciflmdz.%Y%m.nc'
      dump_format:
        name: LMDZ
        version: sflx
        type: flux

    dump_flx_natural_1:
      plugin:
        name: dump2format
        version: std
        type: transform
      component: flux_natural
      parameter: CH4_freshwaters
      dump_file: 'fch4.freshwaters.gcp2022.ciflmdz.%Y%m.nc'
      dump_format:
        name: LMDZ
        version: sflx
        type: flux

    dump_flx_natural_2:
      plugin:
        name: dump2format
        version: std
        type: transform
      component: flux_natural
      parameter: CH4_geological
      dump_file: 'fch4.geological.gcp2022.ciflmdz.%Y%m.nc'
      dump_format:
        name: LMDZ
        version: sflx
        type: flux

    dump_flx_natural_3:
      plugin:
        name: dump2format
        version: std
        type: transform
      component: flux_natural
      parameter: CH4_ocean
      dump_file: 'fch4.ocean.gcp2022.ciflmdz.%Y%m.nc'
      dump_format:
        name: LMDZ
        version: sflx
        type: flux

    dump_flx_natural_4:
      plugin:
        name: dump2format
        version: std
        type: transform
      component: flux_natural
      parameter: CH4_soils
      dump_file: 'fch4.soils.gcp2022.ciflmdz.%Y%m.nc'
      dump_format:
        name: LMDZ
        version: sflx
        type: flux

    dump_flx_natural_5:
      plugin:
        name: dump2format
        version: std
        type: transform
      component: flux_natural
      parameter: CH4_termites
      dump_file: 'fch4.termites.gcp2022.ciflmdz.%Y%m.nc'
      dump_format:
        name: LMDZ
        version: sflx
        type: flux

    dump_flx_natural_6:
      plugin:
        name: dump2format
        version: std
        type: transform
      component: flux_natural
      parameter: CH4_wetlands
      dump_file: 'fch4.wetlands.gcp2022.ciflmdz.%Y%m.nc'
      dump_format:
        name: LMDZ
        version: sflx
        type: flux

    sum_natural:
      plugin:
        name: families
        version: std
        type: transform
      component: flux_natural
      parameters_in:
      - CH4_freshwaters
      - CH4_geological
      - CH4_ocean
      - CH4_soils
      - CH4_termites
      - CH4_wetlands
      component_out: flux
      parameter_out: CH4_natural

    dump_flx_natural_all:
      plugin:
        name: dump2format
        version: std
        type: transform
      component: flux
      parameter: CH4_natural
      dump_file: 'fch4.natural.gcp2022.ciflmdz.%Y%m.nc'
      dump_format:
        name: LMDZ
        version: sflx
        type: flux

    sum_all:
      plugin:
        name: families
        version: std
        type: transform
      component: flux
      parameters_in:
      - CH4_anthropogenic
      - CH4_natural
      component_out: flux
      parameter_out: CH4

    dump_flx_all:
      plugin:
        name: dump2format
        version: std
        type: transform
      component: flux
      parameter: CH4
      dump_file: 'fch4.total.gcp2022.ciflmdz.%Y%m.nc'
      dump_format:
        name: LMDZ
        version: sflx
        type: flux

###############################################################################

# http://community-inversion.eu/documentation/plugins/datavects/standard.html

datavect:
  plugin:
    name: standard
    version: std

  components:
    meteo:
      plugin:
        name: LMDZ
        version: mass-fluxes
      dir: /tmp/PYCIF_DATA_TEST/LMDZ/ACAD/mass-fluxes
      file_freq: 1MS

    flux_anthropogenic:
      file_freq: 1MS
      dir: /tmp/PYCIF_DATA_TEST/RAW/EMISSIONS/GCP-CH4/ANTHROPOGENIC
      varname: fch4
      parameters:
        CH4_biofuels:
          plugin:
            name: GCP
            version: 1x1
            type: flux
          file: fch4.biofuels.edgarv6.1x1.2000-2020.nc

        CH4_coal:
          plugin:
            name: GCP
            version: 1x1
            type: flux
          file: fch4.coal.edgarv6.1x1.2000-2020.nc

        CH4_livestock:
          plugin:
            name: GCP
            version: 1x1
            type: flux
          file: fch4.livestock.edgarv6.1x1.2000-2020.nc

        CH4_oilgasind:
          plugin:
            name: GCP
            version: 1x1
            type: flux
          file: fch4.oilgasind.edgarv6.1x1.2000-2020.nc

        CH4_rice:
          plugin:
            name: GCP
            version: 1x1
            type: flux
          file: fch4.rice.edgarv6.1x1.2000-2020.nc

        CH4_waste:
          plugin:
            name: GCP
            version: 1x1
            type: flux
          file: fch4.waste.edgarv6.1x1.2000-2020.nc

        CH4_biomass:
          plugin:
            name: GCP
            version: 1x1
            type: flux
          file: fch4.biomass.gfedv41s.1x1.2000-2020.nc

    flux_natural:
      file_freq: 1MS
      dir: /tmp/PYCIF_DATA_TEST/RAW/EMISSIONS/GCP-CH4/NATURAL
      varname: fch4
      parameters:
        CH4_freshwaters:
          plugin:
            name: GCP
            version: 1x1
            type: flux
          file: fch4.freshwaters.stavert2021.1x1.clim.nc
          is_climato: true

        CH4_geological:
          plugin:
            name: GCP
            version: 1x1
            type: flux
          file: fch4.geological.scaledEtiope2019.1x1.clim.nc
          is_climato: true

        CH4_ocean:
          plugin:
            name: GCP
            version: 1x1
            type: flux
          file: fch4.ocean.weber2019.1x1.clim.nc
          is_climato: true

        CH4_soils:
          plugin:
            name: GCP
            version: 1x1
            type: flux
          file: fch4.soils.murguiaFlores2018.1x1.2000-2020.nc

        CH4_termites:
          plugin:
            name: GCP
            version: 1x1
            type: flux
          file: fch4.termites.saunois2020.1x1.clim.nc
          is_climato: true

        CH4_wetlands:
          plugin:
            name: GCP
            version: 1x1
            type: flux
          file: fch4.wetlands.saunois2020.1x1.clim.nc
          is_climato: true

###############################################################################

# http://community-inversion.eu/documentation/plugins/domains/lmdz.html

domain:
  plugin:
    name: LMDZ
    version: std

  filegrid: /tmp/PYCIF_DATA_TEST/LMDZ/ACAD/grid_LMDZ16_10.txt
  dir_vcoord: /tmp/PYCIF_DATA_TEST/LMDZ/ACAD/restart
  file_vcoord: ELI-16x9x19ST-AP_2020_start.nc