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