I have an output that writes to a CSV file. My Questions are:
Thanks
Dan
I'm not using Python to create the CSV - It's a GEE output "Write to CSV file". I need to know if it's possible to configure this output to NOT have a date as part of the name GEE gives it when it creates it upon starting this output. I also need to know how to overwrite it each time the GEE service is triggered...
I don't know what you are using to make the csv file, but if it is csv.writer, then you can omit the fieldnames. There are literally too many examples on the web about csv production with/and/without fieldnames for example
python - Pythonically add header to a csv file - Stack Overflow
13.1. csv — CSV File Reading and Writing — Python 2.7.10 documentation
I tend to use NumPy for that sort of thing...but you will stick with what you have and omit the first record. If you say it is writing a separate field for the field name and then the values in a separate column...that is a program logic problem and shouldn't be occuring
Attached is a screenshot of my GEE Service. My input detects a change of "status" on a Sewer overflow, if that status is "Verified" it strips out a bunch of unneeded data and pushes the remainder to a CSV file.
I have a python script that uses that CSV file to suck in the info and do some processing. I need that CSV file to always be named the same thing, and to only contain the value not the fieldname & value (in seperated fields) as it does now.
Andrew, what are using to write the *.csv? Also, if something can't be deleted, it is probably some application is also using it (ie ArcMap, Windows Explorer etc)
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.