Skip to content

Instantly share code, notes, and snippets.

View ianakoto's full-sized avatar
🏠
Working from home

Ian Cecil Mawuli Akoto ianakoto

🏠
Working from home
View GitHub Profile
@ianakoto
ianakoto / CustomProgressBar.java
Created August 25, 2018 23:33 — forked from himanshuvirmani/CustomProgressBar.java
Creating a full screen progress bar component for Android
public final class CustomProgressBar {
private Dialog dialog;
public Dialog show(Context context) {
return show(context, null);
}
public Dialog show(Context context, CharSequence title) {
return show(context, title, false);
@ianakoto
ianakoto / instructions.md
Created February 10, 2018 02:43 — forked from robinkraft/instructions.md
Burn scar algorithm for Google Earth Engine, derived from Elvidge and Baugh (2014).

Set up for update

  1. Go to fires download page - https://firms.modaps.eosdis.nasa.gov/download/
  2. Zoom to Sumatra. It doesn't have to be perfect. We do some screening in EE to make sure there are no fires in Malaysia used.
  3. Submit the download request (2013-03-30 to present) - csv is easiest - then wait for it to complete (usually < 30 minutes)
  4. Upload the CSV file to Fusion Tables. Go here, then just click "new table" under the File menu and follow the instructions.
  5. Get the docid from the url. For example, for docid=1SzJl73nj5IPVEOGqhGc8uv5Vkwb504uqK_YTnVGh just grab 1SzJl73nj5IPVEOGqhGc8uv5Vkwb504uqK_YTnVGh
  6. Update dates in this script when you run it on EE - the second date in the POST variable may need to be extended.
  7. Update the FIRES variable to equal to "ft:". You'll see how it is in the code.

Run + export