How to Plot netCDF data onto a Map using Python (with Matplotlib Basemap toolkit) (Part 4)

  Рет қаралды 49,650

GeoDelta Labs

GeoDelta Labs

Күн бұрын

Пікірлер: 119
@appliedstatistics2043
@appliedstatistics2043 4 жыл бұрын
Thank you, I recently got a job that's related to climate plotting, you literally save my life!!
@geodeltalabs
@geodeltalabs 4 жыл бұрын
Glad it helped!
@ShahzaibKhan-tg1ps
@ShahzaibKhan-tg1ps 4 жыл бұрын
Excellent Tutorial. Thank you!! It is something which I was looking for many days. Thank you again.
@geodeltalabs
@geodeltalabs 4 жыл бұрын
You are welcome! :)
@gambu4810
@gambu4810 2 жыл бұрын
You're a good teacher
@mohamedsmouni3051
@mohamedsmouni3051 9 ай бұрын
God bless you for this amzing high quality content.
@gabrielalima159
@gabrielalima159 3 жыл бұрын
Thank you! You saved my academic life!
@geodeltalabs
@geodeltalabs 3 жыл бұрын
Great to hear!
@MuhammadRashid-nf6pn
@MuhammadRashid-nf6pn Ай бұрын
Great teacher ❤❤
@nayantalmale9270
@nayantalmale9270 4 жыл бұрын
Thank you very much for explaining so simply and nicely....I have just started to learn Python and your videos are very helpful.
@oshopriya788
@oshopriya788 3 жыл бұрын
Hey I am unable to do the pip install for basemap package, it gives me the "not supported wheel" error
@sandeepbhatti3124
@sandeepbhatti3124 Жыл бұрын
The best explanation! Thanks much.
@miskaknapek
@miskaknapek 3 жыл бұрын
Thank you very much for making this tutorial video. I appreciate it a great deal. Greetings from Berlin!
@kassahunaweke3058
@kassahunaweke3058 2 жыл бұрын
Ohhh thanks a lot Sir, tired of it before. Basemap successfully installed in my device.
@geodeltalabs
@geodeltalabs 2 жыл бұрын
Glad to hear that 😊
@YujiaZhao-nu6es
@YujiaZhao-nu6es Жыл бұрын
EXCELLENT tutorials! THANKS!!!
@biancameotti3663
@biancameotti3663 3 жыл бұрын
Thank you for this tutorial. You teach so well.
@wasifeelahi1341
@wasifeelahi1341 4 жыл бұрын
Big thanks, you saved my day
@dainiusfr
@dainiusfr 4 жыл бұрын
Great job. Looking forward for move videos with Python interaction with maps, ArcGIS :)
@dec13666
@dec13666 4 жыл бұрын
Crystal clear! Nice tutorial, and thanks!
@briskminded9020
@briskminded9020 4 жыл бұрын
Your videos are really helpful Thanks
@Mauaka
@Mauaka 2 жыл бұрын
Thanks for this. I will have to look for a conversion to Cartopy instead of BaseMap and follow most of your instructions.
@geodeltalabs
@geodeltalabs 2 жыл бұрын
👍
@DianaHydra
@DianaHydra 3 жыл бұрын
Hi, new to python and following your tutorial. this line - c_scheme = mp.pcolor(x,y,np.squeeze(tp[0,:,:]), cmap='jet') is giving the following and the map is blank c_scheme = mp.pcolor(x,y,np.squeeze(tp[0,:,:]), cmap='jet') :1: MatplotlibDeprecationWarning: shading='flat' when X and Y have the same dimensions as C is deprecated since 3.3. Either specify the corners of the quadrilaterals with X and Y, or pass shading='auto', 'nearest' or 'gouraud', or set rcParams['pcolor.shading']. This will become an error two minor releases later. c_scheme = mp.pcolor(x,y,np.squeeze(tp[0,:,:]), cmap='jet') Any help with this?
@local9692
@local9692 4 жыл бұрын
Why am i getting this error? Dimensions of C (240, 242) are incompatible with X (240) and/or Y (110); see help(pcolor)
@TriAtmaja1000
@TriAtmaja1000 3 жыл бұрын
It works properly and perfectly for me. Thanks ~~
@geodeltalabs
@geodeltalabs 3 жыл бұрын
Great!
@hamedhafizi5448
@hamedhafizi5448 4 жыл бұрын
Reading data from multiple files, and for multiple coordinates is explained in the next tutorial of the series (Part 4), still waiting for the answer ???
@geodeltalabs
@geodeltalabs 4 жыл бұрын
Hi, it was supposed to be Part 6. Sorry about the mix up. Tutorial covering this will be out by Wednesday :)
@hamedhafizi5448
@hamedhafizi5448 4 жыл бұрын
@@geodeltalabs :) thank you, lets wait for it. hope it will come as soon as possible.
@geodeltalabs
@geodeltalabs 4 жыл бұрын
Hi, kindly send your specific query on the above topic to deltaengineeringlabs@gmail.com. we will help you out with your problem because the video release on this topic will be delayed by a few more days.
@hamedhafizi5448
@hamedhafizi5448 4 жыл бұрын
@@geodeltalabs I sent the problem and I am waiting for your help. thanks
@tobesmarter9142
@tobesmarter9142 3 жыл бұрын
Well done, bro, thanks for your sharing
@MuhammadHussain-wr7hv
@MuhammadHussain-wr7hv 4 жыл бұрын
It will be very helpful if you provide the coding text separately in a file. As downloading speed is very low in some regions. Thanks
@RAKESHGHOSH-zl6gn
@RAKESHGHOSH-zl6gn 3 жыл бұрын
wow...! your voice is so attracting....
@rizwankazi4555
@rizwankazi4555 3 жыл бұрын
Very relevant and brilliant explanation. "Kite" recommendation was a life saver. Wondering if I could reach out for some advice .Thank you so much.
@blueradium4260
@blueradium4260 Жыл бұрын
Excellent, thank you :)
@engr.abdullahazzamsafi4515
@engr.abdullahazzamsafi4515 4 жыл бұрын
You are awesome. thank you so much.
@shailendrarana4073
@shailendrarana4073 2 жыл бұрын
This tutorials seems great for a beginner like me. Do you have any ideas regarding merging multiple netCDF files into one for a given time scale (daily, monthly, yearly, etc.) using Python ? Thanks.
@ignaciogarciamartin5109
@ignaciogarciamartin5109 3 жыл бұрын
Sorry, but when I try to download basemap in your link it downloads a Python Wheel format and not a .whl document. What can I do?
@khyateeatolia
@khyateeatolia 7 ай бұрын
Hi, what if your data in netCDF doesn't have a tave? how do we plot it then
@chamilaniroshinie4750
@chamilaniroshinie4750 4 жыл бұрын
Thanks a lot... I learned a lot
@jhosenysantos5736
@jhosenysantos5736 4 жыл бұрын
Really nice!!! It helps me a lot!!!!
@researchgoals9766
@researchgoals9766 2 жыл бұрын
When I am running the line for c_scheme map is being displayed but when I am running the last line for colorbar then I am getting blank box. Kindly help
@bishwaskumar2453
@bishwaskumar2453 2 жыл бұрын
I am not able to install this in the geo_env. Please let me know if there is any way.
@lonewolf_0948
@lonewolf_0948 4 жыл бұрын
Thank very much 😍. I never thought I'll find this tutorial in KZbin. Thanks again👍. I'm a research fellow in Oceanography-climate change field and using FERRET and R for analysis and visualisation. Just started to pickup python. Can you make tutorials on publish-quality spatial plots in python including multi-viewport , different colour palettes, colourbars etc?
@jos6708
@jos6708 3 жыл бұрын
Hey very interested and useful one. What is the upper and lower latitude & longitude for worldwide.
@janos5555
@janos5555 2 жыл бұрын
9:43 I get the error "module 'numpy.core' has no attribute 'arrayprint'" but I can execute it without the "[:]". Any ideas?
@janos5555
@janos5555 2 жыл бұрын
Ok, never mind restarting the kernel fixed it somehow
@YogeshKumar-pt1ii
@YogeshKumar-pt1ii Жыл бұрын
sir , how we plot netcdf file using shapefile with python . when we have a sape file
@tonyv1524
@tonyv1524 4 жыл бұрын
Hello, I am wondering where you got the data files. I want to do different places, how can I do it, instead of replacing the longitude and latitude values? Can I get a link to the place where you got your data from? Thanks
@紀旻宏-f3x
@紀旻宏-f3x 3 жыл бұрын
Hello, I would like to ask how to draw cumulative variables instead of an average of one per day in the film?
@bibek_thapa
@bibek_thapa 4 жыл бұрын
What is the best way to plot geospatial data using python in your opinion? Geopandas or using basemap toolkit like you did it in the video?
@geodeltalabs
@geodeltalabs 4 жыл бұрын
Depends on your purpose. My preference is direct plotting using GeoPandas but that's not to say that there arent any instances where I would use the basemap toolkit too.
@adibkhondokerratul975
@adibkhondokerratul975 4 жыл бұрын
Hi, basemap installed successfully but stuck in a place where it shows that RuntimeError: NetCDF: HDF error . how to solve this ?
@frankservant5754
@frankservant5754 3 жыл бұрын
Hello there I am working with NECTDF data the problem I have is my Lat and Lon are all 3 Dimensional, SO when I try to do a map it gives me an error, how can I resolve this?
@abzanmaster
@abzanmaster 2 жыл бұрын
If you have dust data, and you wanna see if there is dust in a country a specific day, how can you see that without making a map?
@afifatalukder5427
@afifatalukder5427 4 ай бұрын
Great! Can you please make a tutorial how to plot multiple maps under one legenda?
@geodeltalabs
@geodeltalabs 4 ай бұрын
Yes, i might be able to do one soon
@Anurag-sq4yc
@Anurag-sq4yc 4 жыл бұрын
nice video can do a tutorial on regridding so that data is converted to 1 degree resolution
@tapasranjandas7228
@tapasranjandas7228 4 жыл бұрын
How to see the complete fig... In the plot section I can see only a small rectangular portion after executing the code... What should I do now to view the complete figure as your... Thanks and regards.
@VictorEdemSetordjie
@VictorEdemSetordjie 4 жыл бұрын
I have a similar problem. Found a solution?
@BrijeshKumar-dm9bw
@BrijeshKumar-dm9bw 4 жыл бұрын
Dear sir, Kindly make a video to extract data from multiple points shapefile. This will help to generate data for a particular watershed against known location points.
@olorunfemiomonigbehin389
@olorunfemiomonigbehin389 4 жыл бұрын
Hello, great job you are doing. So, I got this error after running the script just like you showed us: ValueError: too many values to unpack (expected 2) Again, how can I modify the script so that I can plot the mean of the t-avg from a file containing data of like 20 years?
@vikasbharati675
@vikasbharati675 2 жыл бұрын
I got the same error ???! How to do it ?
@hans6458
@hans6458 3 жыл бұрын
Great video! Do you know how to create a colored map from a formula that calculates a value from latitude and longitude?
@cva456123
@cva456123 4 жыл бұрын
any experience with nco in windows ?
@piyaphatc5794
@piyaphatc5794 4 жыл бұрын
I can't install the basemap packages
@nishankshah3555
@nishankshah3555 3 жыл бұрын
Sir, i downloaded min temp data of india from 1960 to 2019 of every day and every hour in one netcdf file. Now i want to extract min temp from 24 hours with its date and store it in variable. How to do it..please help
@thasweerah
@thasweerah 4 жыл бұрын
how to used a different shapefile for example shapefile of catchment area
@damilarealuko
@damilarealuko 4 жыл бұрын
Hello, what if I want to plot two variables on the same map. For instance, both temperature and pressure on one figure
@Rainstorm121
@Rainstorm121 4 жыл бұрын
Thanks Sir, very useful. Would you please produce a video on how to plot trajectories e.g. tropical cyclone track on a map using python?
@haritham1060
@haritham1060 10 ай бұрын
can u please do one video for java??
@toufik_8840
@toufik_8840 4 жыл бұрын
when i run the code i have " No module named 'netCDF4" at the beginning , what should i do? can someone help please
@cyrahinocente4572
@cyrahinocente4572 2 жыл бұрын
Hello! Have you solved the problem you encountered?
@jaywilliams2852
@jaywilliams2852 2 жыл бұрын
Great video! I am using macOS and am having trouble installing the Basemap add-on. There doesn’t seem to be any Mac files to download on the website you link, and I can’t find any online either. Is there another way for me to install? Thanks
@geodeltalabs
@geodeltalabs 2 жыл бұрын
Hi, I personally haven't used macOS so I wouldn't be able to give you an immediate solution for this. However, have you tired installing it via Anaconda Distribution?
@jaywilliams2852
@jaywilliams2852 2 жыл бұрын
@@geodeltalabs Great, that worked! Thanks for your help
@jaywilliams2852
@jaywilliams2852 2 жыл бұрын
@@geodeltalabs I followed through the video and it makes perfect sense! I'm quite new to python so this really helped me learn. I'm now trying to change the map so it produces an annual average, rather than choosing only one day, is there any way I'm able to change the function to allow me to do this? Many thanks
@roshankumarmishra5270
@roshankumarmishra5270 4 жыл бұрын
How can we add magnetic equator to world map?
@lalamo8722
@lalamo8722 4 жыл бұрын
I have watching your tutorials and that was so great... I have a question I also can't installing base map on python and condado, but there is same I still can't install basemap by following your video (the error was projected lib etc) what you are suggesting to this?
@geodeltalabs
@geodeltalabs 4 жыл бұрын
Hi, can you post the exact error message?
@muzamilkhan437
@muzamilkhan437 2 жыл бұрын
@@geodeltalabs runfile('C:/Users/Muzam/.spyder-py3/temp.py', wdir='C:/Users/Muzam/.spyder-py3') Traceback (most recent call last): File "C:\Users\Muzam\.spyder-py3\temp.py", line 4, in from mpl_toolkits.basemap import Basemap ModuleNotFoundError: No module named 'mpl_toolkits.basemap
@cyrahinocente4572
@cyrahinocente4572 2 жыл бұрын
Hello! I encountered a problem saying ModuleNotFoundError: No module named 'netCDF4.' How to solve this?
@geodeltalabs
@geodeltalabs 2 жыл бұрын
Hi, this means somehow the module installation has not gone well. I'd check the installation steps again to make sure the module is installed properly
@koyenabhattacharjee2566
@koyenabhattacharjee2566 2 жыл бұрын
how do I solve this error "MemoryError: Unable to allocate 1.99 TiB for an array with shape (523600, 523600) and data type float64"
@nazimurrashidchowdhury2843
@nazimurrashidchowdhury2843 4 жыл бұрын
My plot shows no color scheme even though I included one. Am I missing something?
@luciag.s.1180
@luciag.s.1180 4 жыл бұрын
I also have the same problem. Could you solve it?
4 жыл бұрын
thats it, thanks a lot
@nishantsaxena5585
@nishantsaxena5585 3 жыл бұрын
How can I install basemap in linuxmint?
@clifford_prince
@clifford_prince 4 жыл бұрын
Hi when I try the base map it throws an error like "CRSError: Invalid projection: +proj=merc +R=6370997.0 +units=m +lat_ts=0.0 +lon_0=0.0 +x_0=-0.0 +y_0=-inf +type=crs: (Internal Proj Error: proj_create: invalid value for y_0)". My code is mp=Basemap(projection='merc', llcrnrlon=-180, llcrnrlat=-90, urcrnrlon=180, urcrnrlat=90, resolution='i') What do you think is the reason? Thank you very much!
@zainabali3930
@zainabali3930 4 жыл бұрын
Can you please suggest me how to install basemap in ubuntu 16. It is giving various errors in ubuntu for installation. @GeoDelta Labs
@cumarporn
@cumarporn 2 жыл бұрын
do you have a version for Mac who file
@geodeltalabs
@geodeltalabs 2 жыл бұрын
Hi, i'm not so sure about that as I have only used Windows and Linux systems
@himanshishukla2629
@himanshishukla2629 3 жыл бұрын
hello cannot import name 'dedent' from 'matplotlib.cbook' (C:\Users\hp\anaconda3\lib\site-packages\matplotlib\cbook\__init__.py) m getting this error plese help
@almadeliaortizbanuelos6172
@almadeliaortizbanuelos6172 4 жыл бұрын
Thank you. When I run the code, I have 3 error: 1. No name 'Dataset' in module 'netCDF4' 2. Unable to import 'mpl.toolkits.basemap' 3. Module 'netCDF4' has no 'Dataset' member My code is: from netCDF4 import Dataset import numpy as np import matplotlib.pyplot as plt from mpl.toolkits.basemap import Basemap Could you help me?
@cyrahinocente4572
@cyrahinocente4572 2 жыл бұрын
Hello! Have you solved the errors?
@jaafarjuneidi9612
@jaafarjuneidi9612 4 жыл бұрын
I successfully installed the .whl file but wile running the script, it showed an error from mpl_toolkits.basemap import Basemap mportError: cannot import name 'dedent' from 'matplotlib.cbook' (C:\Users\Jaafar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\matplotlib\cbook\__init__.py) Any idea about this problem Thanks for your efforts, it's heplped a lot
@lomejordemividaerestu4470
@lomejordemividaerestu4470 4 жыл бұрын
hello good night, I am carolina serna, a topographical engineering student at the Universidad del Valle, and I have an air quality project for my city, in python. In one of their videos I saw that they make a raster and cut it to the size of the world map, and I don't know how they do it, if you are so kind to explain it to me please
@geodeltalabs
@geodeltalabs 4 жыл бұрын
Hi, did you mean clip a raster using a polygon?
@nashmoud2242
@nashmoud2242 4 жыл бұрын
import climate indices File "", line 1 import climate indices ^ SyntaxError: invalid syntax
@geodeltalabs
@geodeltalabs 4 жыл бұрын
Hi, you may try: import climate_indices
@hindokush3728
@hindokush3728 4 жыл бұрын
@@geodeltalabs can you make a tutorial how to downscale these netcdf to station base data?
@erickmorera154
@erickmorera154 3 жыл бұрын
I have this problem "No module named 'netCDF4'" can someone help me
@cyrahinocente4572
@cyrahinocente4572 2 жыл бұрын
Hello! Have you solved the problem you encountered?
@manuelalejandrosalazargome1047
@manuelalejandrosalazargome1047 3 жыл бұрын
Bro, make this same video but with cartopy
@hindokush3728
@hindokush3728 4 жыл бұрын
ERROR: Invalid requirement: 'C:\\Basemap\\basemap-1.2.1-cp37-cp37m-win_amd64' Hint: It looks like a path. File 'C:\Basemap\basemap-1.2.1-cp37-cp37m-win_amd64' does not exist. got an error like this what is this sir path is all okay but..
@geodeltalabs
@geodeltalabs 4 жыл бұрын
Hi, did you specify the extention .whl at the end of your path? Without that it will not run
@hindokush3728
@hindokush3728 4 жыл бұрын
@@geodeltalabs thanks you sir, i solve it
@hindokush3728
@hindokush3728 4 жыл бұрын
@@geodeltalabs sir, i have 17 years data and combined it as one nc file, now i would like to take a time series of it as csv file could you help?
@basemel-shafei6452
@basemel-shafei6452 4 жыл бұрын
@@hindokush3728 how did you combine it into one nc file ?
@erickmorera154
@erickmorera154 3 жыл бұрын
I have this error "No module named 'netCDF4'" can someone help me? please
@subramanyamraju9738
@subramanyamraju9738 4 жыл бұрын
In between some 2 to 3 minutes was missing(between 16 and 17 minutes). who edited the video.....please see it completely and please add complete one
@geodeltalabs
@geodeltalabs 4 жыл бұрын
Hi, thanks for notifying us. Indeed there is a bit of an early cut. However, what's been done there is just changing the coordinates from degrees, minutes, seconds to decimal degrees via tools-> options. After that, the coordinates of the 4 corners are added back to the script, in decimal degrees. Hope this helps!
@oliverclaessens7053
@oliverclaessens7053 3 жыл бұрын
14:34
@dany6612
@dany6612 4 жыл бұрын
I had a problem when drawing the map, half of the map (nort,south america) wasnt drawn, this is the solution i found: lons[lons>180]-=360
Read and Plot NetCDF Data in Python with xarray and rioxarray
21:51
Geospatial School
Рет қаралды 11 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
5 Python Libraries You Should Know in 2025!
22:30
Keith Galli
Рет қаралды 86 М.
Downloading High-Resolution Topographic Maps for Free
8:40
GeoDelta Labs
Рет қаралды 77 М.
How to make a map in python using basemap
17:08
Karina Adcock
Рет қаралды 33 М.
Inside the V3 Nazi Super Gun
19:52
Blue Paw Print
Рет қаралды 2,3 МЛН
How to open a NetCDF file
18:11
Luke Data Manager
Рет қаралды 9 М.
Why Does Diffusion Work Better than Auto-Regression?
20:18
Algorithmic Simplicity
Рет қаралды 430 М.
Visualising data in NetCDF format
39:56
EUMETSAT
Рет қаралды 66 М.
Extracting time series data from a netCDF file into a CSV (Part 3)
1:09:51
A Strange Map Projection (Euler Spiral) - Numberphile
12:55
Numberphile
Рет қаралды 1,3 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН