---
title: "GEE script for systematic sampling - cannot upload in Collect"
url: "https://openforis.support/questions/2502/gee-script-for-systematic-sampling-cannot-upload-in-collect"
tags: ["collect", "collectearth"]
status: "answered"
score: 0
answer_count: 4
asked: "2019-09-20T18:42:22"
last_activity: "2019-09-23T20:46:51"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# GEE script for systematic sampling - cannot upload in Collect

Asked by flandsberg on 2019-09-20

Hi,

I am getting a strange error when uploading the output of the GEE script ( https://code.earthengine.google.com/b78f2bf12b92198201e8b224e94a6623 ) for a systematic grid. It seems the names are ok but the content of the columns is not accepted. 

![alt text][1]
 
Thanks for the help!!

Florence
[1]: http://www.openforis.org/support/upfiles/Error_with_GEE_systematic_output.jpg


## Answer (score 0, by Open Foris on 2019-09-23)

Link: https://openforis.support/questions/2502/gee-script-for-systematic-sampling-cannot-upload-in-collect/2506

Hi Florence,

Can you share the first 10 lines or so of the CSV with the plot locations??
It looks like you may have the headers line more than once ( it complies that you have header names in line 2 instead of actual possible values)

/Alfonso


## Answer (score 0, by flandsberg on 2019-09-23)

Link: https://openforis.support/questions/2502/gee-script-for-systematic-sampling-cannot-upload-in-collect/2507

Here is the csv: https://drive.google.com/open?id=1kG0SydIEVBKw2dZwJ2E95aslN5_QEh9W . I don't see the headers twice though...

Thanks Alfonso!

Florence


## Answer (score 0, by Open Foris on 2019-09-23)

Link: https://openforis.support/questions/2502/gee-script-for-systematic-sampling-cannot-upload-in-collect/2508

Dear Florence,

Are you sure the columns are right? In the CSV you have these headers :

    id, Ycoordinate, Xcoordinate, elevation, slope, aspect, soil, climate, hillshade, gez, system:index, adm0_name	, adm1_name, adm2_name

Are you sure the **hillshade** and **system:index** are necessary? 

Check the expected format of the plot file CSV expected by the CE survey by opening the Open Foris Collect Survey Designer, list of surveys, choose your survey and then go to advanced options "**Export Collect Earth grid template**"

![alt text][1]


  [1]: http://www.openforis.org/support/upfiles/chrome_2019-09-23_20-23-18.png


## Answer (score 0, by flandsberg on 2019-09-23)

Link: https://openforis.support/questions/2502/gee-script-for-systematic-sampling-cannot-upload-in-collect/2509

Hi Alfonso,

Sorry about this: it is a stupid mistake. When rearranging the fields, I forgot to delete an empty column. Once deleted, I can save and export. I checked the systematic grid in CE and it works beautifully.

So, I am good with creating systematic and random samples with provided boundaries. I am still having a hard time to use the GEE script with my own shapefile.

Cheers and thanks very much!

Florence
