Thanks for the video. How can I convert X and Y to Lat and Lon in a csv file?
@andressanchez17527 күн бұрын
Amazing video, and love your accent. Muchas gracias!
@jeewankbastola2272Ай бұрын
Please provide the files as well so it wont be confusing to practice the same
@jeewankbastola2272Ай бұрын
Hi. It's a great tutorial. Would you mind to share the files you have used in the tutorial please 🙏❤
@user-qy8yq5ff7yАй бұрын
Extremely helpful! Please keep updating this series!💕
@FocusStudySoundscapes2 ай бұрын
Data Set available?
@Kiwinov5 ай бұрын
This is amazing, thank you!
@gz66165 ай бұрын
Hi, I'm wondering is it possible to provide the 2nd argument to the Grid() function, not using a "points.shp" file name, but some other format? I don't have a points.shp file, but only the x- and y- and z- coordinates. How do I provide those to the Grid() function?
@user-cb6br7uv7f5 ай бұрын
From where will get dem.tif file?
@nikhilkumarkulkarni87985 ай бұрын
How to rotet tif file actioly im trying open tiff file using python but i can able to load but if compated to global mapper image is looking like mirrer image kindly help me to solove this issue
@bruinshockey1996 ай бұрын
Thank you for this tutorial! Very helpful.
@user-iz5kk4sy6m6 ай бұрын
Perfect explanation, thank you!
@LuckyLAK176 ай бұрын
Hi many thanks for the video. Very interesting allthough I am not yet quite there with my project. Is there a way how to combine hillshading with colormap to show the terrain relief in way that the shading conveys a 3D effect while looking at a 2D map?
@user-xw2xv5zd8t7 ай бұрын
Great tutorial!! I'm stuck on this, and I was wondering if you could help me out. I have a coarse mesh coarse.tif and a fine mesh fine.tif. The extent of coarse.tif is larger and completely includes fine.tif. Both have different resolutions, but I want the points (pixels) of each to be "nested", giving precedence to the arrangement of points in the fine mesh. This means that starting from the fine mesh, I want to construct a coarse mesh where there is one coarse mesh point for every 4 fine mesh points. In other words, the square formed by every 4 fine mesh points has the corresponding coarse mesh point in the center. Once this coarse mesh is created, the average of the involved fine mesh points is considered in the points where both meshes overlap, and interpolation of the coarse mesh points is used outside the overlap. Is it possible by using gdalwarp? Thanks
@seyedpeyman60927 ай бұрын
Useful and Clear ! Thank You for this Great Tutorial
@KingKzTuts20007 ай бұрын
is there a way to have gdal working with react project.
@metalthower8 ай бұрын
Fantastic!!!
@boazmwubahimana71299 ай бұрын
Can you please provide solution for gdal cropping RGB images into black and white patches
@kerimmirzeyev434010 ай бұрын
Hello, thank you for this tutorial it helped me a lot of, I just have a 1 question, I modfied your code instead of 1 data, I'm trying to divide folder of sentinel 2 images to 32x32 tiles, even though I don't get error and when printing it does show the coordinates of newly divided tiles, but output folder remains empty I think warp is not doing what it supposed to do and I don't know what else I could to do get it working, can you tell me what I'm doing wrong? This is my code import os from osgeo import gdal # Specify the input folder containing 256x256 images input_folder = r"E:\ytu\PHD\data eslihan_sentinel_testing\kodlar\SmartpolAIProcess\images" # Output folder for 32x32 tiles output_folder = r"E:\ytu\PHD\data eslihan_sentinel_testing\imagesTiles" image_files = [file for file in os.listdir(input_folder) if file.endswith('.tif')] # Loop through each image file for image_file in image_files: sen = gdal.Open(os.path.join(input_folder, image_file)) # Get the geotransform gt = sen.GetGeoTransform() # Get the dimensions of the image xlen = gt[1] * sen.RasterXSize ylen = gt[1] * sen.RasterYSize # Number of tiles in x and y direction div = 8 # Size of a single tile xsize = xlen // div ysize = ylen // div # Create lists of x and y coordinates xsteps = [gt[0] + xsize * i for i in range(div + 1)] ysteps = [gt[3] - ysize * i for i in range(div + 1)] # Loop over min and max x and y coordinates for i in range(div): for j in range(div): xmin = xsteps[i] xmax = xsteps[i + 1] ymax = ysteps[j] ymin = ysteps[j + 1] print("xmin: "+str(xmin)) print("xmax: "+str(xmax)) print("ymin: "+str(ymin)) print("ymax: "+str(ymax)) print(" ") # Use gdal warp to create 32x32 tiles gdal.Warp( os.path.join(output_folder, f"{os.path.splitext(image_file)[0]}_{i}_{j}.tif"), sen, outputBounds=(xmin, ymin, xmax, ymax), dstNodata=-9999, )
@johnegyir970410 ай бұрын
Clearly explained! Thank you very much. This is really helpful.
@user-ng4qt7kn7j10 ай бұрын
Graciaaaaas <3
@surajpatil676611 ай бұрын
Haw to install gedal in Jupiter notebook
@antonstsezhkin6578 Жыл бұрын
Oh! one more thing: you operate with x and y - which one should be latitude and which one the longitude?
@ecoro_7 ай бұрын
x is lon and y is lat, like in a map ... right?
@antonstsezhkin65787 ай бұрын
@@ecoro_ thanks!
@antonstsezhkin6578 Жыл бұрын
Bless you for covering different use cases! And thanks than mine is included.
@saremish Жыл бұрын
Very useful and informative!
@navneetsrivastava688 Жыл бұрын
Please complete the gdal python series. Also it would be very much helpful if you could create a video on how to convert lat long ( spatial coordinates) to pixel coordinates (x,y) and vice versa, with introduction to different projection and crs. Thank you for the video though
@AfagRizayeva Жыл бұрын
Thank you for your videos! It's the third video that has been really helpful for me - appreciate it
@hrishikeshkatkar7641 Жыл бұрын
my python version is >3.8 and its returning error to import gdal from osgeo what should I do
@livmaritharstad1629 Жыл бұрын
Great video! I've merged a couple of datasets with no issue, but now I get this error: ERROR 1: ZIPDecode:Decoding error at scanline 0 ERROR 1: TIFFReadEncodedTile() failed. ERROR 1: \\Path to this file...\DTM_1km_6159_636.tif, band 1: IReadBlock failed at X offset 0, Y offset 0: TIFFReadEncodedTile() failed. the data is from Denmark and I've got different offset values like x=6, 1 or 8 and y=5 or 6 I've been stuck on this problem for a while and tried all the solutions I've found on the internet, have you encountered this problem before?
@rohitraman6257 Жыл бұрын
I am facing difficulty while installing gdal. The error shows 'Environment Not Writable' Please help me.
@guanglou2065 Жыл бұрын
Thanks for the tutorial, very awesome! Just wondering where to download your data for reproducing your demo? Thanks. 🙂
@MsTooteh Жыл бұрын
These tutorials are so incredibly helpful. Thank you!!!
@JavierParra-bz2rs Жыл бұрын
Muchas gracias, clarísimo el video, entendí todo!
@ehsankiani542 Жыл бұрын
thanks
@sandeepbhatti3124 Жыл бұрын
Thank you so much! I was looking to convert CSV to Tiff and none of other posts on internet seemed to work. Your tutorial was perfect solution to my use case. Thanks again!
@sahilkamble8750 Жыл бұрын
I want to generate the raster data, so what should be the method i should follow should be it on python or any other ? Please suggest me some
Жыл бұрын
I tested the code and I found two issues: 1) using gdal warp i got a Warning: "Warning 1: for band 1, destination nodata value has been clamped to 0, the original value being out of range." It seems related with the nodata values. At the end the resulting tiles are not workables. 2) the resolution res is not valid for y-axis, therefore the tiles generated are incomplete. I defined resx and resy (one per axis), at the result was ok. But in general, your code is the best example that I found surfing the web. Thanks a lot.
@amillatali2589 Жыл бұрын
thank you so much
@lorhannascimento200 Жыл бұрын
u're a lifesaver, thank you so much!
@louis-philip Жыл бұрын
Thanks for all this, it helps a lot!
@rogersc4195 Жыл бұрын
Come back pls!!!
@wangbadan1249 Жыл бұрын
Nice Tutor and Tutorial ! where can I get the sample data used in the tutorial? Thanks!
@guilhermetorres928 Жыл бұрын
first of all congratulations for the content!!! would you know how to inform how the code would be to convert a raster (orthomosaic) tiff into ecw???
@asdfgh7486 Жыл бұрын
how can we do aspect analysis and slope analysis?
@sophiez7952 Жыл бұрын
why when I run your code, it appears such errors : 'NoneType' object has no attribute 'GetRasterBand', could you explain it for me a while ! thanks!
@philtoa334 Жыл бұрын
Nice.
@PlayinGuitar23 Жыл бұрын
Is there any way to get access to the files you use here? I want to code along but don't have a tif that works like this one. Thanks!
@samnankadri525 Жыл бұрын
Hey, Nice Video. Can I install GDAL library for MATLAB
@mahsabozorgi Жыл бұрын
Thank you for the video, How can I conver GeoTIFF to Binary?
@pankajkumar-jo5sp Жыл бұрын
can u help how can get image data or reflectance by using polygon shape file