Skip to content
Snippets Groups Projects
Commit 4e79a264 authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Make test_inside.py more general.

parent 956c5835
No related branches found
No related tags found
No related merge requests found
......@@ -7,17 +7,10 @@ import sys
if len(sys.argv) != 2: sys.exit("Required argument: ADT-file")
# Lower left corner (llc):
ilon_llc = 24
ilat_llc = 207
# Upper right corner (urc):
ilon_urc = 50
ilat_urc = 223
f= netCDF4.Dataset(sys.argv[1])
longitude = f.variables["lon"][ilon_llc:ilon_urc + 1]
latitude = f.variables["lat"][ilat_llc:ilat_urc + 1]
ssh = f.variables["adt"][0, ilat_llc:ilat_urc + 1, ilon_llc:ilon_urc + 1]
longitude = f.variables["lon"][:]
latitude = f.variables["lat"][:]
ssh = f.variables["adt"][0, :, :]
print("Values around target extremum:")
print(ssh[6:15, 8:17])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment