<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<STYLE type=text/css>BODY {
        PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
<META name=GENERATOR content="MSHTML 8.00.6001.19222"></HEAD>
<BODY style="MARGIN-TOP: 0px; MARGIN-LEFT: 0px; MARGIN-RIGHT: 0px"><!-- 52_302903_e11415f126781bf -->
<TABLE style="FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif" id=Table_01
border=0 cellSpacing=0 cellPadding=0 width="99.99%">
<TBODY>
<TR>
<TD vAlign=top background=cid:__2@Foxmail.net><IMG
src="cid:__0@Foxmail.net" width=138 height=1></TD>
<TD vAlign=top background=cid:__3@Foxmail.net> </TD>
<TD vAlign=top background=cid:__4@Foxmail.net><IMG
src="cid:__1@Foxmail.net" width=80 height=60></TD></TR>
<TR>
<TD vAlign=top background=cid:__5@Foxmail.net> </TD>
<TD
style="PADDING-BOTTOM: 70px; PADDING-LEFT: 30px; PADDING-RIGHT: 0px; HEIGHT: 300px; PADDING-TOP: 0px"
vAlign=top background=cid:__3@Foxmail.net width="100%">
<TABLE
style="MARGIN-TOP: 0px; MARGIN-LEFT: 0px; cellpadding: 0px; cellspacing: 0px"
width="100%">
<TBODY>
<TR>
<TD style="LINE-HEIGHT: 160%" vAlign=top>
<DIV
style="WIDTH: 100%; WHITE-SPACE: normal; WORD-BREAK: break-all"><FONT
color=#265800 size=2 face=Verdana>
<DIV><FONT color=#000000>Please add " dtype netcdf" in your ctl file
and use "open" not xdfopen.</FONT></DIV>
<DIV><FONT color=#000000>I hope it will work.</FONT></DIV>
<DIV><FONT color=#000000>have a nice day!</FONT></DIV>
<DIV><FONT color=#c0c0c0>2012-05-10 </FONT></DIV>
<DIV align=left>
<HR style="WIDTH: 122px; HEIGHT: 2px" align=left SIZE=2>
</DIV>
<DIV><FONT color=#c0c0c0><SPAN>
<DIV>
<DIV><FONT size=2 face=Verdana></FONT><FONT size=4
face="Franklin Gothic Book">Muhammad Afzaal Karori</FONT></DIV>
<DIV><FONT face="Franklin Gothic Book">Institute of Atmospheric
Physics</FONT></DIV>
<DIV><FONT face="Franklin Gothic Book">Chinese Academy of
Sciences</FONT></DIV>
<DIV><FONT face="Franklin Gothic Book">Beijing - P.R.
China</FONT></DIV>
<DIV> </DIV></DIV></SPAN></FONT></DIV>
<HR>
<DIV><STRONG>发件人:</STRONG> Sudev Das M P </DIV>
<DIV><STRONG>发送时间:</STRONG> 2012-05-10 18:44:54 </DIV>
<DIV><STRONG>收件人:</STRONG> GrADS Users Forum </DIV>
<DIV><STRONG>抄送:</STRONG> </DIV>
<DIV><STRONG>主题:</STRONG> [gradsusr] Error opening NetCDF file
</DIV></FONT>
<DIV> </DIV>
<DIV>
<DIV>Hai,</DIV>
<DIV></DIV>
<DIV>I have taken a netcdf data file from the following link:</DIV>
<DIV>http://www.nio.org/index/option/com_nomenu/task/show/tid/2/sid/18/id/229</DIV>
<DIV></DIV>
<DIV>While I try to open this file in GrADS I got the following error message:</DIV>
<DIV>====================================================</DIV>
<DIV>ga-> sdfopen nioa_climatology_monthly_temp_salt_nio.nc</DIV>
<DIV>Scanning self-describing file: nioa_climatology_monthly_temp_salt_nio.nc</DIV>
<DIV>SDF Error: 365 day calendars are no longer supported by sdfopen.</DIV>
<DIV> To open this file with GrADS, use a descriptor file with</DIV>
<DIV> a complete TDEF entry and OPTIONS 365_day_calendar.</DIV>
<DIV>====================================================</DIV>
<DIV></DIV>
<DIV>Then I made a descriptor file as given below:</DIV>
<DIV>-----------------------------------------------------------------</DIV>
<DIV>DSET ^nioa_climatology_monthly_temp_salt_nio.nc</DIV>
<DIV>UNDEF -1.e+34f</DIV>
<DIV>XDEF 90 LINEAR 30.5 1</DIV>
<DIV>YDEF 70 LINEAR -29.5 1</DIV>
<DIV>ZDEF 24 LEVELS 0 10 20 30 50 75 100 125 150 200 250 300 400 500 600</DIV>
<DIV>700 800 900 1000 1100 1200 1300 1400 1500</DIV>
<DIV>TDEF 12 LINEAR 1Jan9999 1mo</DIV>
<DIV>OPTIONS 365_day_calendar</DIV>
<DIV>VARS 2</DIV>
<DIV>temp 24 0 NIOA climatology monthly temp (degC) NIO</DIV>
<DIV>salt 24 0 NIOA climatology monthly salt (psu) NIO</DIV>
<DIV>ENDVARS</DIV>
<DIV>--------------------------------------------------------------</DIV>
<DIV></DIV>
<DIV>Then I tried to open it using "xdfopen" command, but then I got the</DIV>
<DIV>following message:</DIV>
<DIV>======================================================</DIV>
<DIV>ga-> xdfopen nioa_climatology_monthly_temp_salt_nio.ctl</DIV>
<DIV>Scanning Descriptor File: nioa_climatology_monthly_temp_salt_nio.ctl</DIV>
<DIV>gadxdf error: Missing or invalid dimension size.</DIV>
<DIV> --> The invalid description file record is:</DIV>
<DIV> --> xdef 90 linear 30.5 1</DIV>
<DIV> The data file was not opened.</DIV>
<DIV>======================================================</DIV>
<DIV></DIV>
<DIV>Please give me your valuable suggestion to solve this problem.</DIV>
<DIV></DIV>
<DIV>The complete details of the data file is given below:</DIV>
<DIV></DIV>
<DIV>regards,</DIV>
<DIV>sudev</DIV>
<DIV></DIV>
<DIV>========================================================</DIV>
<DIV>ncdump -h nioa_climatology_monthly_temp_salt_nio.nc</DIV>
<DIV>netcdf nioa_climatology_monthly_temp_salt_nio {</DIV>
<DIV>dimensions:</DIV>
<DIV> LONGITUDE = 90 ;</DIV>
<DIV> LATITUDE = 70 ;</DIV>
<DIV> DEPTH = 24 ;</DIV>
<DIV> TIME = UNLIMITED ; // (12 currently)</DIV>
<DIV>variables:</DIV>
<DIV> double LONGITUDE(LONGITUDE) ;</DIV>
<DIV> LONGITUDE:units = "degrees_east" ;</DIV>
<DIV> LONGITUDE:modulo = 360. ;</DIV>
<DIV> LONGITUDE:point_spacing = "even" ;</DIV>
<DIV> LONGITUDE:axis = "X" ;</DIV>
<DIV> double LATITUDE(LATITUDE) ;</DIV>
<DIV> LATITUDE:units = "degrees_north" ;</DIV>
<DIV> LATITUDE:point_spacing = "even" ;</DIV>
<DIV> LATITUDE:axis = "Y" ;</DIV>
<DIV> double DEPTH(DEPTH) ;</DIV>
<DIV> DEPTH:positive = "down" ;</DIV>
<DIV> DEPTH:point_spacing = "uneven" ;</DIV>
<DIV> DEPTH:axis = "Z" ;</DIV>
<DIV> double TIME(TIME) ;</DIV>
<DIV> TIME:units = "MONTHS(NOLEAP) since 0000-01-01 00:00:00" ;</DIV>
<DIV> TIME:time_origin = "01-JAN-0000 00:00:00" ;</DIV>
<DIV> TIME:calendar = "NOLEAP" ;</DIV>
<DIV> TIME:modulo = 12. ;</DIV>
<DIV> TIME:axis = "T" ;</DIV>
<DIV> float TEMP(TIME, DEPTH, LATITUDE, LONGITUDE) ;</DIV>
<DIV> TEMP:units = "degreeC" ;</DIV>
<DIV> TEMP:missing_value = -1.e+34f ;</DIV>
<DIV> TEMP:_FillValue = -1.e+34f ;</DIV>
<DIV> TEMP:long_name = "Temperature" ;</DIV>
<DIV> float SALT(TIME, DEPTH, LATITUDE, LONGITUDE) ;</DIV>
<DIV> SALT:units = "PSU" ;</DIV>
<DIV> SALT:missing_value = -1.e+34f ;</DIV>
<DIV> SALT:_FillValue = -1.e+34f ;</DIV>
<DIV> SALT:long_name = "Salinity" ;</DIV>
<DIV>...................................................................................................................................</DIV>
<DIV>..................................................................................................................................</DIV>
<DIV>LONGITUDE = 30.5, 31.5, 32.5, 33.5, 34.5, 35.5, 36.5, 37.5, 38.5, 39.5,</DIV>
<DIV> 40.5, 41.5, 42.5, 43.5, 44.5, 45.5, 46.5, 47.5, 48.5, 49.5, 50.5, 51.5,</DIV>
<DIV> 52.5, 53.5, 54.5, 55.5, 56.5, 57.5, 58.5, 59.5, 60.5, 61.5, 62.5, 63.5,</DIV>
<DIV> 64.5, 65.5, 66.5, 67.5, 68.5, 69.5, 70.5, 71.5, 72.5, 73.5, 74.5, 75.5,</DIV>
<DIV> 76.5, 77.5, 78.5, 79.5, 80.5, 81.5, 82.5, 83.5, 84.5, 85.5, 86.5, 87.5,</DIV>
<DIV> 88.5, 89.5, 90.5, 91.5, 92.5, 93.5, 94.5, 95.5, 96.5, 97.5, 98.5, 99.5,</DIV>
<DIV> 100.5, 101.5, 102.5, 103.5, 104.5, 105.5, 106.5, 107.5, 108.5, 109.5,</DIV>
<DIV> 110.5, 111.5, 112.5, 113.5, 114.5, 115.5, 116.5, 117.5, 118.5, 119.5 ;</DIV>
<DIV></DIV>
<DIV> LATITUDE = -29.5, -28.5, -27.5, -26.5, -25.5, -24.5, -23.5, -22.5, -21.5,</DIV>
<DIV> -20.5, -19.5, -18.5, -17.5, -16.5, -15.5, -14.5, -13.5, -12.5, -11.5,</DIV>
<DIV> -10.5, -9.5, -8.5, -7.5, -6.5, -5.5, -4.5, -3.5, -2.5, -1.5, -0.5, 0.5,</DIV>
<DIV> 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5,</DIV>
<DIV> 14.5, 15.5, 16.5, 17.5, 18.5, 19.5, 20.5, 21.5, 22.5, 23.5, 24.5, 25.5,</DIV>
<DIV> 26.5, 27.5, 28.5, 29.5, 30.5, 31.5, 32.5, 33.5, 34.5, 35.5, 36.5, 37.5,</DIV>
<DIV> 38.5, 39.5 ;</DIV>
<DIV></DIV>
<DIV> DEPTH = 0, 10, 20, 30, 50, 75, 100, 125, 150, 200, 250, 300, 400, 500, 600,</DIV>
<DIV> 700, 800, 900, 1000, 1100, 1200, 1300, 1400, 1500 ;</DIV>
<DIV></DIV>
<DIV> TIME = 0.46027397260274, 1.47945205479452, 2.4, 3.41917808219178,</DIV>
<DIV> 4.40547945205479, 5.42465753424658, 6.41095890410959, 7.43013698630137,</DIV>
<DIV> 8.44931506849315, 9.43561643835617, 10.4547945205479, 11.441095890411 ;</DIV>
<DIV>================================================================</DIV>
<DIV>_______________________________________________</DIV>
<DIV>gradsusr mailing list</DIV>
<DIV>gradsusr@gradsusr.org</DIV>
<DIV>http://gradsusr.org/mailman/listinfo/gradsusr</DIV></DIV></DIV></TD></TR></TBODY></TABLE></TD>
<TD vAlign=top background=cid:__4@Foxmail.net
width=47> </TD></TR></TBODY></TABLE></BODY></HTML>