<div dir="ltr"><div>Dear Grads users:</div><div><br></div><div>I am attempting to plot a time series of sea surface temperatures using a .nc file. The ocean domain of the model output is in MOM4pi format with 200lat*360lon data points. GrADS won't open the file using sdfopen, so I tried xdfopen. </div>
<div><br></div><div>I have copied the ncdump as well as my .ctl file for this model. Basically, what I am asking is how to arrange the XDEF and YDEF in the .ctl file so that I can read the file, and plot the data I need over the appropriate geographical domain. If you look at the bolded part of the .ctl file, you'll see I and j where lon and lat would more typically appear. </div>
<div><br></div><div>How can I fix my .ctl file to correctly read the data?</div><div><br></div><div>Thanks,</div><div>Corey </div><div><br></div><div>DSET /stu_home/corey/tos_Omon_BNU-ESM_historical_r1i1p1_185001-200512.nc<br>
DTYPE netcdf<br>TITLE SST (C) Nino3.4<br>UNDEF 1.e20 <br><strong>XDEF i 360 linear 60 1<br>YDEF j 180 linear -90 1</strong> <br>TDEF time 1872 linear 01jan1850 1mo<br>VARS 1 <br>tos=>sst 0 t,y,x Sea Surface Temperature<br>
ENDVARS</div><div><br></div><div><br></div><div>ncdump -c tos_Omon_BNU-ESM_historical_r1i1p1_185001-200512<br>.nc<br>netcdf tos_Omon_BNU-ESM_historical_r1i1p1_185001-200512 {<br>dimensions:<br> time = UNLIMITED ; // (1872 currently)<br>
j = 200 ;<br> i = 360 ;<br> bnds = 2 ;<br> vertices = 4 ;<br>variables:<br> double time(time) ;<br> time:bounds = "time_bnds" ;<br> time:units = "days since 1850-01-01 00:00:00" ;<br>
time:calendar = "noleap" ;<br> time:axis = "T" ;<br> time:long_name = "time" ;<br> time:standard_name = "time" ;<br> double time_bnds(time, bnds) ;<br>
int j(j) ;<br> j:units = "1" ;<br> j:long_name = "cell index along second dimension" ;<br> int i(i) ;<br> i:units = "1" ;<br> i:long_name = "cell index along first dimension" ;<br>
float lat(j, i) ;<br> lat:standard_name = "latitude" ;<br> lat:long_name = "latitude coordinate" ;<br> lat:units = "degrees_north" ;<br> lat:bounds = "lat_vertices" ;<br>
float lon(j, i) ;<br> lon:standard_name = "longitude" ;<br> lon:long_name = "longitude coordinate" ;<br> lon:units = "degrees_east" ;<br> lon:bounds = "lon_vertices" ;<br>
float lat_vertices(j, i, vertices) ;<br> lat_vertices:units = "degrees_north" ;<br> float lon_vertices(j, i, vertices) ;<br> lon_vertices:units = "degrees_east" ;<br>
float tos(time, j, i) ;<br> tos:standard_name = "sea_surface_temperature" ;<br> tos:long_name = "Sea Surface Temperature" ;<br> tos:comment = "\"this may differ from \"\"surface temperature\"\" in regions of sea ice.\"" ;<br>
tos:units = "K" ;<br> tos:cell_methods = "time: mean" ;<br> tos:cell_measures = "area: areacello" ;<br> tos:history = "2013-03-12T09:10:58Z altered by CMOR: replaced missing value flag (1e+30) with standard missing value (1e+20)." ;<br>
tos:missing_value = 1.e+20f ;<br> tos:_FillValue = 1.e+20f ;<br> tos:associated_files = "baseURL: <a href="http://cmip-pcmdi.llnl.gov/CMIP5/dataLocation">http://cmip-pcmdi.llnl.gov/CMIP5/dataLocation</a> gridspecFile: gridspec_ocean_fx_BNU-ESM_historical_r0i0p0.nc areacello: areacello_fx_BNU-ESM_historical_r0i0p0.nc" ;<br>
tos:coordinates = "lat lon" ;</div><div>// global attributes:<br> :institution = "GCESS,BNU,Beijing,China" ;<br> :institute_id = "BNU" ;<br> :experiment_id = "historical" ;<br>
:source = "BNU-ESM" ;<br> :model_id = "BNU-ESM" ;<br> :forcing = "Nat,Ant" ;<br> :parent_experiment_id = "piControl" ;<br>
:parent_experiment_rip = "r1i1p1" ;<br> :branch_time = 0. ;<br> :contact = "Ji Duoying (<a href="mailto:duoyingji@bnu.edu.cn">duoyingji@bnu.edu.cn</a>)" ;<br>
:initialization_method = 1 ;<br> :physics_version = 1 ;<br> :tracking_id = "748b103b-2782-4c80-bdb6-e7c6d59449d9" ;<br> :product = "output" ;<br>
:experiment = "historical" ;<br> :frequency = "mon" ;<br> :creation_date = "2013-03-12T09:10:58Z" ;<br> :history = "2013-03-12T09:10:58Z CMOR rewrote data to comply with CF standards and CMIP5 requirements." ;<br>
:Conventions = "CF-1.4" ;<br> :project_id = "CMIP5" ;<br> :table_id = "Table Omon (26 July 2011) 7a5904e887d79e2db795ad92d85c7968" ;<br> :title = "BNU-ESM model output prepared for CMIP5 historical" ;<br>
:parent_experiment = "pre-industrial control" ;<br> :modeling_realm = "ocean" ;<br> :realization = 1 ;<br> :cmor_version = "2.7.1" ;<br>
</div></div>