Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tops2vrt.py error 1 missing [ and location outside the geolocation array range #83

Open
JianBo17 opened this issue Dec 14, 2023 · 1 comment

Comments

@JianBo17
Copy link

JianBo17 commented Dec 14, 2023

When I used tops2vrt.py to generate the VRT file, I meet some problem.The details are as follows:

tops2vrt.py -i ../merged/ -s coreg_stack -g geometry -c slcs -B 38.5 39.9 116.6 118.2
number of SLCs discovered:  63
we assume that the SLCs and the vrt files are sorted in the same order
creating directory: slcs
write vrt file for each SLC ...
/home/jianbo/anaconda3/envs/insar/lib/python3.11/site-packages/osgeo/gdal.py:287: FutureWarning: Neither gdal.UseExceptions() nor gdal.DontUseExceptions() has been explicitly called. In GDAL 4.0, exceptions will be enabled by default.
  warnings.warn(
1 / 63: slcs/20210106.vrt
2 / 63: slcs/20210106.vrt
3 / 63: slcs/20210118.vrt
4 / 63: slcs/20210130.vrt
5 / 63: slcs/20210211.vrt
6 / 63: slcs/20210223.vrt
7 / 63: slcs/20210307.vrt
8 / 63: slcs/20210319.vrt
9 / 63: slcs/20210331.vrt
10 / 63: slcs/20210412.vrt
11 / 63: slcs/20210424.vrt
12 / 63: slcs/20210506.vrt
13 / 63: slcs/20210518.vrt
14 / 63: slcs/20210530.vrt
15 / 63: slcs/20210611.vrt
16 / 63: slcs/20210623.vrt
17 / 63: slcs/20210705.vrt
18 / 63: slcs/20210717.vrt
19 / 63: slcs/20210729.vrt
20 / 63: slcs/20210810.vrt
21 / 63: slcs/20210822.vrt
22 / 63: slcs/20210903.vrt
23 / 63: slcs/20210927.vrt
24 / 63: slcs/20211009.vrt
25 / 63: slcs/20211021.vrt
26 / 63: slcs/20211102.vrt
27 / 63: slcs/20211114.vrt
28 / 63: slcs/20211220.vrt
29 / 63: slcs/20220101.vrt
30 / 63: slcs/20220125.vrt
31 / 63: slcs/20220206.vrt
32 / 63: slcs/20220314.vrt
33 / 63: slcs/20220326.vrt
34 / 63: slcs/20220407.vrt
35 / 63: slcs/20220419.vrt
36 / 63: slcs/20220501.vrt
37 / 63: slcs/20220525.vrt
38 / 63: slcs/20220724.vrt
39 / 63: slcs/20220805.vrt
40 / 63: slcs/20220910.vrt
41 / 63: slcs/20220922.vrt
42 / 63: slcs/20221028.vrt
43 / 63: slcs/20221109.vrt
44 / 63: slcs/20221121.vrt
45 / 63: slcs/20221203.vrt
46 / 63: slcs/20221215.vrt
47 / 63: slcs/20221227.vrt
48 / 63: slcs/20230108.vrt
49 / 63: slcs/20230120.vrt
50 / 63: slcs/20230201.vrt
51 / 63: slcs/20230213.vrt
52 / 63: slcs/20230225.vrt
53 / 63: slcs/20230309.vrt
54 / 63: slcs/20230321.vrt
55 / 63: slcs/20230402.vrt
56 / 63: slcs/20230414.vrt
57 / 63: slcs/20230426.vrt
58 / 63: slcs/20230508.vrt
59 / 63: slcs/20230520.vrt
60 / 63: slcs/20230601.vrt
61 / 63: slcs/20230613.vrt
62 / 63: slcs/20230731.vrt
63 / 63: slcs/20230824.vrt
creating stack directory: coreg_stack
finding bbox based on geo coordinates of [38.5, 39.9, 116.6, 118.2] ...
ERROR 1: missing [
ERROR 1: missing [
Location outside the geolocation array range
/home/jianbo/InSAR/Fringe/install/bin/tops2vrt.py:80: RuntimeWarning: invalid value encountered in cast
  ymax = np.int16(np.round(np.max([se[1], nw[1]])))
/home/jianbo/InSAR/Fringe/install/bin/tops2vrt.py:83: RuntimeWarning: invalid value encountered in cast
  xmax = np.int16(np.round(np.max([se[0], nw[0]])))
x min-max:  -32034 0
y min-max:  502 0
write vrt file for stack directory
creating geometry directory: geometry
write vrt file for geometry dataset

The Error 1 : missing [ are happened twice, which may due to the gdal.transformer I guess. But I have no idea how to fix the error.
Hope anyone could help me.
Thanks.

@bbuzz31
Copy link

bbuzz31 commented Dec 18, 2023

Error 1 : missing [ is actually a redd herring, I have encountered it frequently with no adverse effects.

The error you're encountering is mostly likely due to the np.int16; change it to a bigger integer and you shouldn't have the negative xmin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants