Skip to content

Failure of applying masks to OBS datasets #294

Description

@bascrezee

When trying to apply mask_landsea to an Observational dataset, it fails.

datasets:
  - {dataset: CDS-SATELLITE-SOIL-MOISTURE, type: sat, project: OBS, mip: Lmon, version: COMBINED-TCDR-v201812.0.0, tier: 3, start_year: 2017,  end_year: 2018}

preprocessors:
  pp_test_mask:
    mask_landsea:
      mask_out: sea 
      always_use_ne_mask: True

Why is _get_correct_fx_file called for OBS datasets? This shouldn't happen, right?

  File "/ESMValCore/esmvalcore/_recipe.py", line 873, in __init__
    self.tasks = self.initialize_tasks() if initialize_tasks else None
  File "/ESMValCore/esmvalcore/_recipe.py", line 1220, in initialize_tasks
    task_name=task_name,
  File "/ESMValCore/esmvalcore/_recipe.py", line 844, in _get_preprocessor_task
    name=task_name,
  File "/ESMValCore/esmvalcore/_recipe.py", line 712, in _get_single_preprocessor_task
    config_user=config_user,
  File "/ESMValCore/esmvalcore/_recipe.py", line 662, in _get_preprocessor_products
    config_user=config_user)
  File "/ESMValCore/esmvalcore/_recipe.py", line 429, in _update_fx_settings
    'sftlf': _get_correct_fx_file(variable, 'sftlf', config_user),
  File "/ESMValCore/esmvalcore/_recipe.py", line 402, in _get_correct_fx_file
    fx_files = get_input_filelist(variable=fx_var,
UnboundLocalError: local variable 'fx_var' referenced before assignment
2019-10-07 11:55:20,619 UTC [21865] INFO    If you suspect this is a bug or need help, please open an issue on https://github.com/ESMValGroup/ESMValTool/issues and attach the run/recipe_*.yml and run/main_log_debug.txt files from the output directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions