<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:10pt"><div class="" style=""><span class="" style="">Hi Dave,</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;" class=""><span class="" style="">Thank you very much for your quick reply. Its work but I am getting only string. not value</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;" class=""><span class="" style=""><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;" class=""><span class="" style="">any suggestion</span></div><div style="color: rgb(0, 0, 0); font-size:
13px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;" class=""><span class="" style="">regards</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;" class=""><span class="" style="">azizul</span></div><div style="background-color: transparent;" class="">ncks: ERROR received 0 filenames; need at least one</div><div style="background-color: transparent;" class="">ncks Command line options cheatsheet (full details at http://nco.sf.net/nco.html#ncks):</div><div style="background-color: transparent;" class="">ncks [-3] [-4] [-5] [-6] [-7] [-A] [-a] [-b fl_bnr] [--bfr sz] [-C] [-c] [--cdl] [--cnk_byt sz] [--cnk_dmn nm,sz] [--cnk_map map] [--cnk_plc plc] [--cnk_scl sz] [-D nco_dbg_lvl] [-d ...] [-F] [--fix_rec_dmn dim] [--fl_fmt fmt] [-G grp:lvl] [-g ...] [-H] [-h] [--hdn] [--hdr_pad
nbr] [-L lvl] [-l path] [-M] [-m] [--md5_dgs] [--md5_wrt] [--mk_rec_dmn dim] [--msa] [--no_blank] [--no_tmp_fl] [-O] [-o out.nc] [-P] [-p path] [-Q] [-q] [-R] [-r] [--rad] [--ram_all] [-s format] [-u] [--unn] [-v ...] [-X box] [-x] [--xml] [--xml_no_loc] [--xml_spr_chr sng] [--xml_spr_nmr sng] in.nc [[out.nc]]</div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;" class="">-3, --3, --fl_fmt=classic<span class="" style="white-space:pre">        </span>Output file in netCDF3 CLASSIC (32-bit offset) storage format</div><div style="background-color: transparent;" class="">-4, --4, --netcdf4<span class="" style="white-space:pre">                </span>Output file in netCDF4 (HDF5) storage format</div><div style="background-color: transparent;" class="">-5, --5, <span class="" style="white-space:pre">                </span>Print alphabetically by group then variable</div><div style="background-color: transparent;"
class="">-6, --6, --64, --fl_fmt=64bit<span class="" style="white-space:pre">        </span>Output file in netCDF3 64-bit offset storage format</div><div style="background-color: transparent;" class="">-7, --7, --fl_fmt=netcdf4_classic<span class="" style="white-space:pre">        </span>Output file in netCDF4 CLASSIC format (3+4=7)</div><div style="background-color: transparent;" class="">-A, --apn, --append<span class="" style="white-space:pre">        </span>Append to existing output file, if any</div><div style="background-color: transparent;" class="">-a, --abc, --alphabetize<span class="" style="white-space:pre">        </span>Disable alphabetization of extracted variables</div><div style="background-color: transparent;" class="">-b, --fl_bnr, --binary-file fl_bnr<span class="" style="white-space:pre">        </span>Unformatted binary file to write</div><div style="background-color: transparent;" class=""> --bfr_sz, --buffer_size sz<span class=""
style="white-space:pre">        </span>Buffer size to open files with</div><div style="background-color: transparent;" class="">-C, --nocoords<span class="" style="white-space:pre">                </span>Associated coordinate variables should not be processed</div><div style="background-color: transparent;" class="">-c, --crd, --coords<span class="" style="white-space:pre">        </span>Coordinate variables will all be processed</div><div style="background-color: transparent;" class=""> --cdl<span class="" style="white-space:pre">                </span>Print CDL (netCDF lingua franca used by ncdump/ncgen)</div><div style="background-color: transparent;" class=""> --cnk_dmn, --chunk_dimension nm,sz<span class="" style="white-space:pre">        </span>Chunksize of dimension nm is sz</div><div style="background-color: transparent;" class=""> --cnk_map, --chunk_map map<span class="" style="white-space:pre">                </span>Chunking map
[dmn,lfp,prd,rd1,rew,scl,xpl,xst]</div><div style="background-color: transparent;" class=""> --cnk_plc, --chunk_policy plc<span class="" style="white-space:pre">        </span>Chunking policy [all,g2d,g3d,xpl,xst,uck]</div><div style="background-color: transparent;" class=""> --cnk_scl, --chunk_scalar sz<span class="" style="white-space:pre">        </span>Chunksize scalar (for all dimensions)</div><div style="background-color: transparent;" class="">-D, --dbg_lvl, --debug-level lvl<span class="" style="white-space:pre">        </span>Debug-level is lvl</div><div style="background-color: transparent;" class="">-d, --dmn, --dimension dim,[min][,[max]][,[stride]] Dimension's limits and stride in hyperslab</div><div style="background-color: transparent;" class="">-F, --ftn, --fortran<span class="" style="white-space:pre">        </span>Fortran indexing conventions (1-based) for I/O</div><div style="background-color: transparent;" class="">
--fix_rec_dmn dim<span class="" style="white-space:pre">        </span>Change dimension dim (or all) to fixed dimension in output file</div><div style="background-color: transparent;" class=""> --fl_fmt, --file_format fmt<span class="" style="white-space:pre">        </span>File format [classic,64bit,netcdf4,netcdf4_classic]</div><div style="background-color: transparent;" class="">-G, --gpe [grp_nm][:[lvl]]<span class="" style="white-space:pre">        </span>Group Path Editing path, levels to replace</div><div style="background-color: transparent;" class="">-g, --grp grp1[,grp2[...]] Group(s) to process (regular expressions supported)</div><div style="background-color: transparent;" class="">-H, --data, --hieronymus<span class="" style="white-space:pre">        </span>Toggle printing data</div><div style="background-color: transparent;" class="">-h, --hst, --history<span class="" style="white-space:pre">        </span>Do not append to "history" global attribute</div><div
style="background-color: transparent;" class=""> --hdn, --hidden<span class="" style="white-space:pre">        </span>Print hidden (aka special) attributes</div><div style="background-color: transparent;" class=""> --hdr_pad, --header_pad<span class="" style="white-space:pre">        </span>Pad output header with nbr bytes</div><div style="background-color: transparent;" class="">-L, --dfl_lvl, --deflate lvl<span class="" style="white-space:pre">        </span>Lempel-Ziv deflation (lvl=0..9) for netCDF4 output</div><div style="background-color: transparent;" class="">-l, --lcl, --local path<span class="" style="white-space:pre">        </span>Local storage path for remotely-retrieved files</div><div style="background-color: transparent;" class="">-M, --Mtd, --Metadata<span class="" style="white-space:pre">        </span>Toggle printing global metadata</div><div style="background-color: transparent;" class="">-m, --mtd, --metadata<span class=""
style="white-space:pre">        </span>Toggle printing variable metadata</div><div style="background-color: transparent;" class=""> --mk_rec_dmn dim<span class="" style="white-space:pre">        </span>Define dim as record dimension in output file</div><div style="background-color: transparent;" class=""> --no_blank<span class="" style="white-space:pre">                </span>Print numeric missing values instead of blanks (underscores)</div><div style="background-color: transparent;" class=""> --no_tmp_fl<span class="" style="white-space:pre">                </span>Do not write output to temporary file</div><div style="background-color: transparent;" class="">-o, --output, --fl_out fl_out<span class="" style="white-space:pre">        </span>Output file name (or use last positional argument)</div><div style="background-color: transparent;" class="">-O, --ovr, --overwrite<span class="" style="white-space:pre">        </span>Overwrite existing output file, if any</div><div
style="background-color: transparent;" class="">-P, --prn, --print<span class="" style="white-space:pre">        </span>Print data, metadata, and units. Abbreviation for -C -H -M -m -u.</div><div style="background-color: transparent;" class="">-p, --pth, --path path<span class="" style="white-space:pre">        </span>Path prefix for all input filenames</div><div style="background-color: transparent;" class="">-Q, <span class="" style="white-space:pre">                        </span>Toggle printing of dimension indices and coordinate values</div><div style="background-color: transparent;" class="">-q, --quiet<span class="" style="white-space:pre">                </span>Turn off all printing to screen</div><div style="background-color: transparent;" class="">-R, --rtn, --retain<span class="" style="white-space:pre">        </span>Retain remotely-retrieved files after use</div><div style="background-color: transparent;" class="">-r, --revision, --vrs, --version<span class="" style="white-space:pre">
        </span>Compile-time configuration and/or program version</div><div style="background-color: transparent;" class=""> --orphan, --rph_dmn<span class="" style="white-space:pre">        </span>Retain or print all (including orphaned) dimensions</div><div style="background-color: transparent;" class=""> --ram_all, --diskless_all<span class="" style="white-space:pre">        </span>Open netCDF3 files and create output files in RAM</div><div style="background-color: transparent;" class="">-s, --sng_fmt, --string format<span class="" style="white-space:pre">        </span>String format for text output</div><div style="background-color: transparent;" class="">-u, --units<span class="" style="white-space:pre">                </span>Toggle printing units of variables, if any</div><div style="background-color: transparent;" class=""> --unn, --union<span class="" style="white-space:pre">        </span>Select union of specified groups and variables</div><div
style="background-color: transparent;" class="">-v, --variable var1[,var2[...]] Variable(s) to process (regular expressions supported)</div><div style="background-color: transparent;" class="">-X, --auxiliary lon_min,lon_max,lat_min,lat_max<span class="" style="white-space:pre">        </span>Auxiliary coordinate bounding box</div><div style="background-color: transparent;" class="">-x, --xcl, --exclude<span class="" style="white-space:pre">        </span>Extract all variables EXCEPT those specified with -v</div><div style="background-color: transparent;" class=""> --xml<span class="" style="white-space:pre">                </span>Print XML (NcML, netCDF Markup Language)</div><div style="background-color: transparent;" class=""> --xml_no_location<span class="" style="white-space:pre">        </span>Omit NcML location element</div><div style="background-color: transparent;" class=""> --xml_spr_chr sng<span class="" style="white-space:pre">
        </span>Separator for NcML character types</div><div style="background-color: transparent;" class=""> --xml_spr_nmr sng<span class="" style="white-space:pre">        </span>Separator for NcML numeric types</div><div style="background-color: transparent;" class="">in.nc<span class="" style="white-space:pre">                        </span>Input file name</div><div style="background-color: transparent;" class="">out.nc<span class="" style="white-space:pre">                        </span>Output file name (or use -o switch)</div><div style="background-color: transparent;" class=""><br class="" style=""></div><div style="background-color: transparent;" class="">Eight ways to find more help on ncks and/or NCO:</div><div style="background-color: transparent;" class="">1. Examples: http://nco.sf.net/nco.html#xmp_ncks</div><div style="background-color: transparent;" class="">2. Ref. manual: http://nco.sf.net/nco.html#ncks</div><div style="background-color: transparent;"
