Skip to content

Commit a91e443

Browse files
committed
o Add multiple options for checking SCRIP
1 parent 62d1d7c commit a91e443

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

uxarray/io/_scrip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def _to_ugrid(in_ds, out_ds):
1616
source_dims_dict = {}
1717

1818
# Use imask, area or rank can be used but imask seemed to work for majority of cases
19-
if in_ds["grid_imask"].all():
19+
if in_ds["grid_imask"].all() or in_ds["grid_rank"].all() or in_ds["grid_area"].all():
2020
# Create node_lon & node_lat variables from grid_corner_lat/lon
2121
# Turn latitude and longitude scrip arrays into 1D
2222
corner_lat = in_ds["grid_corner_lat"].values.ravel()

0 commit comments

Comments
 (0)