Google Earth Engine 7: Exporting Raster and Vector Data

  Рет қаралды 52,229

Program Sam

Program Sam

5 жыл бұрын

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...

Пікірлер: 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
@marcelocondori7761
@marcelocondori7761 2 жыл бұрын
So good, my friend!
@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.
@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.
@IAKhan-km4ph
@IAKhan-km4ph 2 жыл бұрын
Superbly done
@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.
@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"
@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,
@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?
@omerreshi
@omerreshi 4 жыл бұрын
how to pass shapefile as argument in ee.featurecollection
@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,
@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.
@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
@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.
@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?
@Roop283
@Roop283 4 жыл бұрын
Can someone please tell me the requirements to run Google Earth engine on both windows and Mac?
@user-de7hd1op4b
@user-de7hd1op4b 7 ай бұрын
Hi, Bro can you please explain how to open the image TIF format in ENVI after download it from GEE?
@hindokush3728
@hindokush3728 3 жыл бұрын
Error: Image.clipToBoundsAndScale, argument 'input': Invalid type. Expected type: Image. Actual type: ImageCollection. How to solve this kind of Error sir?
@richadutt665
@richadutt665 3 жыл бұрын
Having an error message "Cannot export array bands". can you please help
@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?
@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 });
@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.
@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
@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
@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
@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?
@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
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?
@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.
@Hala_1238
@Hala_1238 Жыл бұрын
how i export map legend after i make it
@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.
@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 kzbin.info/www/bejne/mJLCd2SZf9V2d7c
@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?
@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
@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.
@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..
@gayatridave5830
@gayatridave5830 4 жыл бұрын
sir give some step of this video..
@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
@eddisonjose
@eddisonjose 3 жыл бұрын
Excelente, lees en idioma español?
@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 (kzbin.info/www/bejne/aqiZfqdsfbl2aKs) 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?
Google Earth Engine 8: Introduction to Image Classification
13:16
Exporting images from Google Earth Engine
16:32
Javier Arce-Nazario
Рет қаралды 48 М.
Пранк пошел не по плану…🥲
00:59
Саша Квашеная
Рет қаралды 6 МЛН
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
New model rc bird unboxing and testing
00:10
Ruhul Shorts
Рет қаралды 29 МЛН
How to Export Waterbodies, Lake, or any shapefile from Google Earth Engine? Export shapefile in GEE
10:43
Study Hacks-Institute of GIS & Remote Sensing
Рет қаралды 13 М.
Google Earth Advanced Tools Tutorial
11:32
Technology for Teachers and Students
Рет қаралды 235 М.
Importing GIS shapefiles into Google Earth Engine
5:32
Terra Spatial
Рет қаралды 32 М.
Exploring MODIS time-series NDVI with Google Earth Engine
9:48
GEARS - Geospatial Ecology and Remote Sensing
Рет қаралды 31 М.
Supervised classification in Google Earth Engine
24:52
GEARS - Geospatial Ecology and Remote Sensing
Рет қаралды 53 М.
Google Earth Engine Tutorial Part 1 - Displaying Data
12:51
Maptical
Рет қаралды 40 М.
Trick to download Google earth image and georeference it
8:14
Made 4 Geek
Рет қаралды 103 М.
Clip by Country boundary in Google Earth Engine
7:56
Ehsan Jalilvand
Рет қаралды 7 М.