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

using non-NaN values for plotTransectVerticalSection for significant speedup #1

Closed
wants to merge 3 commits into from

Conversation

kriete
Copy link
Contributor

@kriete kriete commented Nov 25, 2015

With the tested dataset (using ascii files), the speedup for the plotting is huge.

With the actual implementation: my setup needed 1607.517981 seconds.
With the here suggested changes: only 231.806831 seconds.

The added lines will select the non NaN data of the cdata. And uses the same indices for the x and ydata (obviously).
The ylimit is then casted to the max of all y data (including nan-data), to visualize the full depth.

Before:
before

After:
after

joanpau pushed a commit that referenced this pull request Dec 4, 2015
The performance of transect section plots seems to be really bad
when there are a lot of invalid values (NaN) in the input data.
Drastically improve it by filtering them out when calling
the scatter plot function. This does not change the final output.

  Close: #1.
@joanpau
Copy link
Contributor

joanpau commented Dec 4, 2015

The proposed fix is included in the develop branch (a2e8c94), with minor modifications
to adhere to the coding style and to the commit guidelines of the project.

@kriete kriete closed this Dec 11, 2015
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

Successfully merging this pull request may close these issues.

None yet

2 participants