[ncl-talk] bifurcation of multiple files

Geeta Geeta geetag54 at yahoo.com
Wed Jul 22 10:55:56 MDT 2020


Hi
I have data of thunderstorm days (TS) (5000) for a station for example
1983 05 26
1985 05 14
1985 05 15
1985 05 27
1985 05 30
1985 05 31
1986 05 01
Pls note that there are about 5-6 days of thunderstorm in a month but upper air data is for the entire month

I also have the radio-sonde data for the entire month into separate files (jul95_10.out). which look like
-rw-rw-r-- 1 aditya aditya 1235 Jul 21 23:21 jun85_4.out
-rw-rw-r-- 1 aditya aditya 2687 Jul 21 23:21 jun85_5.out
-rw-rw-r-- 1 aditya aditya 2324 Jul 21 23:21 jun85_6.out
-rw-rw-r-- 1 aditya aditya 2566 Jul 21 23:21 jun85_7.out
-rw-rw-r-- 1 aditya aditya 1961 Jul 21 23:21 jun85_8.out
-rw-rw-r-- 1 aditya aditya 2445 Jul 21 23:21 jun85_9.out
-rw-rw-r-- 1 aditya aditya 3655 Jul  6 20:27 sep95_10.out
-rw-rw-r-- 1 aditya aditya 3171 Jul  6 20:27 sep95_11.out
-rw-rw-r-- 1 aditya aditya 3534 Jul  6 20:27 sep95_12.out

Now I have to separate the ?????_*.out into two separate files one corresponding to Thunderstorm (TS) day and into Non TS day depending on the file filelist.ts.txt (which contains days of thunderstorm).

the code compares the dates of two files, if two files have same date then I want to write the entire file either into another directory or give it a different extension.  basically problem is coming in line 87. 

I am unable to do this part. can someone provide the hints.

thank you for this
Geeta.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: filelist.ts.txt
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200722/6d75e2df/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jul95_10.out
Type: application/octet-stream
Size: 1840 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200722/6d75e2df/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ts_nts_v1.ncl
Type: application/octet-stream
Size: 3496 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200722/6d75e2df/attachment-0001.obj>


More information about the ncl-talk mailing list