Comments (9)
Thanks very much for this description!
I'm happy to report that this is working without any hiccups and I do get the outputs in folder test3.
Really looking forward to exploring this further and scaling up.
from omniscape.jl.
Awesome! Don't hesitate to reach out with any more questions, bug reports, or feature requests as well!
from omniscape.jl.
Hi @vlandau,
Great NACCB talk and great to see Omniscape development in Julia!
Do you happen to have a worked example that you could share at this point?
I'm new to Julia (R user), but am very curious to try this out and see if it could be useful for our work.
Thanks!
from omniscape.jl.
Hi @ricschuster, super glad you enjoyed the talk, thanks for tuning in! I don't have a completely worked example yet, but I have some example .ini files that might helpful to check out for now? There are a bunch of test files (including .ini's, resistance surfaces, source strength surfaces, and climate rasters) here that might be useful as a starting point?
from omniscape.jl.
Thanks @vlandau!
Do you by chance have a quick description of the files in the test folder, or should I just go about and play around with them?
from omniscape.jl.
Sorry, another question: do you happen to have some files for a 'realistic' example that you could share as well?
I do have resistance surfaces from circuitscape projects, but I want to make sure that the resistance and ini file combination works, before trying on our data.
from omniscape.jl.
I don't have anything immediately on hand unfortunately, but I would like to add a "tutorial" folder to the repo with some small but non-random resistance surfaces in the coming weeks (maybe I can use the classic resistance surface that Brad created for Circuitscape.py). Any resistance surface that works for Circuitscape will also work for Omniscape, for what that's worth, but definitely a good call to start on a smaller problem to work out any kinks, etc.
I think config3.ini would be a good place to start. It represents a simple use case, and you can cross reference with the docs for descriptions of what each argument means.
To actually get it running on your machine, you could save config3.ini and resistance1.asc to your computer, let's say to a folder called omniscape-test, change input/resistance1.asc in the ini to resistance1.asc (since presumably you won't want to bother with also creating another folder at omniscape-test/input), then launch Julia.
In Julia, you'll want to change your working directory to the omniscape-test folder because the paths are relative to the omniscape-test folder (just like in R, if you setwd()
, you can just use file names in functions like read_csv
instead of the full path).
So
- Open a julia terminal
- run
cd("path/to/omniscape-test")
where that path will be identical to what you would put insetwd
in R to change your working directory to omniscape-test - run
using Pkg; Pkg.add("Omniscape")
(only if Omniscape is not already installed) - using Omniscape
- run_omniscape("config3.ini")
This will run the problem, and outputs will be written to a folder inside omniscape-test called test3, as specified in the .ini foler. Once this is working, you can play around with changing things in the .ini like the resistance_file
(e.g. you could change it to the path of one of your resistance surfaces) and you'd probably also want to change radius
.
Okay, tons of info there and almost certainly not perfectly clear, so please let me know if I can clarify anything!
from omniscape.jl.
Closed with addition of new Examples section in the docs 🎉
from omniscape.jl.
I would like to provide the path to my tif file which is on my local machine, how do I do it.
from omniscape.jl.
Related Issues (20)
- Unexpected results HOT 3
- Learning Omniscape -- Error message when running example code HOT 1
- Allow Bool values in cfg of in-memory run_omniscape? HOT 2
- Omniscape crashing with AssertionError: norm(G * v .- curr) / norm(curr) < 1.0e-6 HOT 33
- RasData error after updating both Circuitscape and Omniscape HOT 2
- Segmentation fault in expression starting at none:0 HOT 3
- enable BigTIFF support on write? HOT 2
- computation time increases with more than six workers HOT 1
- Resistance file does not exist error HOT 2
- UndefVarError 'read_raster' not defined HOT 4
- Fix documenter and tagbot HOT 4
- Omniscape failed on the moving window centered on ... HOT 2
- Is the scale for Cumulative current flow & Flow current inverted in the latest release? HOT 1
- nested task error HOT 1
- reclass_table should give a warning if reclassify_resistance is false HOT 2
- project_name is not respected when doing successive runs HOT 2
- Julia/Omniscape not recognizing files [Solved: ini file mistake - no source specified] HOT 2
- Sending progress to stdout HOT 2
- Omniscape fails on specific row / column: AssertionError HOT 7
- Error in writing final outputs - no method matching setgeotransform HOT 6
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 omniscape.jl.