<div dir="ltr"><div><div><a href="http://www.ncl.ucar.edu/Document/Manuals/language_man.pdf">http://www.ncl.ucar.edu/Document/Manuals/language_man.pdf</a><br><br></div>See the section: Writing scalars to netCDF<br><br>=========<br><div style="font-size:18px;font-family:monospace">height = ...</div><div style="font-size:18px;font-family:monospace">height!0 = "ncl_scalar" ; <=== 'special' name<br></div><br><font size="4">rotated_pole = ...<br></font></div><font size="4">rotated_pole!0 = "ncl_scalar"<br></font> </div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 10, 2014 at 7:23 AM, Mark Chan <span dir="ltr"><<a href="mailto:cym263@yahoo.com" target="_blank">cym263@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div dir="ltr">Dear NCL group,</div><div dir="ltr"><br></div><div dir="ltr">In the below is about the metadata of a netCDF file, in which each of the variables has the dimension info such as "bnds = 2". Is it any possible in NCL scripts that some dimension info could be omitted such as "skip" and "ncl5", so the variable "rotated_pole" would be as: ("ncl5" and "skip" won't show up)<br></div><div dir="ltr"><br></div><div dir="ltr"> char rotated_pole ;<br> rotated_pole:grid_mapping_name = "rotated_latitude_longitude" ;<br> rotated_pole:grid_north_pole_latitude = 90.f ;<br> rotated_pole:grid_north_pole_longitude = -180.f ;</div><div dir="ltr"><br></div><div dir="ltr">Thanks very much in advance!<br></div><div dir="ltr"><br></div><div dir="ltr">Best regards,</div><div dir="ltr">Mark<br></div><div dir="ltr"><br></div><div dir="ltr">===netCDF metadata generated by NCL===<br></div><div>dimensions:<br> time = UNLIMITED ; // (12 currently)<br> rlon = 213 ;<br> rlat = 220 ;<br> skip = 1 ;<br> bnds = 2 ;<br> ncl5 = 1 ;<br>variables:<br> double time(time) ;<br> time:long_name = "time" ;<br> time:standard_name = "time" ;<br> time:units = "days since 1949-12-01 00:00:00" ;<br> time:calendar = "standard" ;<br> time:axis = "T" ;<br> time:bounds = "time_bnds" ;<br> double rlon(rlon) ;<br> rlon:long_name = "longitude in rotated pole grid" ;<br> rlon:standard_name = "grid_longitude" ;<br> rlon:units = "degrees" ;<br> rlon:axis = "X" ;<br> double rlat(rlat) ;<br> rlat:long_name = "latitude in rotated pole grid" ;<br> rlat:standard_name = "grid_latitude" ;<br> rlat:units = "degrees" ;<br> rlat:axis = "Y" ;<br> char rotated_pole(skip) ;<br> rotated_pole:grid_mapping_name = "rotated_latitude_longitude" ;<br> rotated_pole:grid_north_pole_latitude = 90.f ;<br> rotated_pole:grid_north_pole_longitude = -180.f ;<br> float tas(time, rlat, rlon) ;<br> tas:long_name = "Near-Surface Air Temperature" ;<br> tas:standard_name = "air_temperature" ;<br> tas:units = "K" ;<br> tas:cell_methods = "time: mean" ;<br> tas:_FillValue = 1.e+20f ;<br> tas:missing_value = 1.e+20f ;<br> tas:coordinates = "lon lat height" ;<br> double time_bnds(time, bnds) ;<br> double height(ncl5) ;<br> height:long_name = "height" ;<br> height:standard_name = "height" ;<br> height:units = "m" ;<br> height:positive = "up" ;<br> height:axis = "Z" ;<br> double lon(rlat, rlon) ;<br> lon:long_name = "longitude" ;<br> lon:standard_name = "longitude" ;<br> lon:units = "degrees_east" ;<br> double lat(rlat, rlon) ;<br> lat:long_name = "latitude" ;<br> lat:standard_name = "latitude" ;<br> lat:units = "degrees_north" ;<br><br></div><div><br></div></div></div><br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>