Тёмный

Google Earth Engine 7: Exporting Raster and Vector Data 

Program Sam
Подписаться 6 тыс.
Просмотров 52 тыс.
50% 1

The Google Earth Engine definitely is a powerful tool, but when you want to properly visualize or share the results you need to export the data. There are quite a few functions that take care of this and also the possible parameters might be overwhelming. In this video We will go over these different parameters to find out what the exporting possibilities are.
If you found this video useful, consider buying me a coffee at: www.buymeacoffee.com/programsam ☕
Find the EPSG codes of your projection: epsg.io/
Previous video: • Google Earth Engine 6:... (Importing Data)
Next video: • Google Earth Engine 8:... (Introduction to Image Classification)
GEE docs: developers.google.com/earth-e...

Опубликовано:

 

28 дек 2018

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 100   
@shenzhenyu8927
@shenzhenyu8927 5 лет назад
Sir, I am always looking forward to new videos, such as video about classification (RF). Previously released videos are very useful.
@meniz4659
@meniz4659 4 года назад
Hello Sam, thank you for uploading all these useful videos. They are more than helpful ^^ Sending my best wishes.
@shenzhenyu8927
@shenzhenyu8927 5 лет назад
The videos are very useful and look forward to updating! Thanks
@ProgramSam
@ProgramSam 5 лет назад
Thank you! feedback is much appreciated
@sukhpreetkaur3128
@sukhpreetkaur3128 3 года назад
Thanks, all the videos are very clearly explained. I need a GIS intern job and they wanted me to learn GEE, so here i got my internship. Thanks.
@ProgramSam
@ProgramSam 3 года назад
This made my day 🤗! Good luck with the internship!
@sukhpreetkaur3128
@sukhpreetkaur3128 3 года назад
@@ProgramSam Thank you sir.
@IAKhan-km4ph
@IAKhan-km4ph 2 года назад
Superbly done
@marcelocondori7761
@marcelocondori7761 2 года назад
So good, my friend!
@anudeepreddykatta
@anudeepreddykatta 4 года назад
Best Wishes to you Sam! Great Work.
@anudeepreddykatta
@anudeepreddykatta 3 года назад
I was wondering how do label satellite data in various tasks like predicting forest area, economic well-being etc. Can you please share insights on such scenarios.
@AadidevSooknananNXS
@AadidevSooknananNXS 3 года назад
3:11 I see you're a Python dev, joking aside, this is an incredibly useful, well-explained video, thank you very much Sir!
@ProgramSam
@ProgramSam 3 года назад
hah! You got me there 😉. You are very welcome! It makes me happy to hear that I can share the experience.
@lindaangulolopez357
@lindaangulolopez357 4 года назад
Thank you!
@itzahernandez8376
@itzahernandez8376 3 года назад
Nice! I've been stuck in my exporting for days now. I have a composite (.median) of an image collection of Sentinel 2 that I want to export. But GEE doesnt preserve projections on these composites, therefore I lose the crs and the crsTransform that is critical for manipulating later on GDAL. Thank you,
@tech_Universe2
@tech_Universe2 4 года назад
hello and thanks for sharing this information, i'm facing this error please help me to figure out this "Cannot read property 'toAsset' of undefined"
@jairojpintoh
@jairojpintoh 4 года назад
Hi Sam, How can I export images with 256x256 dimensions in GeoTIFF format, from various points of interest? can you hel me?
@DemetriosTsesmelis
@DemetriosTsesmelis 4 года назад
Hey Sam, I would like to thank you for these useful tutorials, I am an amateur in this sector. I found some useful data for my research but I cannot download these maps on my pc. Could you please help with this issue? Specifically, I have selected the data from "Landsat 7 Collection 1 Tier 1 Annual EVI Composite". Thank you in advance. Dimitris
@gerdmasselink9476
@gerdmasselink9476 5 лет назад
Fantastic videos - so well-paced and well-explained. I have been trying to create Sentinel2 video following your and other instructions available on web. I can generate Landsat video fine, but following same set of commands I get a video with blank squares in a black background: every image becomes a white area. Individual images mapped look fine. Any suggestions? Hitting my head against a brick wall!
@ProgramSam
@ProgramSam 5 лет назад
Thank you for the feedback! The only thing I can think of is that you didn't select the right color bands? So the export video function requires the image collection to only contain images with three bands (corresponding to RGB). Have you made sure you have selected the correct bands?
@mohd.sayeedulhasan8902
@mohd.sayeedulhasan8902 5 лет назад
Dear sir, After downloading it there is an issue in an opening file as it is showing THE ARCHIVE IS CORRUPT.... Please help me to resolve the problem.
@user-de7hd1op4b
@user-de7hd1op4b 8 месяцев назад
Hi, Bro can you please explain how to open the image TIF format in ENVI after download it from GEE?
@martinotaloralow1227
@martinotaloralow1227 4 года назад
Hi, i got this error : Error: Dimensions must be a positive multiple of the shard size (256). But i have maxPixels: 5000000000, shardSize: 10000, fileDimensions: 50000,
@omerreshi
@omerreshi 4 года назад
how to pass shapefile as argument in ee.featurecollection
@hindokush3728
@hindokush3728 3 года назад
sir, how i can export images based on date. in my drive i exported images of rainfall as chiprs. i got band 1 band 2 band 3 but insted of this band1 band 2 i want that images should exported by date for example May 01 2018.
@deepaktyagi6970
@deepaktyagi6970 5 лет назад
Sir, I find your videos very informative and helpful for a beginner like me. I have tried to perform classification and export the image but I am unable to get the proper output image. Though the image is being exported to my drive when I am trying to open it in ArcGIS the image contains no value. It is showing the image in just a single band image with no values in it (just a grey tile).
@muhlurijoshuashivambu6460
@muhlurijoshuashivambu6460 5 лет назад
me too bro...i can export them but theres nothing in them
@olivierhacking
@olivierhacking 4 года назад
Great video! But I am using a dataset that has a 3 arc-second resolution, so the pixel size in m depends on latitude. But I HAVE to choose a scale (m/px). How do I solve this?
@jonasmeier1402
@jonasmeier1402 3 года назад
same question here, could you solve it?
@Winter_0305
@Winter_0305 Год назад
Hi..can you tell me how to export Parks / Recreation feature from Google Earth?
@Roop283
@Roop283 4 года назад
Can someone please tell me the requirements to run Google Earth engine on both windows and Mac?
@maycheptoo9096
@maycheptoo9096 3 года назад
Hi Sam, thanks for the video. I drew a polygon to show the extent of the image I want to export which worked well. Is it possible to export this extent which is a geometry as an asset that I can easily import into another script?
@ProgramSam
@ProgramSam 3 года назад
Yes that is certainly possible. the Export.table should work with polygons as well. You can find more information about this function here: developers.google.com/earth-engine/guides/exporting#exporting-tables-and-vector-data
@williamfarren4734
@williamfarren4734 2 года назад
thnk you for all the videos. regarding exporting to drive, does this mean we are constrained by the size of our personnal google drives?
@ProgramSam
@ProgramSam 2 года назад
If you export it to your drive to download it, you are indeed limited by the volume of your Google drive. You can also save your result to Assets, to be used in the GEE again. I don't think that adds to your drive volume.
@shadidorosti6063
@shadidorosti6063 Год назад
Hello, your videos are really helpful. It is wonderful series. Just I have a question about exporting images in TFRecords format to the drive. I always run into "tile_dimensions must be specified for TfRecord export" and I don't know how should I define it. Would you please help me with this
@ProgramSam
@ProgramSam Год назад
I haven't used the TFRecords export myself that much, but could it be the 'PatchDimensions' that this documentation pages talks about? developers.google.com/earth-engine/guides/tfrecord#formatoptions
@richadutt665
@richadutt665 3 года назад
Having an error message "Cannot export array bands". can you please help
@qbasz
@qbasz 5 лет назад
Hi there, great video. Thank you. I am looking for advice if you could help. Is it possible to export a table with just values of band 2 and 3 for 1000 of points I have uploaded to GEE via Fusion table? Each point has its own ID and coordinates.
@ProgramSam
@ProgramSam 5 лет назад
So in other words, what you want to do is iterate over the points from your Fusion table, extract the image value of band 2 and 3, and store it as a feature so you can export it as a table? Maybe this stackExchange question is able to help you: gis.stackexchange.com/questions/265392/extracting-pixel-values-by-points-and-converting-to-table-in-google-earth-engine/265618 The solution is to define a function that you can map over your feature collection (features from fusion table). This function uses reduceRegion function which reduces the image based on a region (aka get the value at the point). Then it creates a new feature with the initial point information and the new reduceRegion information. These feature then form a new featureCollection you can export according to my video (at 13:35). I hope this can get you started. If you're stuck feel free to stop by again!
@qbasz
@qbasz 5 лет назад
@@ProgramSam Thanks for reply. I have managed to do it using sampleRegion function. Thanks for your Vidoes, they really help.
@hindokush3728
@hindokush3728 3 года назад
Error: Image.clipToBoundsAndScale, argument 'input': Invalid type. Expected type: Image. Actual type: ImageCollection. How to solve this kind of Error sir?
@sabahmotamedi3874
@sabahmotamedi3874 4 года назад
Hello thanks for your tutorial, I want to export to drive in single file but GEE split that to 3 tiles, My bounds is IRAN Country, It's too large but i don't want to split it.. Can you help me?
@ProgramSam
@ProgramSam 4 года назад
Have you tried changing the option 'fileDimensions'? This determines how large a file can get. by increasing this you might be able to store everything in one image
@damiananchorena6287
@damiananchorena6287 4 года назад
Do not export any video or image to my Google Drive. What can I be doing wrong? How is the export function configured to be stored in my Google Drive? Export.video.toDrive({ collection: finalCollection, description: 'yearly', dimensions: 1080, folder: 'GEE_video', framesPerSecond: 1, region: geometry });
@bestinnovationfromchina1347
@bestinnovationfromchina1347 4 года назад
Hello, first of all thank a lot for such as an amazing tutorials. I want to make false-color composites of band ratios in Google engine. How can it be done? I want to map (11/4, 4/2, 11/12, or ) to RGB using ASTER_1T and sentinel 2 images. I can't figure out the code for this.I will be grateful if you someone share the script with me or help to do it !!!! thanks at once
@batuhankavlak
@batuhankavlak 5 лет назад
Hi, I applied an edge.detection function and want to export it as a Shapefile to my computer. Should I define my geometry as a polygon to download all edges as .shp ?
@batuhankavlak
@batuhankavlak 5 лет назад
I used this: var huggies = hough.reduceToVectors({ reducer: ee.Reducer.mean(), geometry: rectangle, scale: 30 }); It worked but I guess the scale parameter needs to be adjusted.
@muhlurijoshuashivambu6460
@muhlurijoshuashivambu6460 5 лет назад
@@batuhankavlak what is "hough" on your code?
@adnanelabbaci5035
@adnanelabbaci5035 4 года назад
Hello, How can I export my result directly to my computer, I have my drive full of storage thank you
@ProgramSam
@ProgramSam 4 года назад
There is no option to download a file directly to your computer. The only way currently is to save it to google drive and download it from there.
4 года назад
hello, How to export an image into GEE asset which has multiple bands or it is a stacked image? please help me through this
@ProgramSam
@ProgramSam 4 года назад
The GeoTIFF file format stores all bands of the GEE Image. If you have appropriate software to visualize it (such as QGIS) You should be able to use it.
@ProgramSam
@ProgramSam 4 года назад
Is the variable that you try to export a single image or an image collection? Another thing that might be an issue: When you export an image you should also check if the bands are in the same datatype. The bands in Landsat images are usually floats, but there is one band, BQA (bitmask) that is a double. If this would be the issue, you could try to resolve it by a line such as "image = image.toFloat()" or something similar.
4 года назад
@@ProgramSam can i contact you personally?
@Hala_1238
@Hala_1238 Год назад
how i export map legend after i make it
@munawarhussain3523
@munawarhussain3523 5 лет назад
Hey I want to download a DEM of a specific area, kindly help me in this regard.
@muhlurijoshuashivambu6460
@muhlurijoshuashivambu6460 5 лет назад
thats what i want as well.lol..ive been searching for a while now
@ProgramSam
@ProgramSam 5 лет назад
Hi! Sorry for my late reply, I hope I can still be of help. Everything mentioned in the video should work for DEM's as well. Just find the DEM you need, merge it into one image if needed with either .mosaic, .min, .max, .mean... And follow the steps to export it to your Drive.
@1127x0506
@1127x0506 4 года назад
You can use Earth Engine Explorer. See example ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ba_F1cJpCAU.html
@asimshrestha1555
@asimshrestha1555 2 года назад
Can we export an imageCollection to our assets?
@ProgramSam
@ProgramSam 2 года назад
I don't think you can export imageCollections. Images you can, featureCollections as well, but not imageCollection. I think they don't allow this because image collections can have massive storage sizes.
@samsonhassanmshelia8582
@samsonhassanmshelia8582 3 года назад
Having this error message please help me out, Error: Image.clipToBoundsAndScale, argument 'input': Invalid type. Expected type: Image. Actual type: ImageCollection.
@ProgramSam
@ProgramSam 3 года назад
That's a common error but it also tells you what is wrong. So you want to clip an image, but you did not pass in one image, you passed in an ImageCollection. So what you need to do is convert this collection of images (even if the collection only contains one image) to an Image. This can be done in many ways, you can simply take the first one, with the ImageCollection.first() function, or you can take the median value of all images in the collection with the ImageCollection.median() function. And there are a few more functions you can explore :) .
@samsonhassanmshelia8582
@samsonhassanmshelia8582 3 года назад
Tnx 4 d respond
@ankitaanand9710
@ankitaanand9710 5 лет назад
I get an error while exporting data Error: Invalid type. Expected: Image. Actual: ImageCollection.
@ProgramSam
@ProgramSam 4 года назад
The error already tells you what might be wrong. So to export data you need an image, but the variable you seemed to export is an ImageCollection, a collection of images. Even if there is only one image in the collection, the variable is still an ImageCollection. To turn an ImageCollection variable into an Image variable you could take variablename.first(). This will take the first image from the collection. if your collection has multiple images you could also take variablename.mean(), or variablename.max() to group all images from the collection to one new image.
@laisbrasileiro9109
@laisbrasileiro9109 4 года назад
@@ProgramSam I have the same issue and I undestand that the export functions expect an image and not an image collection. But I want to export all images in my filtered collection as in to work with them as a raster brick in R for example. Do you know how?
@senjabiruuu
@senjabiruuu 3 года назад
can we export the data to a 'SHP' format? :"")) thankyou
3 года назад
yes, you can export tables to SHP format, try Export.table.toDrive and add a "fileFormat: 'SHP'"
@senjabiruuu
@senjabiruuu 3 года назад
@ thank you so much. i will try..
@eddisonjose
@eddisonjose 3 года назад
Excelente, lees en idioma español?
@haseenullah6590
@haseenullah6590 5 лет назад
Sir,how to export subset classified image of composite image ?
@ProgramSam
@ProgramSam 5 лет назад
Can you more explain what data you have, are they raster, vector... and what you would like to export? Is it a part of an image, multiple layers... I'm not entirely getting what you are trying to achieve.
@haseenullah6590
@haseenullah6590 5 лет назад
​@@ProgramSam Thank you sir for reply sir actually i am exporting raster image.My study area is consist of 3 tiles of Landsat images. i classified the Composite image, i want to export it to drive.
@haseenullah6590
@haseenullah6590 5 лет назад
Layer
@ProgramSam
@ProgramSam 5 лет назад
If you want to export the 3 tiles You will probably want to merge them first by using the .mosaic() function or the mean/max/min... functions. Then for both the merged result, and the classified image (if it is a raster) you can use the export.image.todrive as explained in the video
@haseenullah6590
@haseenullah6590 5 лет назад
@@ProgramSam Thank you
@gurrenlagann7557
@gurrenlagann7557 5 лет назад
Can I export video of NDVI?
@ProgramSam
@ProgramSam 5 лет назад
It should be possible! But since the export to video function requires 3 bands representing red green and blue, you might want to add an empty band to represent blue.
@gurrenlagann7557
@gurrenlagann7557 5 лет назад
@@ProgramSam Thanks
@gayatridave5830
@gayatridave5830 4 года назад
sir give some step of this video..
@olamiposicalebfagunloye594
@olamiposicalebfagunloye594 3 года назад
After downloading my NDVI and opening it on QGIS it only brought out black pixel in a single band
@ProgramSam
@ProgramSam 3 года назад
Indeed, exporting only exports the data and not the visualization you gave it in the GEE. Have you tried styling the data in QGIS?
@olamiposicalebfagunloye594
@olamiposicalebfagunloye594 3 года назад
@@ProgramSam NDVI is from -1 to 1. I have tried different methods in exporting but when open on QGIS it only exported a single pixel (0.4) for the whole spectrum, thereby making it black. What should I do?
@ProgramSam
@ProgramSam 3 года назад
Then maybe check your export settings. Especially the scale. Perhaps the scale is so large, that your entire image is exported as one pixel. And that pixel then has a value of 0.4.If this is the issue, reducing the scale (amount of meters/unit per pixel) can give you an image with a resolution larger than 1 pixel.
@olamiposicalebfagunloye594
@olamiposicalebfagunloye594 3 года назад
@@ProgramSam After reducing the scale to like 5, it still downloaded 1.34kb image
@ProgramSam
@ProgramSam 3 года назад
@@olamiposicalebfagunloye594 hmm could you share a link to your code?
@Krzeszny95
@Krzeszny95 4 года назад
Too complicated. I don't know what those imports are that were there in the beginning of the video, what kind of satellite data to import to have accuracy above 30 meters, what the first 5 lines of code are, what scale to set... I wanted to have a raster image (around 16 meters of accuracy) of a square area but I think there's no point in learning how to code just for that one image.
@ProgramSam
@ProgramSam 4 года назад
Those imports and what else you mention are explained in previous videos as this video only explains the export functionality. Watching the second video on filtering and displaying data (ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-4w6Mt6HTC2I.html) should help you a lot. You can check all importable datasets here (developers.google.com/earth-engine/datasets) to see if there is one that suits you, filter that for your location and then export it using this video. It should be able to follow the examples in the videos and simply use your region of interest and preferred datasets without having to understand every piece of code. Hope it helps!
@Krzeszny95
@Krzeszny95 4 года назад
@@ProgramSam Thanks for replying. I'll see if I can find what I need (if I'm accepted as a developer, whom I'm not, as I need access only for a hobby). However, I don't know how accurate those datasets are. Maybe they're very inaccurate, so 30 meters in all axes, which would render them useless for me. I'd like to import terrain data from Google Earth, which is extremely accurate. Do you know if it's possible?
Далее
Документы для озокомления😂
00:24
Exporting images from Google Earth Engine
16:32
Просмотров 48 тыс.
Clip by Country boundary in Google Earth Engine
7:56
Google Earth Engine 101 Part 1
1:17:06
Просмотров 107 тыс.
Документы для озокомления😂
00:24