Giter VIP home page Giter VIP logo

Comments (9)

evetion avatar evetion commented on June 18, 2024 1

Just note that we now support plotting rotated rasters as well. 🎉

from geoarrays.jl.

evetion avatar evetion commented on June 18, 2024

Well, GeoArrays doesn't rotate it. This is just a projected raster that has a lot of missing data around the edges, therefore appearing to be rotated. Sorry to disappoint.

However, your plot should be the same as the README. Could you post a screenshot, mention your OS and GeoArrays version? This might be due to your default Plots.jl backend. This is my result on Fedora (note the jagged pixelated edge of the raster, indicating it's non-rotated):

Screenshot from 2020-10-03 13-12-07

from geoarrays.jl.

luraess avatar luraess commented on June 18, 2024

Apologies for having opened this issue. The code snipped produces now the desired output
geoarray_out
I tried it several times before filing the issue, with restarting Julia in-between. Have no clue why it did not work then. Anyway, good so.

Regarding the "rotation": rotating may be not the most appropriate word. I meant that I am looking a way to plot a 2D field (data) as function of 2D x and y coordinate fields (as in pcolor() from PyPlot see here). As such, one could then pass x and y coordinate that are not aligned with the cartesian 2D axis. If you have any suggestions how to do this using Plots.jl I would be happy to know as It seems you do so to produce the example figure we are discussing now.

from geoarrays.jl.

dgatey-rms avatar dgatey-rms commented on June 18, 2024

Does plot need to be exported or which plot backend are you using?
For the above example I get an error that that there is no method matching Plots with a GeoArray.

from geoarrays.jl.

visr avatar visr commented on June 18, 2024

The plot backend should not matter, this package uses RecipesBase to tell Plots how it should be plotted. Could it be that you have an old version of GeoArrays installed?

from geoarrays.jl.

dgatey-rms avatar dgatey-rms commented on June 18, 2024

Seems to be a Windows vs Linux issue. On my Linux environment (Julia 1.4) it has the latest version, however in Windows (Julia 1.4 and 1.5) it only updates to 0.1.0 - will check the dependencies etc. and see if I can sort out why

from geoarrays.jl.

visr avatar visr commented on June 18, 2024

Hmm the package compatibilities are platform agnostic. Probably a package in your environment is holding it back from the latest version. Installing in an empty environment should work. Or you can try pkg> add [email protected] to see what is the reason you are not getting the latest version.

from geoarrays.jl.

dgatey-rms avatar dgatey-rms commented on June 18, 2024

Thanks, I was able to trace through a number of issues through GDAL, etc. the final culprit being a compatibility requirement of RecipesBase on JuliaDB.
image

FYI - regarding the issue flagged in the original post, I had initially experienced the same outcome but it was simply because the tif used in the Read TIF file example is different (lower quality and square as pointed out earlier) to the one used in the plot example. I suspect that should close the issue?

from geoarrays.jl.

evetion avatar evetion commented on June 18, 2024

Happy to hear that you figured out the underlying issue! 👍

from geoarrays.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.