<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1418220261327_30176" dir="ltr">Dear Dennis,</div><div id="yui_3_16_0_1_1418220261327_30173"><br><span></span></div><div dir="ltr" id="yui_3_16_0_1_1418220261327_30174"><span id="yui_3_16_0_1_1418220261327_30175">Thanks so much, and it works greatly.</span></div><div id="yui_3_16_0_1_1418220261327_30177" dir="ltr"><br><span id="yui_3_16_0_1_1418220261327_30175"></span></div><div id="yui_3_16_0_1_1418220261327_30522" dir="ltr"><span id="yui_3_16_0_1_1418220261327_30175">Cheers,</span></div><div id="yui_3_16_0_1_1418220261327_30523" dir="ltr"><span id="yui_3_16_0_1_1418220261327_30175">Mark</span></div> <div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font face="Arial" size="2"> On Wednesday, December 10, 2014 4:18 PM, Dennis Shea <shea@ucar.edu> wrote:<br> </font> </div> <br><br> <div class="y_msg_container"><div id="yiv2555642576"><div><div dir="ltr"><div><div><a rel="nofollow" shape="rect" target="_blank" href="http://www.ncl.ucar.edu/Document/Manuals/language_man.pdf">http://www.ncl.ucar.edu/Document/Manuals/language_man.pdf</a><br clear="none"><br clear="none"></div>See the section: Writing scalars to netCDF<br clear="none"><br clear="none">=========<br clear="none"><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 clear="none"></div><br clear="none"><font size="4">rotated_pole = ...<br clear="none"></font></div><font size="4">rotated_pole!0 = "ncl_scalar"<br clear="none"></font> </div><div class="yiv2555642576gmail_extra"><br clear="none"><div class="yiv2555642576gmail_quote">On Wed, Dec 10, 2014 at 7:23 AM, Mark Chan <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:cym263@yahoo.com" target="_blank" href="mailto:cym263@yahoo.com">cym263@yahoo.com</a>></span> wrote:<br clear="none"><blockquote class="yiv2555642576gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv2555642576yqt6877599248" id="yiv2555642576yqt43973"><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 clear="none"></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 clear="none"></div><div dir="ltr"><br clear="none"></div><div dir="ltr"> char rotated_pole ;<br clear="none"> rotated_pole:grid_mapping_name = "rotated_latitude_longitude" ;<br clear="none"> rotated_pole:grid_north_pole_latitude = 90.f ;<br clear="none"> rotated_pole:grid_north_pole_longitude = -180.f ;</div><div dir="ltr"><br clear="none"></div><div dir="ltr">Thanks very much in advance!<br clear="none"></div><div dir="ltr"><br clear="none"></div><div dir="ltr">Best regards,</div><div dir="ltr">Mark<br clear="none"></div><div dir="ltr"><br clear="none"></div><div dir="ltr">===netCDF metadata generated by NCL===<br clear="none"></div><div>dimensions:<br clear="none"> time = UNLIMITED ; // (12 currently)<br clear="none"> rlon = 213 ;<br clear="none"> rlat = 220 ;<br clear="none"> skip = 1 ;<br clear="none"> bnds = 2 ;<br clear="none"> ncl5 = 1 ;<br clear="none">variables:<br clear="none"> double time(time) ;<br clear="none"> time:long_name = "time" ;<br clear="none"> time:standard_name = "time" ;<br clear="none"> time:units = "days since 1949-12-01 00:00:00" ;<br clear="none"> time:calendar = "standard" ;<br clear="none"> time:axis = "T" ;<br clear="none"> time:bounds = "time_bnds" ;<br clear="none"> double rlon(rlon) ;<br clear="none"> rlon:long_name = "longitude in rotated pole grid" ;<br clear="none"> rlon:standard_name = "grid_longitude" ;<br clear="none"> rlon:units = "degrees" ;<br clear="none"> rlon:axis = "X" ;<br clear="none"> double rlat(rlat) ;<br clear="none"> rlat:long_name = "latitude in rotated pole grid" ;<br clear="none"> rlat:standard_name = "grid_latitude" ;<br clear="none"> rlat:units = "degrees" ;<br clear="none"> rlat:axis = "Y" ;<br clear="none"> char rotated_pole(skip) ;<br clear="none"> rotated_pole:grid_mapping_name = "rotated_latitude_longitude" ;<br clear="none"> rotated_pole:grid_north_pole_latitude = 90.f ;<br clear="none"> rotated_pole:grid_north_pole_longitude = -180.f ;<br clear="none"> float tas(time, rlat, rlon) ;<br clear="none"> tas:long_name = "Near-Surface Air Temperature" ;<br clear="none"> tas:standard_name = "air_temperature" ;<br clear="none"> tas:units = "K" ;<br clear="none"> tas:cell_methods = "time: mean" ;<br clear="none"> tas:_FillValue = 1.e+20f ;<br clear="none"> tas:missing_value = 1.e+20f ;<br clear="none"> tas:coordinates = "lon lat height" ;<br clear="none"> double time_bnds(time, bnds) ;<br clear="none"> double height(ncl5) ;<br clear="none"> height:long_name = "height" ;<br clear="none"> height:standard_name = "height" ;<br clear="none"> height:units = "m" ;<br clear="none"> height:positive = "up" ;<br clear="none"> height:axis = "Z" ;<br clear="none"> double lon(rlat, rlon) ;<br clear="none"> lon:long_name = "longitude" ;<br clear="none"> lon:standard_name = "longitude" ;<br clear="none"> lon:units = "degrees_east" ;<br clear="none"> double lat(rlat, rlon) ;<br clear="none"> lat:long_name = "latitude" ;<br clear="none"> lat:standard_name = "latitude" ;<br clear="none"> lat:units = "degrees_north" ;<br clear="none"><br clear="none"></div><div><br clear="none"></div></div></div></div><br clear="none">_______________________________________________<br clear="none">
ncl-talk mailing list<br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div><br><br></div> </div> </div> </div> </div></body></html>