class="">3. User's Guide: http://nco.sf.net#RTFM</div><div style="background-color: transparent;" class="">4. Manual pages: 'man ncks', 'man nco', ...</div><div style="background-color: transparent;" class="">5. Homepage: http://nco.sf.net</div><div style="background-color: transparent;" class="">6. FAQ: http://nco.sf.net#FAQ</div><div style="background-color: transparent;" class="">7. Help Forum: http://sf.net/projects/nco/forums/forum/9830</div><div style="background-color: transparent;" class="">8. Publications: http://nco.sf.net#pub</div><div style="background-color: transparent;" class=""><span class="" style=""></span></div><div style="background-color: transparent;" class="">Post questions, suggestions, patches at http://sf.net/projects/nco</div><div class="" style=""><br class="" style=""></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div
style="font-family: times new roman, new york, times, serif; font-size: 10pt;" class=""> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 12pt;" class=""> <div dir="ltr" class="" style=""> <font size="2" face="Arial" class="" style=""> On Tuesday, 16 September 2014, 14:47, Dave Allured - NOAA Affiliate <dave.allured@noaa.gov> wrote:<br class="" style=""> </font> </div> <br class="" style=""><br class="" style=""> <div class="" style=""><div id="yiv3228625567" class="" style=""><div class="" style=""><div dir="ltr" class="" style="">Azizul,<br clear="none" class="" style=""><br clear="none" class="" style="">This command uses Unix output redirection. You need a "greater than" sign in front of the output file name, like this:<br clear="none" class="" style=""><br clear="none" class="" style="">ncks -s '%e \n' -C -v <a rel="nofollow" shape="rect" target="_blank"
href="http://pr_day_cnrm-cm5_mean_sa.nc/" class="" style="">pr_day_cnrm-cm5_mean_sa.nc</a> > pr_day_cnrm-cm5_mean_sa.txt<div class="" style=""><br clear="none" class="" style=""></div><div class="" style="">--Dave<br clear="none" class="" style=""><div class="" id="yiv3228625567yqtfd89423" style=""><br clear="none" class="" style="">On Tue, Sep 16, 2014 at 2:18 PM, azizul haque <<a rel="nofollow" shape="rect" ymailto="mailto:haque.azizul320@yahoo.com" target="_blank" href="mailto:haque.azizul320@yahoo.com" class="" style="">haque.azizul320@yahoo.com</a>> wrote:<br clear="none" class="" style="">><br clear="none" class="" style="">> Hi All,<br clear="none" class="" style="">> I am trying to convert nc time dimension to text using<br clear="none" class="" style="">><br clear="none" class="" style="">> ***ncks -s '%e \n' -C -v <a rel="nofollow" shape="rect" target="_blank" href="http://pr_day_cnrm-cm5_mean_sa.nc/" class=""
style="">pr_day_cnrm-cm5_mean_sa.nc</a> pr_day_cnrm-cm5_mean_sa.txt***<br clear="none" class="" style="">><br clear="none" class="" style="">> and getting following error<br clear="none" class="" style="">><br clear="none" class="" style="">> ***ERROR file pr_day_cnrm-cm5_mean_sa.txt neither exists locally nor matches remote filename patterns***<br clear="none" class="" style="">><br clear="none" class="" style="">> Appreciated for your kind help<br clear="none" class="" style="">> regards<br clear="none" class="" style="">> Azizul<br clear="none" class="" style=""></div></div></div></div></div><br class="" style=""><br class="" style=""></div> </div> </div> </div> </div></body></html>