File: open_SLC_IW.py

package info (click to toggle)
xarray-safe-s1 2025.12.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 324 kB
  • sloc: python: 2,104; makefile: 13; sh: 12
file content (15 lines) | stat: -rw-r--r-- 354 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import time

from safe_s1 import Sentinel1Reader, getconfig

conf = getconfig.get_config()
subswath = conf["nfs_iw_grd_path"]
print(subswath)
t0 = time.time()
sub_reader = Sentinel1Reader(subswath)
elapse_t = time.time() - t0

dt = sub_reader.datatree
print("out of the reader")
print(dt)
print("time to read the SAFE through nfs: %1.2f sec" % elapse_t)