Re: Copy Files between Directories

From: Mateus Teixeira <mateus.teixeira_at_nyahnyahspammersnyahnyah>
Date: Thu Dec 10 2009 - 10:23:11 MST

Dear Xiaoming,

You can use system function to do this, like :

dir1 = "source directory"
dir2 = "target directory"

system("cp "+dir1+string1+" "+dir2)

assuming that string1 will contain your selection criteria to copy your
files from dir1 to dir2.

Best regards,

Mateus

2009/12/10 Xiaoming Sun <xiaoming.sun@duke.edu>

>
> Dear all,
>
> Is there any function available in NCL to copy files from one directory to
> another directory?
>
> For example, I have a bunch of NetCDF files, after some judging criteria, I
> will just select some of them and copy them to another directory.
>
> Any help will be appreciated,
>
> Thanks,
>
> Xiaoming
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>

-- 
Mateus da Silva Teixeira
Meteorologista
Instituto de Pesquisas Meteorológicas - IPMet
Universidade Estadual Paulista - UNESP
Av. Luis Edmundo Carrijo Coube, 14-01 - Cx. Postal 281 - CEP 17033-360
Bauru - SP - Brasil
Fone: +55 14 3103-6030 / fax: 3203-3649
Registered Linux User #466740 (http://counter.li.org/)

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Dec 10 10:23:28 2009

This archive was generated by hypermail 2.1.8 : Thu Dec 17 2009 - 17:15:52 MST