[ncl-talk] Plotting netCDF

Smith, Stuart smit1770 at purdue.edu
Tue Mar 13 14:20:27 MDT 2018


Good afternoon,

 

I received a netCDF file that has a format I am unfamiliar with and wanted
guidance on calculating spatial averages over time. Attached is a copy of
the .nc file. The variables are:

0)      Runoff 

1)      T=Time

2)      X= Longitude

3)      Y = Latitude

When defining variables for runoff (ex. Var = fi->runoff ), the output
format is the following:

(0,0,0)    0

(0,0,1) -9999

(0,0,2) -9999

(0,0,3) -9999

(0,0,4) -9999

....

(1,0,0)    0

(1,0,1) -9999

(1,0,2) -9999

 

The next value will not appear until (1,0,0). I wanted to ask how I would
plot such data, and calculate averages over the area with the given format?
Thank you for your time.

 

Regards,

 

-Stuart

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180313/a8525d2d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: runoff.nc.tar.gz
Type: application/x-gzip
Size: 86942 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180313/a8525d2d/attachment.bin>


More information about the ncl-talk mailing list