0

On python 3.6 I have a netCDF file that contains global precipitation data with the variables: lat, lon, time, and precip. My ultimate goal is to plot the precip data on a scatter plot and create a trend-line. However I am new to python and am having trouble converting the data in the netCDF file to a format that I can read and easily plot on a scatter plot. Any ideas on how I would go about doing this would be much appreciated. Thank you!

2
  • 1
    Scipy can read netCDF. Documentation Commented May 31, 2017 at 22:03
  • I haven't tested recent version of SciPy, but unidata module is better imo, see @ ImportanceOfBeingErnest answer Commented Jun 1, 2017 at 11:18

1 Answer 1

1

As also stated in this question's answers, there is

How easy or hard it is to directly use the data is then dependend on the data itself. But at least in the scipy case the returned variables are numpy arrays and may directly be plotted if the data is numeric.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.