SliDEM-python icon indicating copy to clipboard operation
SliDEM-python copied to clipboard

AttributeError: 'DataFrame' object has no attribute 'TemporalBaseline'

Open Sumiya0623 opened this issue 2 years ago • 2 comments

(xdem-dev) root@d41d881b76b9:/home# python3.6 scripts/0_query_s1.py --download_dir data/s1/ --query_result s1_scenes.csv --date_start 2016/06/01 --date_end 2022/06/10 --aoi_path data/area.geojson Connecting to API and searching images, depending on your AOI size and time period, this process may take a while. Be patient :) /usr/local/lib/python3.6/dist-packages/tzlocal/unix.py:177: UserWarning: Can not find any timezone configuration, defaulting to UTC. warnings.warn("Can not find any timezone configuration, defaulting to UTC.") 'type': 'GEOMETRY_SIMPLIFICATION' 'report': 'Shape Simplified: shape of 4741 simplified to 199 with proximity threshold of 0.004' 'type': 'REVERSE' 'report': Reversed polygon winding order Traceback (most recent call last): File "scripts/0_query_s1.py", line 199, in baseline = baseline[(baseline.TemporalBaseline.notnull()) & File "/usr/local/lib/python3.6/dist-packages/pandas/core/generic.py", line 5141, in getattr return object.getattribute(self, name) AttributeError: 'DataFrame' object has no attribute 'TemporalBaseline'

Sumiya0623 avatar Jul 06 '23 11:07 Sumiya0623

is it depends on data or library issue?

Sumiya0623 avatar Jul 06 '23 11:07 Sumiya0623

Dear @Sumiya0623, I did some local tests with another AOI and the query script works fine. This can be related to your AOI and also time period. If you can attach the AOI file you used I can look more into it. Also as a tip, your time frame is very large so the query will take a while, I suggest you reduce your time frame to periods per year, e.g., 2016/06/01-2016/10/01

loreabad6 avatar Jul 10 '23 09:07 loreabad6