OHI-Science / bali

Independent Ocean Health Index Assessment for Bali
1 stars 1 forks source link

CS model code #1

Closed jules32 closed 7 years ago

jules32 commented 7 years ago

Question from @rftapilatu:

I have read all references for OHI toolbox and played with R, R-Studio to analyze data. I understood how git and github functions and played with it to make ggplot for CS data. Now I'm in the process to analyze CS data from Bali. Could you guide me where to find available R-script (whether in OHI global or somewhere) so then I can get it to start analyzing the data.

jules32 commented 7 years ago

Hi @rftapilatu,

The CS model is in conf/functions.r.

You'll be able to modify this as you need to, depending on whether this is the same model you'd like to use, and depending on the data you're including.

To run it, you'll need to have first run install_ohicore.r and then run the first lines in calculate_scores.r. Then, you can work within the CS function in functions.r.

If you haven't done so yet, read the toolbox-training chapter on basic calculations workflow, and follow along with the bali repository. It will show you the steps you'll need to do when you have your data prepared and saved in the /layers folder and registered in layers.csv.

Let me know if you have further questions and we can set up a Skype call.

rftapilatu commented 7 years ago

No wonder via wiki I did not get a response. Thanks Julia for creating an issue for us to communicate and we get a notification in our e-mail as well to check it out at github, cool. Great response, I will check the instruction and if I have question, will talk with you over skype.

rftapilatu commented 7 years ago

Hi Julia and Bali Team, Please have a look at Bali Folder on what we got here with CS score. Let me know whether I have gone through the correct procedure or not.

rftapilatu commented 7 years ago

The file name is scores_CSBaliRFT