Giter Club home page Giter Club logo

Comments (13)

lewisblake avatar lewisblake commented on August 30, 2024 3

Screenshot from 2023-06-02 11-43-13
Works with iris 3.4.1

from pyaerocom.

jgriesfeller avatar jgriesfeller commented on August 30, 2024

Just to add to this... The following maps should show the same (I created some monthly mean data with cdo):
image
image

The units are unfortunately not the same, but even the patterns look different. The files look OK. Very weird.

from pyaerocom.

lewisblake avatar lewisblake commented on August 30, 2024

Maybe it's just a fluke with lustre and if we ran the experiment again it might work?

from pyaerocom.

lewisblake avatar lewisblake commented on August 30, 2024
Processing model maps for IFS-ESUITE (concpm10)
Searching database for ECMWF_ESUITE
/lustre/storeB/project/aerocom/aerocom-users-database/ECMWF/ECMWF_ESUITE has subdir renamed. Using that one
Found match for ID ECMWF_ESUITE
Did not find concpm10 field but sconcpm10. Using the latter instead
Invalid time dimension coordinate in file:
/lustre/storeB/project/aerocom/aerocom-users-database/ECMWF/ECMWF_ESUITE/renamed/aerocom3_ECMWF_ESUITE_sconcpm10_Surface_2022_daily.nc.
Error: repr(Cube does not contain time dimension)

from pyaerocom.

andagit avatar andagit commented on August 30, 2024

But this is from all comps, ie.:
log

from pyaerocom.

lewisblake avatar lewisblake commented on August 30, 2024

Yes, just making notes to myself. This is typical although look suspicious at first glance

from pyaerocom.

lewisblake avatar lewisblake commented on August 30, 2024

d25aeeae-dbfd-445d-b458-e86b12864501
Iris cube after rearranging longitude coords to [180, 180) seems fine

from pyaerocom.

lewisblake avatar lewisblake commented on August 30, 2024

82ef9f31-aedf-4ff3-a7a8-20047a6173a8

the iris cube before being written to geojson. Between pyaerocom/io/iris_io.py(208)check_and_regrid_lons_cube()
and pyaerocom/aeroval/modelmaps_engine.py(158)_process_map_var() the problem occurs

Trackback...

(Pdb) traceback.print_stack()
  File "/lustre/storeB/users/lewisb/Python/Evaluations/aeroval/config/config_files/cfg_fix_864.py", line 428, in <module>
    res = ana.run()
  File "/lustre/storeB/users/lewisb/Python/Evaluations/pyaerocom/pyaerocom/aeroval/experiment_processor.py", line 130, in run
    engine.run(model_list=model_list, var_list=var_list)
  File "/lustre/storeB/users/lewisb/Python/Evaluations/pyaerocom/pyaerocom/aeroval/modelmaps_engine.py", line 45, in run
    files = self._run_model(model, var_list)
  File "/lustre/storeB/users/lewisb/Python/Evaluations/pyaerocom/pyaerocom/aeroval/modelmaps_engine.py", line 85, in _run_model
    _files = self._process_map_var(model_name, var, self.reanalyse_existing)
  File "/lustre/storeB/users/lewisb/Python/Evaluations/pyaerocom/pyaerocom/aeroval/modelmaps_engine.py", line 158, in _process_map_var
    contourjson = calc_contour_json(data, cmap=varinfo.cmap, cmap_bins=varinfo.cmap_bins)

from pyaerocom.

lewisblake avatar lewisblake commented on August 30, 2024

42732729-ed87-4231-b3a2-c3707395c1e2
iris cube before being put into GriddedData object. Still looks okay

from pyaerocom.

lewisblake avatar lewisblake commented on August 30, 2024

072ea505-c8d2-4dbb-ade4-72f6c044b23e
After becoming a GriddedData object it gets messed up.

pyaerocom/io/readgridded.py line 2123.

data = GriddedData(
    input=cube,
    from_files=from_files,
    data_id=self.data_id,
    concatenated=is_concat,
    convert_unit_on_init=try_convert_units,
    **meta,
)

There are unit conversions occurring so look into that

from pyaerocom.

lewisblake avatar lewisblake commented on August 30, 2024

Before calling iris.grid.convert_units():

7bf5477e-fc02-474f-ab94-e5dbf9e155cc

After calling iris.grid.convert_units():

d20e5fe4-6ba9-45fa-a2cd-d9f2162f010a

Happens in pyaerocom/gridded_data.py::convert_unit() line 849. Seems like the issue is with iris

from pyaerocom.

lewisblake avatar lewisblake commented on August 30, 2024

BTW, in pyaerocom/io/iris_io.py line 535 has cube.attributes["timedim-corrected"] = True which is technically wrong because netcdf can't have boolean attributes when saving an iris cube.

from pyaerocom.

lewisblake avatar lewisblake commented on August 30, 2024

Using iris 3.5.0 pyhd8ed1ab_0 conda-forge. Iris 3.5.0 was released April 27th. 3.4.1 was released Feb 21

from pyaerocom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.