Hi, I have a nc file that contains time from 1 to 2000 and variables at global scale. How, I can average one variable with 500 years time at global scale. I want 500 years average so that I can use facet_wrap (ggplot) for plots at 500 years mean interval.
In simple, how to do average of variable at 500 year scale in netcdf file?
We'll need a reprex of your data to give any kind of detailed help. If you need help with a reprex, you can look at this post:
Welcome to forum.posit.co — we’re glad to have you! This welcome page will give you some advice on how to get the most out of the site if you’re getting or giving help. We want this to be a friendly, inclusive community. Please read our FAQ which contains some advice aimed at ensuring that this remains a place for civilised discussion.
Getting help
If you need help, your job is to make it as easy as possible for others to help you. If you’re having problems with code the most important thing to do is create a minimal reproducible example, or reprex for short. If you’ve never heard of reprexes before, please start at http://www.tidyverse.org/help/#reprex .
If you have code that runs but does…
Closer - we still need a version of your data that we can put into our own R session. Try posting the output of dput(head(nc_data, 1000))
.
system
Closed
November 30, 2022, 6:27pm
6
This topic was automatically closed 42 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.