Google Earth Engine 7: Exporting Raster and Vector Data

Поділитися
Вставка
  • Опубліковано 31 гру 2024

КОМЕНТАРІ • 101

  • @sukhpreetkaur3128
    @sukhpreetkaur3128 4 роки тому

    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  4 роки тому +1

      This made my day 🤗! Good luck with the internship!

    • @sukhpreetkaur3128
      @sukhpreetkaur3128 4 роки тому

      @@ProgramSam Thank you sir.

  • @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 роки тому +1

      hah! You got me there 😉. You are very welcome! It makes me happy to hear that I can share the experience.

  • @shenzhenyu8927
    @shenzhenyu8927 5 років тому +2

    Sir, I am always looking forward to new videos, such as video about classification (RF). Previously released videos are very useful.

  • @shenzhenyu8927
    @shenzhenyu8927 6 років тому +4

    The videos are very useful and look forward to updating! Thanks

    • @ProgramSam
      @ProgramSam  6 років тому

      Thank you! feedback is much appreciated

  • @mohd.sayeedulhasan8902
    @mohd.sayeedulhasan8902 5 років тому +2

    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.

  • @jairojpintoh
    @jairojpintoh 4 роки тому +2

    Hi Sam, How can I export images with 256x256 dimensions in GeoTIFF format, from various points of interest? can you hel me?

  • @meniz4659
    @meniz4659 4 роки тому

    Hello Sam, thank you for uploading all these useful videos. They are more than helpful ^^ Sending my best wishes.

  • @omerreshi
    @omerreshi 5 років тому +2

    how to pass shapefile as argument in ee.featurecollection

  • @martinotaloralow1227
    @martinotaloralow1227 4 роки тому +2

    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,

  • @hindokush3728
    @hindokush3728 4 роки тому +1

    Error: Image.clipToBoundsAndScale, argument 'input': Invalid type. Expected type: Image. Actual type: ImageCollection. How to solve this kind of Error sir?

  • @gerdmasselink9476
    @gerdmasselink9476 5 років тому +3

    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?

  • @tech_Universe2
    @tech_Universe2 5 років тому +1

    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"

  • @damiananchorena6287
    @damiananchorena6287 5 років тому +1

    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
    });

  •  5 років тому +1

    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  5 років тому

      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  5 років тому

      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.

    •  5 років тому

      @@ProgramSam can i contact you personally?

  • @anudeepreddykatta
    @anudeepreddykatta 4 роки тому

    Best Wishes to you Sam! Great Work.

    • @anudeepreddykatta
      @anudeepreddykatta 4 роки тому

      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.

  • @asimshrestha1555
    @asimshrestha1555 2 роки тому +1

    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.

  • @marcelocondori7761
    @marcelocondori7761 3 роки тому

    So good, my friend!

  • @Winter_0305
    @Winter_0305 Рік тому

    Hi..can you tell me how to export Parks / Recreation feature from Google Earth?

  • @ahmedduzce
    @ahmedduzce Рік тому

    Hi, Bro can you please explain how to open the image TIF format in ENVI after download it from GEE?

  • @sabahmotamedi3874
    @sabahmotamedi3874 5 років тому +2

    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  5 років тому

      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

  • @qbasz
    @qbasz 5 років тому +1

    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.

  • @EmiliaRivera-v2n
    @EmiliaRivera-v2n 2 місяці тому

    Gracias por el tutorial!!! Me ayudo mucho para finalmente exportar a drive ya que me salía el error de float64 y float32. Mil gracias!!

  • @batuhankavlak
    @batuhankavlak 5 років тому +1

    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 років тому +1

      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?

  • @samsonhassanmshelia8582
    @samsonhassanmshelia8582 4 роки тому +1

    Having this error message please help me out,
    Error: Image.clipToBoundsAndScale, argument 'input': Invalid type. Expected type: Image. Actual type: ImageCollection.

    • @ProgramSam
      @ProgramSam  4 роки тому +1

      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 4 роки тому

      Tnx 4 d respond

  • @deepaktyagi6970
    @deepaktyagi6970 5 років тому +1

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

  • @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,

  • @shadidorosti6063
    @shadidorosti6063 2 роки тому

    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  2 роки тому

      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

  • @munawarhussain3523
    @munawarhussain3523 5 років тому +1

    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 5 років тому

      You can use Earth Engine Explorer. See example ua-cam.com/video/ba_F1cJpCAU/v-deo.html

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

  • @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 4 роки тому

      same question here, could you solve it?

  • @ankitaanand9710
    @ankitaanand9710 5 років тому +1

    I get an error while exporting data Error: Invalid type. Expected: Image. Actual: ImageCollection.

    • @ProgramSam
      @ProgramSam  5 років тому

      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 5 років тому

      @@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?

  • @hindokush3728
    @hindokush3728 4 роки тому

    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.

  • @gurrenlagann7557
    @gurrenlagann7557 5 років тому +1

    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

  • @DemetriosTsesmelis
    @DemetriosTsesmelis 5 років тому +1

    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

  • @IAKhan-km4ph
    @IAKhan-km4ph 3 роки тому

    Superbly done

  • @richadutt665
    @richadutt665 4 роки тому

    Having an error message "Cannot export array bands". can you please help

  • @senjabiruuu
    @senjabiruuu 3 роки тому +1

    can we export the data to a 'SHP' format? :"")) thankyou

    •  3 роки тому +1

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

  • @haseenullah6590
    @haseenullah6590 5 років тому +1

    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

  • @Hala_1238
    @Hala_1238 Рік тому

    how i export map legend after i make it

  • @maycheptoo9096
    @maycheptoo9096 4 роки тому

    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  4 роки тому

      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

  • @olamiposicalebfagunloye594
    @olamiposicalebfagunloye594 3 роки тому +1

    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 роки тому +1

      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?

  • @Roop283
    @Roop283 4 роки тому

    Can someone please tell me the requirements to run Google Earth engine on both windows and Mac?

  • @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 роки тому +1

      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.

  • @gayatridave5830
    @gayatridave5830 5 років тому +1

    sir give some step of this video..

  • @bestinnovationfromchina1347
    @bestinnovationfromchina1347 5 років тому +1

    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

  • @eddisonjose
    @eddisonjose 4 роки тому

    Excelente, lees en idioma español?

  • @lindaangulolopez357
    @lindaangulolopez357 4 роки тому

    Thank you!

  • @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 роки тому +1

      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 (ua-cam.com/video/4w6Mt6HTC2I/v-deo.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?