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,
Error: Image.clipToBoundsAndScale, argument 'input': Invalid type. Expected type: Image. Actual type: ImageCollection. How to solve this kind of Error sir?
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!
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?
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
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.
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.
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.
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.
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?
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
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.
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!
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 ?
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.
Having this error message please help me out, Error: Image.clipToBoundsAndScale, argument 'input': Invalid type. Expected type: Image. Actual type: ImageCollection.
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 :) .
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).
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,
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
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
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.
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.
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?
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.
@@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?
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.
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.
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
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.
@@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.
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
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?
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
@@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?
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.
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
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.
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!
@@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?
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.
This made my day 🤗! Good luck with the internship!
@@ProgramSam Thank you sir.
3:11 I see you're a Python dev, joking aside, this is an incredibly useful, well-explained video, thank you very much Sir!
hah! You got me there 😉. You are very welcome! It makes me happy to hear that I can share the experience.
Sir, I am always looking forward to new videos, such as video about classification (RF). Previously released videos are very useful.
The videos are very useful and look forward to updating! Thanks
Thank you! feedback is much appreciated
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.
Hi Sam, How can I export images with 256x256 dimensions in GeoTIFF format, from various points of interest? can you hel me?
Hello Sam, thank you for uploading all these useful videos. They are more than helpful ^^ Sending my best wishes.
how to pass shapefile as argument in ee.featurecollection
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,
Error: Image.clipToBoundsAndScale, argument 'input': Invalid type. Expected type: Image. Actual type: ImageCollection. How to solve this kind of Error sir?
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!
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?
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"
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
});
hello,
How to export an image into GEE asset which has multiple bands or it is a stacked image?
please help me through this
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.
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.
@@ProgramSam can i contact you personally?
Best Wishes to you Sam! Great Work.
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.
Can we export an imageCollection to our assets?
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.
So good, my friend!
Hi..can you tell me how to export Parks / Recreation feature from Google Earth?
Hi, Bro can you please explain how to open the image TIF format in ENVI after download it from GEE?
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?
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
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.
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!
@@ProgramSam Thanks for reply. I have managed to do it using sampleRegion function.
Thanks for your Vidoes, they really help.
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!!
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 ?
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.
@@batuhankavlak what is "hough" on your code?
Having this error message please help me out,
Error: Image.clipToBoundsAndScale, argument 'input': Invalid type. Expected type: Image. Actual type: ImageCollection.
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 :) .
Tnx 4 d respond
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).
me too bro...i can export them but theres nothing in them
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,
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
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
Hey
I want to download a DEM of a specific area, kindly help me in this regard.
thats what i want as well.lol..ive been searching for a while now
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.
You can use Earth Engine Explorer. See example ua-cam.com/video/ba_F1cJpCAU/v-deo.html
thnk you for all the videos. regarding exporting to drive, does this mean we are constrained by the size of our personnal google drives?
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.
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?
same question here, could you solve it?
I get an error while exporting data Error: Invalid type. Expected: Image. Actual: ImageCollection.
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.
@@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?
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.
Can I export video of NDVI?
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.
@@ProgramSam Thanks
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
Superbly done
Having an error message "Cannot export array bands". can you please help
can we export the data to a 'SHP' format? :"")) thankyou
yes, you can export tables to SHP format, try Export.table.toDrive and add a "fileFormat: 'SHP'"
@ thank you so much. i will try..
Sir,how to export subset classified image of composite image ?
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.
@@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.
Layer
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
@@ProgramSam Thank you
how i export map legend after i make it
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?
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
After downloading my NDVI and opening it on QGIS it only brought out black pixel in a single band
Indeed, exporting only exports the data and not the visualization you gave it in the GEE. Have you tried styling the data in QGIS?
@@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?
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.
@@ProgramSam After reducing the scale to like 5, it still downloaded 1.34kb image
@@olamiposicalebfagunloye594 hmm could you share a link to your code?
Can someone please tell me the requirements to run Google Earth engine on both windows and Mac?
Hello, How can I export my result directly to my computer, I have my drive full of storage thank you
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.
sir give some step of this video..
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
Excelente, lees en idioma español?
Thank you!
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.
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!
@@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?