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

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

Open
Sumiya0623 opened this issue Jul 6, 2023 · 2 comments

Comments

@Sumiya0623
Copy link

(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
Copy link
Author

is it depends on data or library issue?

@loreabad6
Copy link
Member

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

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