-
Notifications
You must be signed in to change notification settings - Fork 80
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
Presumed interference between FileIO and Images or FixedPointNumbers #113
Comments
Not sure if this is still relevant? GMT is a bit harder to install than I'm willing to work through in order to test this. |
I had forgotten about this, so probably not relevant. Tried to run it again but got a different error that can be replicated with
Not pushing you on this but GMT is not difficult to install (but it's not a single https://github.com/GenericMappingTools/gmt/blob/master/INSTALL.md#ubuntudebian Just not sure if the conda install makes it visible outside conda environment, which is needed for GMT.jl to find it |
That error has nothing to do with this package; your first dimension has to be of size 3 since RGB has 3 color channels. |
Well I made up that example because (and before it worked up to this point)
|
Use |
And, I'm on Windows. |
OK, so it's not color at all. I'm confused about why you need the reinterpret if it's already The bottom line is this: when you do But again, this has nothing to do with FileIO. |
Yes it is a color. It comes from reading the tinny tinny jpg image at the bottom of first post (just changed its name to fit with what's in that first post).
I guess that at the time I was seeking a way to display the images in |
No worries. I tried installing GMT again but I get an error. For the record it's julia> using GMT
[ Info: Precompiling GMT [5752ebe1-31b9-557e-87aa-f909b540aa54]
ERROR: LoadError: LoadError: could not load library "/usr/lib/x86_64-linux-gnu/libgmt.so"
/usr/lib/x86_64-linux-gnu/libgmt.so: cannot open shared object file: No such file or directory
Stacktrace:
[1] GMT_Create_Session
@ ~/.julia/packages/GMT/zIejk/src/libgmt.jl:26 [inlined]
[2] top-level scope
... despite having installed those Ubuntu packages. 🤷 It's straightforward for FileIO to open the image itself, as you say. I'm not quite sure what to do here. Maybe just drop it until there's a clearer reproducer? |
Yes, better to close this.
does it print a long list of modules?
|
Does this command in a unix shell (in pure GMT syntax, not GMT.jl) pops up this nice map? (probably not since you had an error from Julia but that's what I'm trying to figure out what was)
It takes some time since it downloads a 10 Mb file reformats it, must project, etc |
First, let me apologize for this kinda difficult to reproduce issue report but it depends on a interaction with a C library that I just fixed for this to work. The background is that explained in this thread
What happens is the following. Somehow the order by which I load an image is important.
This works well:
But if I just revert the order of the operations
I'm attaching the (tiny tiny) test image for the case you find it useful
The text was updated successfully, but these errors were encountered: