Skip to content

Commit 7d237ab

Browse files
committed
Add unraw option to network group to solve #152
1 parent 5b2f6ff commit 7d237ab

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/py_eddy_tracker/appli/network.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@ def build_network():
3434
action="store_true",
3535
help="If True, use intersection/little polygon, else intersection/union",
3636
)
37-
37+
parser.add_argument(
38+
"--unraw",
39+
action="store_true",
40+
help="Load unraw data, use only for netcdf."
41+
"If unraw is active, netcdf is loaded without apply scalefactor and add_offset.",
42+
)
3843
parser.contour_intern_arg()
3944

4045
parser.memory_arg()
@@ -49,7 +54,7 @@ def build_network():
4954
group = n.group_observations(
5055
min_overlap=args.min_overlap, minimal_area=args.minimal_area
5156
)
52-
n.build_dataset(group).write_file(filename=args.out)
57+
n.build_dataset(group,raw_data=not args.unraw).write_file(filename=args.out)
5358

5459

5560
def divide_network():

0 commit comments

Comments
 (0)