Reading GeoTiff file using Xarray in Python

GeoTIFF is a public domain metadata standard which allows georeferencing information to be embedded within a TIFF file.

In this tutorial we will learn how we can read a GeoTiff file and read data stored in it using a python package xarray .

Opening a GeoTiff file

da = xr.open_rasterio(‘test.tif’)

Multi-Dimensional GeoTiff read as DataArray

Here Coordinates are various dimensions available in this tiff file , Attributes are various image attributes of the tiff image .

Get values from DataArray

da.values


Getting Values based on a particular Co-ordinate values

ds = da.isel(x=3368, y=312)

Single Value Extracted from GeoTiff

In the next post will discuss how we can create a raster file format using multiple tiff images to store historical data and store them in netcdf file format .

About Ujjwal Gupta 1 Article
Senior Data Engineer

305 Comments

  1. You’re so awesome! I don’t think I’ve read something like that before. So good to discover another person with a few original thoughts on this subject. Really.. thank you for starting this up. This web site is one thing that is needed on the web, someone with a bit of originality!|

  2. I’ve been surfing online more than three hours today, yet I never found any attention-grabbing article like yours. It’s lovely worth sufficient for me. In my opinion, if all site owners and bloggers made good content material as you probably did, the internet will be a lot more helpful than ever before.|

  3. When I originally left a comment I appear to have clicked on the -Notify me when new comments are added- checkbox and from now on every time a comment is added I get 4 emails with the exact same comment. Is there an easy method you are able to remove me from that service? Thanks a lot!|

  4. You are so interesting! I don’t suppose I’ve truly read through a single thing like this before. So nice to find someone with a few genuine thoughts on this subject. Seriously.. many thanks for starting this up. This web site is one thing that’s needed on the internet, someone with a bit of originality!|

  5. Howdy! I’m at work surfing around your blog from my new iphone! Just wanted to say I love reading through your blog and look forward to all your posts! Carry on the superb work!|

  6. Hello there! I could have sworn I’ve visited this site before but after going through many of the posts I realized it’s new to me. Regardless, I’m certainly delighted I came across it and I’ll be bookmarking it and checking back regularly!|

  7. Have you ever considered about including a little bit more than just your articles? I mean, what you say is important and all. Nevertheless just imagine if you added some great pictures or video clips to give your posts more, “pop”! Your content is excellent but with pics and video clips, this site could definitely be one of the greatest in its niche. Great blog!|

  8. Hello, Neat post. There is a problem together with your site in internet explorer, could test this? IE still is the market leader and a good part of people will pass over your magnificent writing due to this problem.|

  9. Have you ever thought about including a little bit more than just your articles? I mean, what you say is important and everything. However think of if you added some great pictures or videos to give your posts more, “pop”! Your content is excellent but with images and videos, this website could undeniably be one of the most beneficial in its field. Amazing blog!|

  10. Just wish to say your article is as surprising. The clearness to your put up is simply spectacular and that i could think you’re an expert on this subject. Fine with your permission let me to seize your feed to keep up to date with forthcoming post. Thanks one million and please continue the gratifying work.|

  11. This is the right website for anyone who would like to understand this topic. You understand a whole lot its almost hard to argue with you (not that I really would want to…HaHa). You definitely put a new spin on a topic that has been written about for years. Excellent stuff, just wonderful!|

  12. Pretty section of content. I just stumbled upon your weblog and in accession capital to assert that I acquire actually enjoyed account your blog posts. Anyway I will be subscribing to your augment and even I achievement you access consistently fast.|

  13. Hey there! I’ve been following your website for a long time now and finally got the bravery to go ahead and give you a shout out from Kingwood Texas! Just wanted to mention keep up the fantastic job!|

  14. certainly like your web-site but you need to test the spelling on quite a few of your posts. A number of them are rife with spelling issues and I in finding it very troublesome to tell the reality nevertheless I will definitely come again again.|

  15. I simply could not depart your site before suggesting that I actually enjoyed the usual information an individual supply on your guests? Is gonna be back incessantly to inspect new posts|

  16. I like the valuable info you provide in your articles. I’ll bookmark your weblog and check again here regularly. I’m quite certain I will learn plenty of new stuff right here! Best of luck for the next!|

  17. I was recommended this website by my cousin. I’m not sure whether this post is written by him as nobody else know such detailed about my trouble. You’re incredible! Thanks!|

  18. I seriously love your blog.. Excellent colors & theme. Did you make this amazing site yourself? Please reply back as I’m wanting to create my own site and would like to find out where you got this from or just what the theme is named. Cheers!|

  19. Hi, I think your site might be having browser compatibility issues. When I look at your blog site in Ie, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, fantastic blog!|

  20. Usually I don’t learn article on blogs, but I would like to say that this write-up very pressured me to try and do it! Your writing style has been surprised me. Thank you, quite great post.|

  21. My partner and I stumbled over here by a different page and thought I might as well check things out. I like what I see so i am just following you. Look forward to going over your web page repeatedly.|

  22. It is really a great and useful piece of information. I am glad that you just shared this helpful information with us. Please stay us informed like this. Thanks for sharing.|

  23. Just wish to say your article is as astonishing. The clarity for your submit is simply excellent and i can assume you’re knowledgeable in this subject. Fine together with your permission allow me to clutch your feed to stay updated with imminent post. Thank you one million and please carry on the enjoyable work.|

  24. I’m very pleased to find this web site. I need to to thank you for ones time for this particularly fantastic read!! I definitely loved every part of it and i also have you saved to fav to see new things in your blog.|

  25. After going over a handful of the blog posts on your web page, I seriously appreciate your way of blogging. I saved it to my bookmark site list and will be checking back soon. Take a look at my web site too and tell me how you feel.|

  26. Wonderful article! That is the type of info that should be shared across the net. Disgrace on Google for now not positioning this post higher! Come on over and visit my website . Thanks =)|

  27. Hello There. I discovered your weblog using msn. That is a very smartly written article. I’ll be sure to bookmark it and come back to read extra of your useful info. Thanks for the post. I’ll definitely comeback.|

  28. I’ve been surfing online more than three hours today, yet I
    never found any interesting article like yours.

    It’s pretty worth enough for me. Personally, if all site owners and bloggers made good content as you did, the
    web will be a lot more useful than ever before.

  29. Hi there! This is my 1st comment here so I just wanted to give a quick shout out and say I really enjoy reading your articles. Can you recommend any other blogs/websites/forums that cover the same topics? Thanks!|

  30. Very nice post. I simply stumbled upon your blog and wanted to say that I have truly loved browsing your weblog posts. After all I will be subscribing in your rss feed and I am hoping you write once more very soon!|

  31. When I initially commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get several emails with the same comment. Is there any way you can remove people from that service? Bless you!|

  32. It is the best time to make a few plans for the longer term and it is time
    to be happy. I’ve learn this put up and if I may
    I want to recommend you few fascinating issues or suggestions.
    Maybe you can write next articles regarding this article.
    I want to read even more things approximately it!

  33. Wonderful blog you have here but I was wondering if you knew of any user discussion forums that cover the same topics talked about here? I’d really love to be a part of online community where I can get feed-back from other experienced individuals that share the same interest. If you have any recommendations, please let me know. Thanks a lot!|

  34. I have been browsing online more than 3 hours lately,
    yet I by no means found any attention-grabbing article like yours.
    It is beautiful worth sufficient for me. In my view, if all webmasters and bloggers made good content material as you probably did, the web might be a
    lot more useful than ever before.

  35. Having read this I thought it was very enlightening. I appreciate you taking the time and effort to put this short article together. I once again find myself spending a lot of time both reading and commenting. But so what, it was still worth it!|

  36. Hey, I think your blog might be having browser compatibility issues. When I look at your blog in Chrome, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, very good blog!|

  37. Wonderful post however I was wanting to know if you could write a litte more on this subject? I’d be very thankful if you could elaborate a little bit further. Cheers!|

  38. Wow, superb blog structure! How lengthy have you been running a blog for? you made running a blog look easy. The whole glance of your web site is wonderful, as smartly as the content material!

  39. I’ve been surfing on-line more than three hours lately,
    but I never discovered any fascinating article like yours.
    It is lovely value enough for me. In my opinion,
    if all web owners and bloggers made good content as you did, the net will probably be much more useful than ever before.

  40. Hello there, I discovered your site via Google whilst looking for a comparable topic, your web site got here up, it appears good. I’ve bookmarked it in my google bookmarks.

  41. You’ve made some decent points there. I looked on the web for more information about the issue and found most individuals will go along with your views on this site.|

  42. Attractive section of content. I just stumbled upon your weblog and in accession capital to assert that I get in fact enjoyed account your blog posts. Any way I will be subscribing to your augment and even I achievement you access consistently quickly.|

  43. Hello there I am so grateful I found your site, I really found you by error, while I was looking on Yahoo for something else, Anyways I am here now and would just like to say kudos for a incredible post and a all round exciting blog
    (I also love the theme/design), I don’t have time to go through it all at the minute but
    I have bookmarked it and also added in your RSS feeds, so when I
    have time I will be back to read more, Please do
    keep up the excellent work.

  44. Thanks on your marvelous posting! I genuinely enjoyed reading it, you will be a great author. I will remember to bookmark your blog and definitely will come back sometime soon. I want to encourage you to continue your great posts, have a nice day!|

  45. I’m extremely impressed with your writing skills and also with the layout on your blog. Is this a paid theme or did you customize it yourself? Anyway keep up the nice quality writing, it’s rare to see a nice blog like this one these days.|

  46. Heya terrific website! Does running a blog similar to this take a large amount of work? I have very little understanding of programming however I was hoping to start my own blog soon. Anyways, should you have any suggestions or tips for new blog owners please share. I know this is off topic but I simply had to ask. Appreciate it!|

  47. Hello! Someone in my Myspace group shared this website with us so I came to give it a look. I’m definitely loving the information. I’m bookmarking and will be tweeting this to my followers! Excellent blog and great design and style.|

  48. Do you mind if I quote a few of your posts as long as I provide credit and sources back to your site? My website is in the very same area of interest as yours and my users would definitely benefit from a lot of the information you provide here. Please let me know if this alright with you. Regards!|

  49. I’m not sure exactly why but this site is loading incredibly slow for me. Is anyone else having this problem or is it a problem on my end? I’ll check back later and see if the problem still exists.|

  50. Howdy! I could have sworn I’ve visited this blog before but after browsing through a few of the posts I realized it’s new to me. Nonetheless, I’m certainly pleased I discovered it and I’ll be bookmarking it and checking back often!|

  51. Hello there! I could have sworn I’ve been to this site before but after reading through some of the post I realized it’s new to me. Nonetheless, I’m definitely glad I found it and I’ll be book-marking and checking back often!|

  52. I’ve been browsing online more than three hours today, yet I never found any interesting article like yours.
    It is pretty worth enough for me. Personally, if all site owners and bloggers made good content as you did, the internet will
    be a lot more useful than ever before.

  53. зеркала hydra ru представляет собой сайт, который разработан для магазинов подпольных покупок и услуг. Такого типа продукцию неприлично взять в обычном магазине, поскольку это неправомерно.

  54. Great blog you have here but I was wanting to know if you knew of any user discussion forums that cover the same topics talked about in this article? I’d really like to be a part of online community where I can get opinions from other knowledgeable individuals that share the same interest. If you have any recommendations, please let me know. Kudos!|

  55. Your style is so unique compared to other people I’ve read stuff from. Many thanks for posting when you’ve got the opportunity, Guess I will just book mark this blog.|

  56. Hi, i feel that i noticed you visited my site so i came to go back the choose?.I’m attempting to find issues to improve my web site!I suppose its adequate to use some of your ideas!!|

  57. What i don’t realize is in reality how you’re no longer actually much more smartly-favored than you may be now. You’re very intelligent. You know thus considerably in terms of this subject, made me in my opinion consider it from a lot of numerous angles. Its like women and men aren’t interested unless it’s something to accomplish with Girl gaga! Your own stuffs nice. Always care for it up!|

  58. My brother suggested I may like this website. He used to be totally right. This put up actually made my day. You can not imagine simply how much time I had spent for this information! Thanks!|

  59. Hello to every body, it’s my first pay a visit of this weblog; this weblog carries amazing and truly excellent material for readers.|

  60. Thanks for one’s marvelous posting! I quite enjoyed reading it, you happen to be a great author. I will make sure to bookmark your blog and will often come back later in life. I want to encourage you to definitely continue your great writing, have a nice weekend!|

  61. I must thank you for the efforts you’ve put in penning this website. I am hoping to see the same high-grade content by you in the future as well. In fact, your creative writing abilities has encouraged me to get my own site now ;)|

  62. I’m really impressed with your writing skills as well as with the layout on your weblog. Is this a paid theme or did you customize it yourself? Either way keep up the excellent quality writing, it’s rare to see a nice blog like this one nowadays.|

  63. I’ve been browsing online greater than three hours nowadays,
    yet I by no means found any fascinating article like yours.
    It’s lovely worth sufficient for me. In my view, if all website
    owners and bloggers made just right content as you probably did, the internet will probably be much more helpful than ever before.

  64. Hey there I am so grateful I found your webpage, I really found you by error, while I was researching on Bing for something else, Anyhow I am here now and would just like to say thanks for a tremendous post and a all round entertaining blog (I also love the theme/design), I don’t have time to read through it all at the minute but I have bookmarked it and also included your RSS feeds, so when I have time I will be back to read a lot more, Please do keep up the awesome jo.|

  65. My programmer is trying to convince me to move to .net from PHP.
    I have always disliked the idea because of the expenses.

    But he’s tryiong none the less. I’ve been using Movable-type on a
    number of websites for about a year and am nervous about switching to another
    platform. I have heard fantastic things about blogengine.net.
    Is there a way I can import all my wordpress content into it?

    Any help would be really appreciated!

  66. I have been surfing on-line greater than 3
    hours lately, but I by no means found any attention-grabbing article like yours.
    It’s pretty price enough for me. In my view, if all site owners and bloggers made good content as you
    probably did, the web will likely be much more helpful than ever before.

  67. What you posted was very logical. But, consider this, suppose you wrote a catchier post title? I am not saying your information is not good., however suppose you added something that grabbed people’s attention? I mean BLOG_TITLE is a little boring. You could glance at Yahoo’s home page and watch how they create article headlines to grab people to open the links. You might add a related video or a related picture or two to grab people excited about what you’ve written. In my opinion, it would make your blog a little livelier.|

  68. Hello! I know this is sort of off-topic however I needed to ask. Does running a well-established website such as yours require a massive amount work? I am completely new to writing a blog however I do write in my journal every day. I’d like to start a blog so I can easily share my experience and views online. Please let me know if you have any suggestions or tips for brand new aspiring bloggers. Thankyou!|

  69. Hey just wanted to give you a quick heads up and let you know a few of the images aren’t loading correctly. I’m not sure why but I think its a linking issue. I’ve tried it in two different web browsers and both show the same outcome.|

  70. Howdy this is kinda of off topic but I was wondering if blogs use WYSIWYG editors or if you have to manually code with HTML. I’m starting a blog soon but have no coding experience so I wanted to get advice from someone with experience. Any help would be greatly appreciated!|

  71. I am not sure where you’re getting your info, but great topic. I needs to spend some time learning much more or understanding more. Thanks for fantastic info I was looking for this information for my mission.|

  72. Heya exceptional blog! Does running a blog like this take a lot of work? I have absolutely no understanding of programming however I had been hoping to start my own blog soon. Anyhow, if you have any suggestions or techniques for new blog owners please share. I know this is off topic nevertheless I simply needed to ask. Thanks!|

  73. This is very interesting, You’re an overly skilled blogger. I have joined your feed and stay up for looking for more of your fantastic post. Additionally, I’ve shared your site in my social networks|

  74. I got this website from my buddy who informed me about this web page and at the moment this time I am browsing this site and reading very informative posts at this time.|

  75. Hey just wanted to give you a quick heads up. The words in your post seem to be running off the screen in Safari. I’m not sure if this is a format issue or something to do with internet browser compatibility but I figured I’d post to let you know. The design look great though! Hope you get the problem fixed soon. Many thanks|

  76. Thanks for one’s marvelous posting! I actually enjoyed reading it, you happen to be a great author. I will remember to bookmark your blog and will often come back at some point. I want to encourage you to continue your great posts, have a nice afternoon!|

  77. Having read this I thought it was very informative.
    I appreciate you finding the time and effort to put this short article together.

    I once again find myself spending a lot of time both reading
    and posting comments. But so what, it was still worth it! https://www.wisig.org/

  78. I’m amazed, I have to admit. Rarely do I encounter a blog that’s both equally educative and interesting, and let me tell you,
    you’ve hit the nail on the head. The problem is something which too few men and women are speaking intelligently about.
    I’m very happy that I found this during my hunt for something relating to this. http://grassfed.us/

  79. Several geezerhood later the insertion of tadalfil on the market, researchers toyed
    with the melodic theme of a chronic, low-Elvis preparation to further enhance spontaneousness.
    In 2008, Eli Lilly obtained FDA favourable reception for the once-every day
    organization of tadalafil. In October 2011, Cialis (Cialis) was likewise sanctioned to cover benignant prostatic hyperplasia (BPH) with or without ED.
    Avanafil (Stendra) was sanctioned in Apr 2012, offer an oncoming of litigate as
    other as 15 transactions afterward governing body and promote expanding discussion options for manpower with ED. http://lm360.us/

Leave a Reply

Your email address will not be published.


*