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

optimize script #1

Open
mihiarc opened this issue Aug 17, 2017 · 1 comment
Open

optimize script #1

mihiarc opened this issue Aug 17, 2017 · 1 comment

Comments

@mihiarc
Copy link
Owner

mihiarc commented Aug 17, 2017

@Patdi

Right now, including the forest cover weighting, each iteration takes about 9 sec. I'm sure this thing can go faster. For starters: the way this thing stores my output in .dbf format seems clunky. I end up with tens of thousands of .dbf files that have to be processed again in an R script.

Is there a way to make my own output table and append to it in each iteration instead of making a separate .dbf file in every loop?

@mihiarc
Copy link
Owner Author

mihiarc commented Aug 17, 2017

@Patdi

To get a handle on the output issue, you can simplify the script to omit the forest cover weighting. That input file was too big to share here anyway. The rest of process doesn't change at all, only the distribution of values which is fine for now. Let me know if the script comments are not clear.

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

No branches or pull requests

1 participant