Re: [netcdfgroup] Edit netcdf file to change date in met_em file (WRF)

  • To: Charlie Zender <zender@xxxxxxx>
  • Subject: Re: [netcdfgroup] Edit netcdf file to change date in met_em file (WRF)
  • From: claudiomet <claudiomet@xxxxxxxxx>
  • Date: Wed, 22 Feb 2017 15:16:21 -0300
Thanks to all !

2017-02-21 19:29 GMT-03:00 Charlie Zender <zender@xxxxxxx>:

> ncap2 -s 'Times[dimension_name]="2016-05-11_06:00:00   "' in.nc out.nc
>
> For netCDF3 character arrays, pad the value to the size of the
> underlying character dimension_name (shown by spaces above).
> netCDF4 strings have no such restriction and this will work:
>
> ncap2 -4 -s 'Times="2016-05-11_06:00:00"s' in.nc out.nc
>
> Note the "s" for "string" after the end-quote.
>
> Post followups, if any, here: http://sf.net/p/nco/discussion/9830
>
> cz
> --
> Charlie Zender, Earth System Sci. & Computer Sci.
> University of California, Irvine 949-891-2429 )'(
>
>
> _______________________________________________
> NOTE: All exchanges posted to Unidata maintained email lists are
> recorded in the Unidata inquiry tracking system and made publicly
> available through the web.  Users who post to any of the lists we
> maintain are reminded to remove any personal information that they
> do not want to be made public.
>
>
> netcdfgroup mailing list
> netcdfgroup@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe,  visit:
> http://www.unidata.ucar.edu/mailing_lists/
>



-- 

*Claudio Cortes N.*
Project Engineer R&D


*MICOMO S.A.+56 (2) 22400516+56 (9) 65871064*
ccortes@xxxxxxxxx
www.micomo.cl
<http://www.micomo.cl/>Antonio Rabat Sur 6165, Vitacura
  • 2017 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: