Comments (9)
Just note that we now support plotting rotated rasters as well. 🎉
from geoarrays.jl.
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):
from geoarrays.jl.
Apologies for having opened this issue. The code snipped produces now the desired output
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.
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.
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.
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.
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.
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.
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.
Happy to hear that you figured out the underlying issue! 👍
from geoarrays.jl.
Related Issues (20)
- Accept prefixes and postfixes in the filename
- Coalesce complete GeoArray HOT 1
- Support metadata HOT 1
- Document nodata values on non-masked (lazy) bands
- Suggest renaming`interpolate!` to `fill!` HOT 2
- return indices as CartesianIndex HOT 3
- Add guidence in ReadMe as differneces (strengths/weaknesses) between GeoArrays.jl and Raster.jl HOT 3
- Type conversion HOT 1
- `affine!` or `f!` funciton HOT 2
- Should bbox return an Extent? HOT 3
- Support for warp? HOT 4
- GeoArrays.read(ga, masked=false) should probably be default HOT 4
- add support of `coords` to return a `StepRangeLen` HOT 4
- ranges produces wrong length of vector HOT 2
- Crop returns incorrect result HOT 1
- Upstream changes break GeoArrays HOT 1
- Should GeoArrays use Extents.Extent instead of Named tuples? HOT 1
- .tif files not released after reading HOT 2
- Local test failure HOT 3
- Support `stepsize` in `getindex`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geoarrays.jl.