Skip to content

Commit

Permalink
some basic setu
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisblake committed Aug 1, 2023
1 parent 3a4ab49 commit 22ba448
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyaerocom/plugins/mep/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import xarray as xr

from pyaerocom import const
from pyaerocom.io.readungriddedbase import ReadUngriddedBase
from pyaerocom.io.readgridded import ReadGridded
from pyaerocom.stationdata import StationData
from pyaerocom.ungriddeddata import UngriddedData

Expand Down
48 changes: 48 additions & 0 deletions pyaerocom/plugins/tropomi/reader.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
from __future__ import annotations

import logging
import re
from collections import defaultdict
from collections.abc import Iterable
from functools import cached_property, lru_cache
from pathlib import Path

import xarray as xr

from pyaerocom import const
from pyaerocom.io.readgridded import ReadGriddedBase
from pyaerocom.stationdata import StationData
from pyaerocom.griddeddata import GriddedData

logger = logging.getLogger(__name__)

COLUMNS = (
"country",
"stationname",
"stationcode",
"latitude",
"longitude",
"altitude",
"timestamp",
"pollutant",
"unit",
"frequency",
"value",
)


class ReadTropomiL3(ReadGriddedData):
"""
Class to read processed TROPOMI data (homebrewed L3 data) for use in SESAM.
e.g., Tropospheric vertical column of nitrogen dioxide
"""

_FILEMASK = "S5p_*.nc"
__version__ = "0.01"

DATA_ID = ""

def __init__(self, data_id=None, data_dir=None):
if data_dir is None:
raise Exception("Need a data_dir")
super.__init__(data)

0 comments on commit 22ba448

Please sign in to comment.