[ncl-talk] help required

Muhammad Omer Mughal m.mughal1 at postgrad.curtin.edu.au
Tue May 12 06:18:28 MDT 2015


Hi All


I tried to split the wrf out file using the following script.


#!/bin/bash

n=136

for ((i=1; i<=n; i++)){
ncks -O -d Time,$i wrfout_d01_2009-07-08_00:00:00.nc  $i.nc
}

I am now trying to rename the file similar to  wrfout_d01_2009-07-08_00:00:00.nc .I am now trying to renam all the files such that I am able to update date and hour in the wrf output file format.I am using the following for it.

foreach file('ls *.nc')
? ncra -n 136,5,3  wrfout_d01_2009-07-0*.nc  wrfout_d01_2009-07-08_00:00:00.nc
? end
but this is'nt working .I also wrote the attached ncl script and tried to link that to csh but that also didn't worked . I would appreciate if some one can help me urgently.


?
Muhammad Omer Mughal
MSc BSc Mechanical Engineering
PhD  Research Scholar
Remote Sensing and Satellite Research Group
Department of Imaging and Applied Physics
Curtin University

Curtin University
Tel | +61 8 9266 7962
Fax | +61 8 9266 2377
Mobile | 0470 237 525
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150512/a1b53d1b/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ncks
Type: application/octet-stream
Size: 443 bytes
Desc: ncks
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150512/a1b53d1b/attachment.obj 


More information about the ncl-talk mailing list