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

Implement feature to export masked array for the location of the shape #31

Open
Syntaf opened this issue Jul 22, 2015 · 2 comments
Open
Assignees
Milestone

Comments

@Syntaf
Copy link
Member

Syntaf commented Jul 22, 2015

Following the suggestion of @Jwely , create an extraction option which will output a masked array outlining shape itself. There are a couple ways to go about it if you want to expand on your idea jeff:

  • Output the array to a file in it's literal format, which can be used by future python scripts that take advantage of literal_eval ref

  • simply output the text file with the masked values in a spaced format e.g.

    1 1 1 1 1 1
    1 0 0 1 1 1
    1 0 0 0 1 1
    1 1 1 1 1 1

  • additional ideas?

@kdottiemo
Copy link
Collaborator

Ah yes, this is basically what I'm saying also. Thank you!

@Syntaf
Copy link
Member Author

Syntaf commented Jun 28, 2016

@stapleCamel and I wrote extractdialog.py which takes a shape and creates a subset of the data to display to it's own plot, so all the code is in place and setup to do something like this. The dialog calculates a rectangular bounding box where the data inside is then graphed independently.

The reason why #31 remains open is because we had no idea in what format they wanted this data. We tried asking them for an example of how they would want us to give them data, but they never communicated how we should be outputting it. Your hardest challenge will likely be finding what format to deliver the data in (output the bounded subset of data held in an array to a text file? comma separate it? round values? what decimal place? should we display the masked value? what formatting do we apply to the numbers? etc.. etc..)

EDIT: extract dialog is opened via the extract button on the tools window for reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants