How to Open a NetCDF File and Map the Data in R

  Рет қаралды 30,410

EmpowerDat

EmpowerDat

Күн бұрын

Пікірлер: 99
@jshullglobal
@jshullglobal 5 жыл бұрын
I knew next to nothing about R last week, now I'm opening NetCDF files with it. Thank you!
@Thinkingboutfrogggs
@Thinkingboutfrogggs 3 жыл бұрын
Thank you SO much for uploading this video. I can't tell you how incredibly helpful it has been!!
@shunrei1974
@shunrei1974 2 жыл бұрын
Thank you very much for your video. When I want to plot the slice, I get "error in image.default(lon, lat, spei.slice) : increasing 'x' and 'y' values expected". Do you know why?
@hammao
@hammao 5 жыл бұрын
A Big Thank You to you !!! ... You explained everything in the clearest way possible i must say.
@hammao
@hammao 5 жыл бұрын
it will be nice if you can explain "dname" part of your code and how to export the data to CSV. do i just cbind the various variable ?
@empowerdat2879
@empowerdat2879 5 жыл бұрын
thanks!
@juliocgfreitas
@juliocgfreitas 3 жыл бұрын
Great tutorial. Do you know if it's possible to plot how many grid points I'm using in my data? Thank you.
@annadasankarroy1590
@annadasankarroy1590 4 жыл бұрын
Nice and very helpful video. Can you tell me how to take average of those time slices and get a long term average map of temperature for a particular region?
@nicholastrandberg6346
@nicholastrandberg6346 3 жыл бұрын
I am wondering the same thing about averages
@dillibro
@dillibro 5 жыл бұрын
how do you save the data into shape file, so that it can be used in ArcGIS?
@thaa3092
@thaa3092 6 жыл бұрын
Thank you very helpful. If its possible please do a video with the basics. I'm new to all this
@empowerdat2879
@empowerdat2879 6 жыл бұрын
Thanks for your comment! What kind of basics are we talking about? The basics of R, NetCDF files, or climate models? If you give me a better idea of what kind of project you're working on, I might be able to help.
@liliansales9301
@liliansales9301 5 жыл бұрын
Awesome video! Helped a lot! Thanks for the time!
@emmanuelmawuliabalo4741
@emmanuelmawuliabalo4741 5 жыл бұрын
This is a good video. Thanks very much. Could you please elaborate on mapCDF coding
@empowerdat2879
@empowerdat2879 5 жыл бұрын
you can find all the code in this GitHub repository (github.com/angelamhkim/climateNetCDF) it's a bit of a mess but oh well
@jonas9426
@jonas9426 4 жыл бұрын
Get error when imaging: "Error in image.default (lon, lat, kernel.slice [,, 1]): increasing 'x' and 'y' values expected " are there other imaging commands, that could work?
@LarsOrWas
@LarsOrWas 4 жыл бұрын
Having the same issue. It seems we have to flip the chart anyhow to make sure, lon and lat are as they are supposed to. I'm searching for a solution and let you know if I do progress of some sort.
@niranjanadhikari9124
@niranjanadhikari9124 4 жыл бұрын
@@LarsOrWas I think either lat or lon is not in ascending order when you performed lat
@vaishaliportel2410
@vaishaliportel2410 2 жыл бұрын
do you know how we can get mean and standard deviation plots using the data from nc file? urgent please help
@PoLearnCo
@PoLearnCo Жыл бұрын
Can i plot the data just for a watershed.. I have a shapefile for this
@y37chung
@y37chung 3 жыл бұрын
What can I do when I run into an "Error: cannot allocate vector of size X Gb"? This happens on the line of variable_array creation
@sunjingjing2002
@sunjingjing2002 2 жыл бұрын
Thank you for sharing. I downloaded the netcdf data, it contains lat,lon, temp and time (days,from 1850-2100),1 I'd like to extract the data from 2100.01-2100.12 and calculated the month mean temp, how should I do? thank you
@pan8054
@pan8054 4 жыл бұрын
Can we convert NetCDF file to csv with R?
@zarrinz1865
@zarrinz1865 3 жыл бұрын
Thanks a lot for your video, helps a lot. However, I stuck in a problem, Error: Package `maps` required for `map_data`. Please install and try again. Cou you please kindly help me out?
@fahmibilal
@fahmibilal 4 жыл бұрын
hello...i m getting the following error Error: Cannot add ggproto objects together. Did you forget to add this object to a ggplot object? plz help
@ihssanmoin9980
@ihssanmoin9980 5 жыл бұрын
Thank you very much for this video!
@engr.abdullahazzamsafi4515
@engr.abdullahazzamsafi4515 4 жыл бұрын
Thank you very much such a great video. Can you please do down-scaling/bais correction and extract a station data. please generate time series scenario projection of climatic data. thanking you in anticipation
@pradeepattri8375
@pradeepattri8375 3 жыл бұрын
thank you for this amazing video it was really helpful but please can you help me with the netcdf data with height levels, so for example if the data has different levels (z) so how can i select the z level?
@empowerdat2879
@empowerdat2879 3 жыл бұрын
try looking at the attributes and dimensions. It should show you the into you need to figure out how to call the z (height) values.
@user-gt5wx1hg1i
@user-gt5wx1hg1i 2 жыл бұрын
Very cool, thank you very much!
@ruchitripathi4204
@ruchitripathi4204 4 жыл бұрын
Hi, it was pretty useful, can you please tell me how to plot the data with a particular boundary? Say if I have data of only Alberta, how can I plot it on Alberta map? Please tag me while answering so that i receive notification. Thanks :)
@hasbak07
@hasbak07 4 жыл бұрын
hello, thank you for sharing this video it was very helpful for me, for me I wanna focus on South Africa and map only the temperature of this slice of the world how I would do it? I have also data on precipitation levels, can I do the same manipulation for it or does it differ? Thank you
@ruchitripathi4204
@ruchitripathi4204 4 жыл бұрын
Hey, did you get your answer? I also have somewhat same problem and I am stuck.
@sudheerbhakare304
@sudheerbhakare304 5 жыл бұрын
It was very helpful. I am also trying some spatial plots, Can you provide that function used to get legend and country boundaries, because it is not visible in video.
@muralikannansp2187
@muralikannansp2187 4 жыл бұрын
I hope we have to use latitudinal and longitudinal values to fix the same. Am not sure
@sandyherho1997
@sandyherho1997 4 жыл бұрын
Hi, Angela. I got this error message when I run mapCDFtemp function: Error in rename(., lon = Var1, lat = Var2) : could not find function "rename" could you tell why? Thanks
@sandyherho1997
@sandyherho1997 4 жыл бұрын
I apologize, just a silly mistake, I forgot to import dplyr and readr.
@estebanmeneses3107
@estebanmeneses3107 4 жыл бұрын
Thank you for the video! It was helpful, but what is unit on the "legend.key..." in the ggplot function? somebody know?
@sudheerbhakare304
@sudheerbhakare304 5 жыл бұрын
It will be very nice if you make one video on how you wrote that function. thank you..
@empowerdat2879
@empowerdat2879 5 жыл бұрын
hey! a bit of a mess but you can find the code in this GitHub repository github.com/angelamhkim/climateNetCDF
@sudheerbhakare304
@sudheerbhakare304 5 жыл бұрын
@@empowerdat2879 Thank you. I got it.
@KK-pf1ye
@KK-pf1ye 5 жыл бұрын
I'm trying to run it but it's giving me a weird error. I'm using CMIP6 EC-Earth data for monthly precipitation values. It runs but then takes me to a different page and says "function (x, mode = "any") .Internal(as.vector(x, mode))" Please help
@saisowmyakasula7888
@saisowmyakasula7888 5 жыл бұрын
You are using CMIP6 data ??
@jeffreymarak
@jeffreymarak 6 жыл бұрын
Very nice video, it was very helpful. Why dont you code using RStudio...It will be much easier for you.. and please keep making the videos. If possible pls do a video on how to extract trmm rainfall data from daily netcdf file for many years into a single excel file.
@empowerdat2879
@empowerdat2879 6 жыл бұрын
Thanks! I started with RStudio but like the cleanliness of R :) I'm not familiar with trmm rainfall data but the same concepts should apply. I have a video that shows how to extract data from a specific lat/lon coordinate. That might be helpful.
@jeffreymarak
@jeffreymarak 6 жыл бұрын
I saw the video it gave me idea on how to extract the data. But my problem is that I have extremely large number of files(around 7500 daily nc files). If there was a way to merge all 7500 files into one netcdf file my job would be a lot easier... :)
@empowerdat2879
@empowerdat2879 6 жыл бұрын
divertido I'm sure we could write a function for that! Why don't you send me an email and we'll figure it out? You can reach me at climateaccesscoop@gmail.com
@CapoeiraRecio
@CapoeiraRecio 3 жыл бұрын
This is awesome!!!! Thank you!
@xilin7905
@xilin7905 4 жыл бұрын
Thanks a lots for making this video! Its really helpful!
@juanog88
@juanog88 5 жыл бұрын
thanks for sharing
@himanshupandey1410
@himanshupandey1410 4 жыл бұрын
Thank you for the video it was great. I want to know how to extract data from a netcdf file and convert to excel sheet so I can visualize them. I'm comparing different model data with ground recorded data, I wanna know how can I convert netcdf file into excel
@dr.barunbiswas7132
@dr.barunbiswas7132 5 жыл бұрын
Thank you for such a nice tutorial. Could you please provide some help regarding slicing a definite area using a particular shape-file of a country or state.
@empowerdat2879
@empowerdat2879 5 жыл бұрын
Hey! Hmmm I’m not sure how to do that but I recommend looking up downscaled models.
@ruchitripathi4204
@ruchitripathi4204 4 жыл бұрын
Hi. did you get your answer? I am also stuck with almost same problem .
@emmanuelmawuliabalo4741
@emmanuelmawuliabalo4741 5 жыл бұрын
So I run the ggplot code and I keep getting this message: "Error: Cannot add ggproto objects together. Did you forget to add this object to a ggplot object?" struggling to figure out what this means. Could you help out
@muralikannansp2187
@muralikannansp2187 4 жыл бұрын
download the package ggplot2 to avoid this error
@saheedsalaudeen9141
@saheedsalaudeen9141 3 жыл бұрын
Thank you for this vedio. It is very useful but all the link could not be accessed
@raularenasmunoz620
@raularenasmunoz620 5 жыл бұрын
what a nice video and what a nice explanation, thx a lot for your time
@empowerdat2879
@empowerdat2879 5 жыл бұрын
That’s a very kind comment. Thank you!
@edstewart2399
@edstewart2399 5 жыл бұрын
Hi there! Thank you very much for the video I found it very useful. I am looking for data on a particular region: The European Alps to measure future snow depth. Would you have an idea of how to extract and map this data? any help would be amazing. Thank you in advance.
@empowerdat2879
@empowerdat2879 5 жыл бұрын
you can set boundaries on the lat and lon variables to encompass only the area you are interested in
@edstewart2399
@edstewart2399 5 жыл бұрын
How would I do this? could I email you? Thank you in advance
@modelynsanchez1540
@modelynsanchez1540 6 жыл бұрын
im just a newbie to netcdf files.. how can i access the dimension fields.. im having below error: > x1
@empowerdat2879
@empowerdat2879 6 жыл бұрын
Hey! Maybe this video will help: kzbin.info/www/bejne/n52TZmtteM6BorM If not, let me know!
@modelynsanchez1540
@modelynsanchez1540 6 жыл бұрын
Hi, thank you for ur reply, its not working. Previously the program is using ncdf package now upgrading to ncdf4. get.var.ncdf(ncin,"bottom_top") -> this one working using ncdf package ncvar_get(ncin,"bottom_top") -> this one after using ncdf4 package was not working. I have converted to below : ncdf ncdf4 ---------------------------------------------------------- open.ncdf -> nc_open get.var.ncdf -> ncvar_get dim.def.ncdf -> ncdim_def var.def.ncdf -> ncvar_def create.ncdf -> nc_create put.var.ncdf -> ncvar_put close.ncdf -> nc_close
@levismuse
@levismuse 6 жыл бұрын
helpful
@MrJunaid136
@MrJunaid136 4 жыл бұрын
Please guide how to extract data from netcdf file using R. I want to extract data for my area of interest from global netcdf file.
@empowerdat2879
@empowerdat2879 4 жыл бұрын
let me know if this helps kzbin.info/www/bejne/n52TZmtteM6BorM&ab_channel=EmpowerDat
@farhansaleem7248
@farhansaleem7248 6 жыл бұрын
I am waiting for you, thanks
@empowerdat2879
@empowerdat2879 6 жыл бұрын
Hello Farhan! Is there a specific video you are looking for?
@capsgurl22
@capsgurl22 5 жыл бұрын
Thank you so much for this video! It has helped me a lot with mapping climate data in R. I am attempting to use the code with fill value 'NA', however, it creates an error due to using a discrete value on a continuous scale. Can I ask you about how to apply the code with 'NA's?
@manacebationo8565
@manacebationo8565 2 жыл бұрын
Thanks for your helpful tutorial. Can you share the script? Thank you.
@abiygebremichael8663
@abiygebremichael8663 6 жыл бұрын
plese send me procedure how to get/download/ 25km resolution downscaled climate data for 1950-2005 historical and 2006-2100 future from both NASA and CORDEX Thank you!
@empowerdat2879
@empowerdat2879 6 жыл бұрын
Hello! Not sure how to do that... Do you have a link to your data sources in NASA and CORDEX? I can try to figure it out.
@empowerdat2879
@empowerdat2879 5 жыл бұрын
hmm not sure how to do that but if I figure it out I'll make a video about it
@jonathanopokuoti9688
@jonathanopokuoti9688 5 жыл бұрын
You can follow her previous video on how to download climate data on ESGF website. Use the same procedure to download forCORDEX. Under projects, select CORDEX.
@ahmadfrahmand
@ahmadfrahmand 6 жыл бұрын
Dearest Kim, Thanks a lot for this nice video if its possible for you just guide me how to extract a specific lat, lon and start downscale. and what is need for downscaling process please can you help me in this regards?
@ahmadfrahmand
@ahmadfrahmand 6 жыл бұрын
also please explain little bit about what is the difference between, RCP, Historical data, RCP85 and how to merge for example the CMCC-CM model the data from this model is based on year and if you download rcp85 its 100 file and how to merge it i don't know?
@ahmadfrahmand
@ahmadfrahmand 6 жыл бұрын
and also please could you send me the codes you copied from suplim text editor?
@ahmadfrahmand
@ahmadfrahmand 6 жыл бұрын
Dearest Kim, thanks for nice link i have to learn these things in another one month? could you please help me. can i have your email or skype to talk directly? please send me in my gmail . hindokush12@gmail.com
@ahmadfrahmand
@ahmadfrahmand 6 жыл бұрын
you did not make that video which is showing how to extract some specific lat and long dear kim.
@empowerdat2879
@empowerdat2879 6 жыл бұрын
hey feel free to email me at climateaccesscoop@gmail.com
@DeadrustyMeat
@DeadrustyMeat 6 жыл бұрын
This video is very helpfull. Thnks a lot, but I got a problem with some of the archives that I downloaded from the ESGF. Could you help me with my problem? CouldI write to your e-mail?
@empowerdat2879
@empowerdat2879 6 жыл бұрын
Hello! No problem! Sure thing. Email me at climateaccesscoop@gmail.com and I'll get back to you as soon as I can.
@franciscojavierbricenozulu2098
@franciscojavierbricenozulu2098 4 жыл бұрын
How i can do a zoom in the map?
@franciscojavierbricenozulu2098
@franciscojavierbricenozulu2098 4 жыл бұрын
I mean, i just want to use a specific lon and lat
@ahmedatia80
@ahmedatia80 4 жыл бұрын
good work, use Rstudio...
@empowerdat2879
@empowerdat2879 4 жыл бұрын
thanks!
@mohammedkareem6476
@mohammedkareem6476 4 жыл бұрын
hello i want clip net cdf
@peterpauker3361
@peterpauker3361 4 жыл бұрын
Thanks for the video, great job!
How to extract data from multiple NetCDF files in one R script
37:40
Luke Data Manager
Рет қаралды 4,6 М.
Visualising data in NetCDF format
39:56
EUMETSAT
Рет қаралды 65 М.
Magic or …? 😱 reveal video on profile 🫢
00:14
Andrey Grechka
Рет қаралды 85 МЛН
WORLD BEST MAGIC SECRETS
00:50
MasomkaMagic
Рет қаралды 41 МЛН
Bike Vs Tricycle Fast Challenge
00:43
Russo
Рет қаралды 12 МЛН
R raster Tutorial: Calculate monthly mean and plot with ggplot2
18:12
NetCDF: Extract Specific Coordinate Data from Climate Models
11:46
How to open a NetCDF file in R programming
20:29
Luke Data Manager
Рет қаралды 685
Quick use of ERDDAP and netCDF files in RStudio
19:56
TheUdorblab
Рет қаралды 3,6 М.
AI can't cross this line and we don't know why.
24:07
Welch Labs
Рет қаралды 553 М.
Introducing NetCDF and the CF and ACDD conventions
12:16
Luke Data Manager
Рет қаралды 3,2 М.
FASTEST Way to Learn Modern GIS and ACTUALLY Get a Job
15:12
Matt Forrest
Рет қаралды 109 М.
chill kernel hacking for fun (week 33, multicore 1)
1:17:12
offlinemark
Рет қаралды 1,8 М.
Magic or …? 😱 reveal video on profile 🫢
00:14
Andrey Grechka
Рет қаралды 85 МЛН