Skip to content

Commit 6d9cdd8

Browse files
committed
correct test_ncextract.py
1 parent 5861515 commit 6d9cdd8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tests/test_ncextract.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import unittest
22
# from lisfloodutilities.compare.nc import NetCDFComparator
3-
from lisfloodutilities.ncextract import read_points, read_inputmaps, read_ldd, extract_timeseries
3+
from lisfloodutilities.ncextract import read_points, read_inputmaps, read_ldd, extract_timeseries, rename_geographic_coords
44
import numpy as np
55
import xarray as xr
66
from datetime import datetime
@@ -50,14 +50,16 @@ def test_ncextract(self):
5050
# read expected results
5151
expected = xr.open_dataset(expected_file)
5252

53-
# read points of interest
54-
poi = read_points(inputcsv)
55-
5653
# read maps
5754
maps = read_inputmaps(data_dir, start=start, end=end)['dis24']
5855

56+
# read points of interest
57+
poi = read_points(inputcsv)
58+
poi = rename_geographic_coords(poi, maps)
59+
5960
# read LDD
60-
ldd = read_ldd(ldd_file, maps)
61+
ldd = read_ldd(ldd_file)
62+
ldd = rename_geographic_coords(ldd, maps)
6163

6264
# extract outflow timeseries
6365
print('Extracting reservoir outflow...')

0 commit comments

Comments
 (0)