MarcYin / SIAC_GEE

SIAC GEE version
57 stars 18 forks source link

gee_monkey script license #1

Closed kongdd closed 4 years ago

kongdd commented 4 years ago

Why copy my gee_monkey script and remove the author name?

https://github.com/kongdd/gee_monkey https://gis.stackexchange.com/questions/290771/batch-task-execution-in-google-earth-engine

/**
 * Copyright (c) 2017 Dongdong Kong. All rights reserved.
 * This work is licensed under the terms of the MIT license.  
 * For a copy, see <https://opensource.org/licenses/MIT>.
 *
 * Batch execute GEE Export task
 *
 * First of all, You need to generate export tasks. And run button was shown.
 *   
 * Then press F12 get into console, then paste those scripts in it, and press 
 * enter. All the task will be start automatically. 
 * (Firefox and Chrome are supported. Other Browsers I didn't test.)
 * 
 * @Author: 
 *  Dongdong Kong , 28 Aug' 2017 
 *      Sun Yat-sen University
 */
function runTaskList(){
    var tasklist = document.getElementsByClassName('task local type-EXPORT_IMAGE awaiting-user-config');
    for (var i = 0; i < tasklist.length; i++)
            tasklist[i].getElementsByClassName('run-button')[0].click();
}

function confirmAll() {
    var ok = document.getElementsByClassName('goog-buttonset-default goog-buttonset-action');
    for (var i = 0; i < ok.length; i++)
        ok[i].click();
}

runTaskList();
confirmAll();
MarcYin commented 4 years ago

I am really sorry for not properly cite your work on it and thank you very much for sharing it on stackexchange. The reason I have forgot to put your license is that I copied only the code into the web browser to test it, and after that I directly put that copied script into the README file and did not copy from the original source. This has been added to this commit e009c67ed0c3771f042b5b693ee9f0bd4e1c9da6 and 7562409835b770878e642f50560c399b93a13049. In addition, this has been added to the Gee_Batch as well.

Marc.

kongdd commented 4 years ago

Thank you!