SliDEM-project / SliDEM-python

Python package for the SliDEM project
https://hub.docker.com/repository/docker/loreabad6/slidem
Apache License 2.0
17 stars 2 forks source link

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

Open Sumiya0623 opened 1 year ago

Sumiya0623 commented 1 year ago

(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 commented 1 year ago

is it depends on data or library issue?

loreabad6 commented 1 year ago

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