Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In pyaeroval_config.py: regrid_res_deg is expected to be a float (not a dictionary) #1226

Closed
DirkOlivie opened this issue Jun 25, 2024 · 0 comments · Fixed by #1227
Closed
Assignees
Labels
bug 🐛 Something isn't working
Milestone

Comments

@DirkOlivie
Copy link

General

  • When I run python pyaeroval_config.py, it stopped after +/2 minutes.
  • In pyaeroval_config.py, regridding for MODIS was defined with a dictionary :
regrid_res_deg={  # Regridding of the data
        "lat_res_deg": 5,
        "lon_res_deg": 5,
    }
  • However, when running there was an error message (see below) that regrid_res_deg should just be a float.

Describe the bug

  • Pyaerocom version:
  • Computing platform: ppi
  • Error message:
pydantic_core._pydantic_core.ValidationError: 1 validation error for ColocationSetup
regrid_res_deg
  Input should be a valid number [type=float_type, input_value={'lat_res_deg': 5, 'lon_res_deg': 5}, input_type=dict]
  • Configuration file (pyaeroval_config.py):
MODIS = dict(
    obs_id="MODIS6.1terra.DT.DP.mean",  # Observation ID of know network
    web_interface_name="Modis",  # Name that is displayed on the webpage
    obs_vars=["od550aer"],  # List of variables that is to be evaluated
    obs_vert_type="Column",  # Observation level
    regrid_res_deg={  # Regridding of the data
        "lat_res_deg": 5,
        "lon_res_deg": 5,
    },
    ts_type="daily",  # Frequency of read observations. Evaluation can not be finer than this, for this network
)

To Reproduce

  1. ssh ppi-r8login-b1.int.met.no
  2. qlogin -l h_rss=8G,mem_free=8G,h_data=8G
  3. module use /modules/MET/rhel8/user-modules/fou-kl
  4. module load aerotools
  5. cd kurse-AeroTools/scripts
  6. python pyaeroval_config.py

Additional context
I have done two tests (one with commenting out regrid_res_deg, and one with setting regrid_res_deg=5 in pyaeroval_config.py), and in both cases it then worked well.

@DirkOlivie DirkOlivie added the bug 🐛 Something isn't working label Jun 25, 2024
@lewisblake lewisblake self-assigned this Jun 26, 2024
@lewisblake lewisblake added this to the m2024-07 milestone Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants