<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=content-type>
<STYLE type=text/css>
BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em}
</STYLE>
<META name=GENERATOR content="MSHTML 10.00.9200.17566"><!-- flashmail style begin -->
<STYLE type=text/css>
body {border-width:0;margin:0}
img {border:0;margin:0;padding:0}
</STYLE>
<BASE target=_blank><!-- flashmail style end --></HEAD>
<BODY
style="BORDER-LEFT-WIDTH: 0px; FONT-SIZE: 10.5pt; FONT-FAMILY: 微软雅黑; BORDER-RIGHT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; COLOR: #000000; MARGIN: 12px; LINE-HEIGHT: 1.5; BORDER-TOP-WIDTH: 0px"
marginheight="0" marginwidth="0"><STATIONERY>
<DIV>Hello all,</DIV>
<DIV> </DIV>
<DIV> I have got an error as follow,</DIV>
<DIV> </DIV>
<DIV><STRONG>fatal:["FileSupport.c":133]:Dimension (x) of file
(ext-PSY4V1R3_1dAV_201201_gridU) does not have an associated coordinate
variable<BR>fatal:["Execute.c":8567]:Execute: Error occurred at or near line 184
in file mercator_vector_rectangle.ncl</STRONG></DIV>
<DIV><STRONG></STRONG> </DIV>
<DIV>Here is the line 184 in file mercator_vector_rectangle.ncl:</DIV>
<DIV> </DIV>
<DIV style="COLOR: #000000"><STRONG>u =
uin->vozocrtx(0,depth-1,{lat_min:lat_max},{lon_min:lon_max}) </STRONG></DIV>
<DIV> </DIV>
<DIV>The nc file head from command "ncdump -h aaa.nc" is as follow,</DIV>
<DIV> </DIV>
<DIV><EM>netcdf ext-PSY4V1R3_1dAV_201201_gridU {<BR>dimensions:<BR> y = 429
;<BR> x = 566 ;<BR> depthu = 50 ;<BR> time_counter = UNLIMITED ;
// (1 currently)<BR>variables:<BR> short nav_lon(y, x)
;<BR> nav_lon:units = "degrees_east"
;<BR> nav_lon:valid_min = 98.f ;<BR> nav_lon:valid_max =
146.f ;<BR> nav_lon:add_offset = 0.f
;<BR> nav_lon:scale_factor = 0.01f ;<BR> nav_lon:long_name
= "Longitude" ;<BR> nav_lon:nav_model = "Default grid"
;<BR> short nav_lat(y, x) ;<BR> nav_lat:units = "degrees_north"
;<BR> nav_lat:valid_min = -6.f ;<BR> nav_lat:valid_max =
30.f ;<BR> nav_lat:add_offset = 0.f
;<BR> nav_lat:scale_factor = 0.01f ;<BR> nav_lat:long_name
= "Latitude" ;<BR> nav_lat:nav_model = "Default grid"
;<BR> float depthu(depthu) ;<BR> depthu:units = "m"
;<BR> depthu:positive = "unknown" ;<BR> depthu:valid_min =
0.f ;<BR> depthu:valid_max = 5728.f ;<BR> depthu:title =
"depthu" ;<BR> depthu:long_name = "Vertical U levels"
;<BR> float time_counter(time_counter)
;<BR> time_counter:calendar = "gregorian"
;<BR> time_counter:title = "Time"
;<BR> time_counter:long_name = "Time axis"
;<BR> time_counter:units = "seconds since 2007-10-31 00:00:00"
;<BR> time_counter:time_origin = "2007-OCT-31 00:00:00"
;<BR> float vozocrtx(time_counter, depthu, y, x)
;<BR> vozocrtx:units = "m/s" ;<BR> vozocrtx:missing_value
= -32767s ;<BR> vozocrtx:valid_min = -9999.99952502551
;<BR> vozocrtx:valid_max = 9999.99952502551
;<BR> vozocrtx:long_name = "Zonal Velocity"
;<BR> vozocrtx:short_name = "vozocrtx"
;<BR> vozocrtx:standard_name = "sea_water_x_velocity"
;<BR> vozocrtx:online_operation = "N/A"
;<BR> vozocrtx:axis = "TZYX"
;<BR> vozocrtx:interval_operation = 432000.
;<BR> vozocrtx:interval_write = 432000.
;<BR> vozocrtx:associate = "time_counter depthu nav_lat nav_lon"
;<BR> vozocrtx:coordinates = "nav_lon nav_lat depthu time_counter"
;</EM></DIV>
<DIV><EM></EM> </DIV>
<DIV><EM>// global attributes:<BR> :Conventions = "GDT 1.3"
;<BR> :file_name = "ORCA12_LIM-T103_y2011m12d31_gridU.nc"
;<BR> :production = "OPA9.0 beta" ;<BR> :TimeStamp =
"2012-JAN-09 04:45:09 GMT+0000" ;<BR> :NCO = "4.0.2"
;<BR> :nco_openmp_thread_number = 1 ;<BR>}</EM></DIV>
<DIV> </DIV>
<DIV> How should I modify the ncl code or change the ncfile to fix the
problem? Thanks.</DIV>
<DIV> </DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana; COLOR: #c0c0c0">
<DIV align=left>2016-01-12</DIV>
<HR id=SignNameHR
style="BORDER-TOP: #c0c0c0 1px solid; HEIGHT: 1px; BORDER-RIGHT: 0px; BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; WIDTH: 122px"
align=left>
<SPAN id=_FlashSignName>
<STYLE type=text/css>
body {
        font-size:12.1pt; font-family:simsun,serif;
}
</STYLE>
<META name=GENERATOR content="MSHTML 10.00.9200.16686"><STATIONERY>
<DIV>
<STYLE type=text/css>
body {
        font-size:12.1pt; font-family:simsun,serif;
}
</STYLE>
<META name=GENERATOR content="MSHTML 10.00.9200.16686"><STATIONERY>
<DIV>
<DIV>
<DIV><FONT face="Times New Roman">Xueming Zhu 朱学明<BR>Key Laboratory of Research
on Marine Hazards Forecasting (LoMF), SOA<BR>National Marine Environmental
Forecasting Center (NMEFC)<BR>No.8, Dahuisi Road, Haidian District, Beijing,
100081<BR>People's Republic of
China<BR>Tel:+86-10-82481923</FONT></DIV></DIV></DIV></STATIONERY></DIV></STATIONERY></SPAN></DIV></STATIONERY></BODY></HTML>