[ncl-talk] Problem with CFS initial condition data plot in NCL

Vimal Koul koulvimal18 at gmail.com
Tue Aug 4 00:23:07 MDT 2015


Dear Users,

I am trying to plot an ocean data file which is a part of CFS High
Resolution Initial Conditions (http://nomads.ncdc.noaa.gov/data.php).

File: ocnanl.gdas.1985050100.ocean_temp_salt.res.nc (uploaded to ncl ftp
link) or download from: https://copy.com/7bVgOvDfQKDjcg07

Unfortunately, printVarSummary shows that the variable "temp" I'm trying to
plot does not have coordinate information, however, nlat, nlon are
provided. So I used fspan (and tried other functions also) to attach
coordinates, but the resulting plot is messed up. The plot and ncl script
are attached.

Can you please help me in defining the lat long coordinate information for
this type of data?

I am completely new to NCL, infact just started last week.

NCl Version: 6.3.0
(Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4
===================================================================
a = addfile("ocnanl.gdas.1985050100.ocean_temp_salt.res.nc","r")
data = a->temp(:,:,:,:)

printVarSummary(data):

Variable: data
Type: double
Total Size: 94464000 bytes
            11808000 values
Number of Dimensions: 4
Dimensions and sizes:    [Time | 1] x [zaxis_1 | 40] x [yaxis_1 | 410] x
[xaxis_1 | 720]
Coordinates:
            Time: [   1..   1]
            zaxis_1: [ 1..40]
            yaxis_1: [ 1..410]
            xaxis_1: [ 1..720]
Number Of Attributes: 2
  long_name :    temp
  units :    none
===================================================================

Thanks

Vimal Koul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150804/bb465457/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sst19850501.png
Type: image/png
Size: 151959 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150804/bb465457/attachment-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p6cn.ncl
Type: text/x-ncl
Size: 1129 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150804/bb465457/attachment-0001.bin 


More information about the ncl-talk mailing list