Skip to content

Commit

Permalink
fixes Test for getting GOES-18 data #45
Browse files Browse the repository at this point in the history
  • Loading branch information
blaylockbk committed Aug 23, 2023
1 parent 7ff55d1 commit d4403a8
Showing 1 changed file with 30 additions and 13 deletions.
43 changes: 30 additions & 13 deletions tests/test_GOES.py
Original file line number Diff line number Diff line change
@@ -1,28 +1,45 @@
from goes2go import GOES


def test_GOES():
########################################################################


def test_GOES16():
"""Create a GOES object"""
G = GOES(satellite="noaa-goes16", domain="C")
assert G.satellite == "noaa-goes16"
assert G.domain == "C"


def test_GOES_latest():
G = GOES()
ds = G.latest()
def test_GOES16_latest():
ds = GOES(satellite=16).latest()


def test_GOES16_nearesttime():
ds = GOES(satellite=16).nearesttime("2022-01-01")


def test_GOES16_timerange():
ds = GOES(satellite=16).timerange("2022-01-01 00:00", "2022-01-01 01:00")


def test_GOES_nearesttime():
G = GOES()
ds = G.nearesttime("2022-01-01")
def test_GOES16_df():
df = GOES(satellite=16).df("2022-01-01 00:00", "2022-01-01 01:00")


########################################################################


def test_GOES18():
"""Create a GOES object"""
G = GOES(satellite="noaa-goes18", domain="C")
assert G.satellite == "noaa-goes18"
assert G.domain == "C"


def test_GOES_timerange():
G = GOES()
ds = G.timerange("2022-01-01 00:00", "2022-01-01 01:00")
def test_GOES18_latest():
ds = GOES(satellite=18).latest()


def test_GOES_df():
G = GOES()
df = G.df("2022-01-01 00:00", "2022-01-01 01:00")
def test_GOES18_nearesttime():
ds = GOES(satellite=18).nearesttime("2023-07-01")

0 comments on commit d4403a8

Please sign in to comment.