Skip to content

Commit

Permalink
Add ionospheric correction (#185)
Browse files Browse the repository at this point in the history
* Add tropospheric correction module to the workflow

* correct datetime datatype and logger message

* remove type=str from argparse

Co-authored-by: Scott Staniewicz <[email protected]>

* remove type=str from argparse

* reformatting

* use dataclass instead of dict

* add pyaps3 to requirements

* change opera-utils version

* correct typos and use enum instead of literal

* change warn to warning

* fix `warn` in `displacement.py

* add the main function to __all__

* Apply suggestions from code review

Co-authored-by: Scott Staniewicz <[email protected]>

* add suggestions from review

* restructure docstring for dataclass

* remove repeated line

Co-authored-by: Scott Staniewicz <[email protected]>

* correct typo

Co-authored-by: Scott Staniewicz <[email protected]>

* change bounds to SNWE

* [pre-commit.ci] pre-commit autoupdate (#178)

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.7 → v0.1.8](astral-sh/ruff-pre-commit@v0.1.7...v0.1.8)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* add `overwrite` option for `atomic_output` (#179)

* add option for overwriting in `atomic_output`

* return the outputs from snaphu unwrap

* Use `conncomp.tif` for connected component rasters (#181)

* use GTiff instead of ENVI for conncomps

* add changelog

* fix unw.conncomp test check

* [pre-commit.ci] pre-commit autoupdate (#182)

* Expose `--no-unwrap` in `dolphin config` to skip unwrapping (#183)

* add ionosphere correction

* transform coordinates using rasterio

Co-authored-by: Scott Staniewicz <[email protected]>

* use rasterio and griddata

* skip corrections if inputs are not provided

* Apply suggestions from code review

Co-authored-by: Scott Staniewicz <[email protected]>

* show function outputs more clear

* add comment about num_map

* use tuple instead of list

* use both str and ENUM in dataclass

* use better annotation

* Apply suggestions from code review

Co-authored-by: Scott Staniewicz <[email protected]>

* remove assert lines

* fix my shuffling and missing import from suggestion

* move prepare_geomtery to displacement.py

* add test for iono and tropo in workflow

* add atmospheric correction test data

* pre-commit correction

* remove iono_date_fmt from config file

* turn on unwrapping in config to test tropo/iono

* attempt to fix static layers test data

* turn off for now

---------

Co-authored-by: Sara Mirzaee <[email protected]>
Co-authored-by: Scott Staniewicz <[email protected]>
Co-authored-by: Scott Staniewicz <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
5 people authored Jan 24, 2024
1 parent 83efbf5 commit b92b0b9
Show file tree
Hide file tree
Showing 18 changed files with 34,929 additions and 162 deletions.
4 changes: 2 additions & 2 deletions src/dolphin/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Bbox(NamedTuple):
DateOrDatetime = Union[datetime.datetime, datetime.date]


class TropoModel(Enum):
class TropoModel(str, Enum):
"""Enumeration representing different tropospheric models."""

ERA5 = "ERA5"
Expand All @@ -71,7 +71,7 @@ class TropoModel(Enum):
GMAO = "GMAO"


class TropoType(Enum):
class TropoType(str, Enum):
"""Type of tropospheric delay."""

WET = "wet"
Expand Down
1 change: 1 addition & 0 deletions src/dolphin/atmosphere/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""Atmospheric corrections."""

from .troposphere import * # noqa
from .ionosphere import * # noqa
Loading

0 comments on commit b92b0b9

Please sign in to comment.