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

Removed function that used matplotlib julian2num #129

Merged
merged 2 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# Version 0.2.0

- removed `julian2time` function from `convert.py` because it used code that was deprecated by `matplotlib`. This function is still available at `github.com/ACRG-Bristol/acrg/acrg/time/convert.py`. [#PR 129](https://github.com/openghg/openghg_inversions/pull/129)

- `met_model` is now used by `data_processing_surface_notracer`; it is an optional argument, passed as a list with the same length as the number of sites. [#PR 125](https://github.com/openghg/openghg_inversions/pull/125)

- Updated `pblh` filter to work with new variable names in footprints. [#PR 101](https://github.com/openghg/openghg_inversions/pull/101)
Expand Down
14 changes: 0 additions & 14 deletions openghg_inversions/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import dateutil
import time as tm
import datetime as dt
from matplotlib.dates import julian2num, num2date

# from openghg_inversions.utils import synonyms

Expand Down Expand Up @@ -324,19 +323,6 @@ def decimal2time(frac):
return return_iter(dates, notIter)


def julian2time(dates):
"""
Convert Julian dates (e.g. from IDL) to datetime
"""
dates, notIter = check_iter(dates)

dates_julian = []
for date in dates:
dates_julian.append(num2date(julian2num(date)))

return return_iter(dates_julian, notIter)


def convert_to_hours(time):
"""
Convert to hours
Expand Down
Loading