-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a4ab49
commit 22ba448
Showing
2 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |