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

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

GeoDelta Labs

4 года назад

48,112 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@YogeshKumar-pt1ii
@YogeshKumar-pt1ii - 03.08.2023 11:09

sir , how we plot netcdf file using shapefile with python . when we have a sape file

Ответить
@blueradium4260
@blueradium4260 - 13.06.2023 21:12

Excellent, thank you :)

Ответить
@sandeepbhatti3124
@sandeepbhatti3124 - 16.05.2023 20:06

The best explanation! Thanks much.

Ответить
@YujiaZhao-nu6es
@YujiaZhao-nu6es - 01.04.2023 14:39

EXCELLENT tutorials! THANKS!!!

Ответить
@koyenabhattacharjee2566
@koyenabhattacharjee2566 - 26.01.2023 05:25

how do I solve this error "MemoryError: Unable to allocate 1.99 TiB for an array with shape (523600, 523600) and data type float64"

Ответить
@shailendrarana4073
@shailendrarana4073 - 13.01.2023 00:46

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.

Ответить
@cyrahinocente4572
@cyrahinocente4572 - 18.12.2022 16:13

Hello! I encountered a problem saying
ModuleNotFoundError: No module named 'netCDF4.'
How to solve this?

Ответить
@gambu4810
@gambu4810 - 09.08.2022 03:17

You're a good teacher

Ответить
@researchgoals9766
@researchgoals9766 - 19.07.2022 09:16

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 - 08.07.2022 14:25

I am not able to install this in the geo_env. Please let me know if there is any way.

Ответить
@cumarporn
@cumarporn - 07.07.2022 01:57

do you have a version for Mac who file

Ответить
@Mauaka
@Mauaka - 12.03.2022 06:38

Thanks for this. I will have to look for a conversion to Cartopy instead of BaseMap and follow most of your instructions.

Ответить
@jaywilliams2852
@jaywilliams2852 - 11.03.2022 00:46

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

Ответить
@kassahunaweke3058
@kassahunaweke3058 - 08.03.2022 08:19

Ohhh thanks a lot Sir, tired of it before. Basemap successfully installed in my device.

Ответить
@abzanmaster
@abzanmaster - 27.02.2022 15:50

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?

Ответить
@frankservant5754
@frankservant5754 - 22.12.2021 05:14

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?

Ответить
@saivilliers7112
@saivilliers7112 - 16.12.2021 12:29

C:\Users\Sairam>pip install C:\Basemap\basemap-1.2.2-pp38-pypy38_pp73-win_amd64.whl
ERROR: basemap-1.2.2-pp38-pypy38_pp73-win_amd64.whl is not a supported wheel on this platform.

(base) C:\Users\Sairam>pip install C:\Basemap\pyproj-3.3.0-pp38-pypy38_pp73-win_amd64.whl
ERROR: pyproj-3.3.0-pp38-pypy38_pp73-win_amd64.whl is not a supported wheel on this platform.

Ответить
@user-ju7ng9im5h
@user-ju7ng9im5h - 07.12.2021 09:37

Hello, I would like to ask how to draw cumulative variables instead of an average of one per day in the film?

Ответить
@RAKESHGHOSH-zl6gn
@RAKESHGHOSH-zl6gn - 20.11.2021 12:38

wow...! your voice is so attracting....

Ответить
@ignaciogarciamartin5109
@ignaciogarciamartin5109 - 18.10.2021 14:14

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?

Ответить
@jos6708
@jos6708 - 26.09.2021 11:51

Hey very interested and useful one.
What is the upper and lower latitude & longitude for worldwide.

Ответить
@oshopriya788
@oshopriya788 - 06.08.2021 20:20

Hey I am unable to do the pip install for basemap package, it gives me the "not supported wheel" error

Ответить
@rizwankazi4555
@rizwankazi4555 - 06.08.2021 13:52

Very relevant and brilliant explanation. "Kite" recommendation was a life saver. Wondering if I could reach out for some advice .Thank you so much.

Ответить
@miskaknapek
@miskaknapek - 05.08.2021 12:43

Thank you very much for making this tutorial video. I appreciate it a great deal.
Greetings from Berlin!

Ответить
@shafqatali4482
@shafqatali4482 - 13.07.2021 06:40

sir please tell me how to install mpl_toolkits.basemap in spyder. i have installed all other libraries like numpy, netCDF4 and matplotlib but mpl_toolkits.basemap cant be installed. i have installed all these libraries through anaconda environment, i have searched there mpl_toolkits.basemap library in anaconda search but it is not present there and all other 3 libraries are there which i installed.

Ответить
@TriAtmaja1000
@TriAtmaja1000 - 10.07.2021 14:59

It works properly and perfectly for me. Thanks ~~

Ответить
@himanshishukla2629
@himanshishukla2629 - 12.06.2021 09:19

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

Ответить
@biancameotti3663
@biancameotti3663 - 08.06.2021 14:58

Thank you for this tutorial. You teach so well.

Ответить
@erickmorera154
@erickmorera154 - 07.05.2021 19:11

I have this problem "No module named 'netCDF4'" can someone help me

Ответить
@gabrielalima159
@gabrielalima159 - 29.04.2021 22:16

Thank you! You saved my academic life!

Ответить
@hans6458
@hans6458 - 06.04.2021 11:44

Great video! Do you know how to create a colored map from a formula that calculates a value from latitude and longitude?

Ответить
@DianaHydra
@DianaHydra - 26.03.2021 15:57

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')
<ipython-input-52-438aca6114c4>: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?

Ответить
@nishantsaxena5585
@nishantsaxena5585 - 16.03.2021 18:17

How can I install basemap in linuxmint?

Ответить
@tobesmarter9142
@tobesmarter9142 - 13.03.2021 14:46

Well done, bro, thanks for your sharing

Ответить
@manuelalejandrosalazargome1047
@manuelalejandrosalazargome1047 - 09.03.2021 21:26

Bro, make this same video but with cartopy

Ответить
@nishankshah3555
@nishankshah3555 - 18.02.2021 13:28

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

Ответить
@toufik_8840
@toufik_8840 - 06.02.2021 17:02

when i run the code i have " No module named 'netCDF4" at the beginning , what should i do? can someone help please

Ответить
@nayantalmale9270
@nayantalmale9270 - 01.02.2021 17:33

Thank you very much for explaining so simply and nicely....I have just started to learn Python and your videos are very helpful.

Ответить
@RahanOzturk
@RahanOzturk - 10.01.2021 23:19

thats it, thanks a lot

Ответить
@thasweerah
@thasweerah - 09.01.2021 16:12

how to used a different shapefile for example shapefile of catchment area

Ответить
@almadeliaortizbanuelos6172
@almadeliaortizbanuelos6172 - 23.12.2020 07:16

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?

Ответить
@ShahzaibKhan-tg1ps
@ShahzaibKhan-tg1ps - 22.12.2020 10:52

Excellent Tutorial. Thank you!! It is something which I was looking for many days. Thank you again.

Ответить
@local9692
@local9692 - 04.12.2020 19:06

Why am i getting this error?
Dimensions of C (240, 242) are incompatible with X (240) and/or Y (110); see help(pcolor)

Ответить
@nazimurrashidchowdhury2843
@nazimurrashidchowdhury2843 - 27.10.2020 20:28

My plot shows no color scheme even though I included one. Am I missing something?

Ответить
@engr.abdullahazzamsafi4515
@engr.abdullahazzamsafi4515 - 19.10.2020 09:51

You are awesome. thank you so much.

Ответить
@piyaphatc5794
@piyaphatc5794 - 18.10.2020 22:46

I can't install the basemap packages

Ответить
@dany6612
@dany6612 - 17.10.2020 08:09

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

Ответить