Skip to content

Commit

Permalink
fix some merge errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jlmaurer committed Aug 5, 2023
1 parent 79f7bd9 commit 78ed72f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/test_intersect.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@pytest.mark.parametrize('wm', 'ERA5'.split())
def test_cube_intersect(wm):
""" Test the intersection of lat/lon files with the DEM (model height levels?) """
SCENARIO_DIR = os.path.join(TEST_DIR, "INTERSECT")
SCENARIO_DIR = os.path.join(TEST_DIR, "scenario_6")
os.makedirs(SCENARIO_DIR, exist_ok=True)

## make the lat lon grid
Expand Down Expand Up @@ -43,8 +43,7 @@ def test_cube_intersect(wm):
assert proc.returncode == 0, 'RAiDER Failed.'

## hard code what it should be and check it matches
gold = {'ERA5': 2.29017997, 'GMAO': np.nan, 'HRRR': np.nan}
# gold = {'ERA5': 2.2787, 'GMAO': np.nan, 'HRRR': np.nan}
gold = {'ERA5': 2.2787, 'GMAO': np.nan, 'HRRR': np.nan}

path_delays = os.path.join(SCENARIO_DIR, f'{wm}_hydro_{date}T{time.replace(":", "")}_ztd.tiff')
latf = os.path.join(SCENARIO_DIR, 'lat.rdr')
Expand Down Expand Up @@ -94,8 +93,7 @@ def test_gnss_intersect(wm):
proc = subprocess.run(cmd.split(), stdout=subprocess.PIPE, universal_newlines=True)
assert proc.returncode == 0, 'RAiDER Failed.'

gold = {'ERA5': 2.34513194, 'GMAO': np.nan, 'HRRR': np.nan}
# gold = {'ERA5': 2.3466, 'GMAO': np.nan, 'HRRR': np.nan}
gold = {'ERA5': 2.3466, 'GMAO': np.nan, 'HRRR': np.nan}
df = pd.read_csv(os.path.join(SCENARIO_DIR, f'{wm}_Delay_{date}T{time.replace(":", "")}.csv'))
td = df['totalDelay'][df['ID']==id].values

Expand Down
Binary file modified test/weather_files/ERA-5_2020_01_30_T13_52_45.nc
Binary file not shown.

0 comments on commit 78ed72f

Please sign in to comment.