Hi Claudio,
I have never tried to use nco for this purpose and I don’t know if it is
possible.
There are multiple other options:
- using Python with PyNIO or netCDF4-python (my preferred solution)
- use C or Fortran and the appropriate netCDF API (bit of an overkill)
- (brute force and not really recommended):
- ncdump met_em.d01.2016-05-11_06:00:00.nc <http://00.nc/> >
met_em.d01.2016-05-11_06:00:00. <http://00.nc/>txt
- edit met_em.d01.2016-05-11_06:00:00. <http://00.nc/>txt in an ASCII
editor and change date, don’t change anything else
- ncgen -o met_em.d01.2016-05-11_06:00:00.n <http://00.nc/>ew.nc
met_em.d01.2016-05-11_06:00:00. <http://00.nc/>txt
- check if CDO can do the job (in case NCO can’t)
- … possibly many more
Cheers
Dom
> On 20/02/2017, at 9:51 PM, claudiomet <claudiomet@xxxxxxxxx> wrote:
>
> Greetings users!
>
> I have a met_em file (WRF input file), when I make:
>
> "ncdump -v Times met_em.d01.2016-05-11_06:00:00.nc <http://00.nc/>"
>
> The output is:
>
> ...(lot of info...)
> data:
>
> Times =
> "2016-05-12_06:00:00" ;
> }
>
> How can I edit this met_em file, to change that "2016-05-12_06:00:00" to
> "2016-05-11_06:00:00"? (I think using NCO)
>
> Thanks in advance !
>
> --
> Claudio Cortes N.
>
> _______________________________________________
> 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/