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

Unexpected results when using year filter on "large" dataset #18

Closed
bergziege opened this issue May 13, 2022 · 1 comment
Closed

Unexpected results when using year filter on "large" dataset #18

bergziege opened this issue May 13, 2022 · 1 comment

Comments

@bergziege
Copy link

Problem

When using the year filter and at the end the script uses only about 500 tracks from over 15000 (1 year out of 10) my plotted heatmap is nearly completely black.

Assumption

When calculating the strenght/glow/... when drawing the heatmap seems to work with the count of all files and not only filtered ones. So when taking into account all the tracks from all years the tracks from 2022 will only be a tiny part of them resulting in a nearly black image. But I am not able to find that place in the code.

Examples

All data:
heatmap-dresden-all_thumb

Filtered by year 2022:
heatmap-dresden-2022_thumb
There are some red pixels in the original image. So it wants to show some data.

Used Tracks for 2022:
trackmap-dresden-2022_tumb

Possible workaround (well, not really)

In addition to one folder containing all files on could create separate folders for each year .... but at he same time this would make the year filter obsolete.

@bergziege
Copy link
Author

bergziege commented May 13, 2022

Well, as expected.
At line 248 the overall count of all gpx files is used instead of the filtered ones.

m = max(1.0, np.round((1.0/5.0)*res_pixel*len(gpx_files)))

I will have a look at python and create a merge request later.

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

1 participant