<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p><br>
</p>
<div dir="ltr" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; margin-top:0px; margin-bottom:0px">
Hi everyone</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; margin-top:0px; margin-bottom:0px">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; margin-top:0px; margin-bottom:0px">
I am running NCL version 6.1.0. I have to write output from multiple netcdf file into the ascii fromat containing wind speed comparison at a particular latitude and longitude.This aim is to get the comparison from the wrf ouput and the instrument at a particular
location. The netcdf files are from the instrument but are not in the regular netcdf format meaning that the time is not included in the dimensions of the variables to be extracted and each file contains one value of time.​The first problem that I am facing
is that the fill value is not getting deleted in the ascii output.I use the following to generated the ascii output .<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; margin-top:0px; margin-bottom:0px">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; margin-top:0px; margin-bottom:0px">
b=addfile("/20090711/20090711_000239_01_g.nc","r")<br>
lon=b->yp(0,0,:)<br>
lat=b->xp(0,:,0)</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; margin-top:0px; margin-bottom:0px">
DATADir = "./"<br>
fils = systemfunc (" ls -1 " + DATADir + "/20090711* ") <br>
numfils = dimsizes(fils) <br>
do j = 0,numfils-1,1<br>
a = addfiles(fils(j)+".nc","r")<br>
time=a[:]->time</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; margin-top:0px; margin-bottom:0px">
::::::::::::::</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; margin-top:0px; margin-bottom:0px">
::::::::::​<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; margin-top:0px; margin-bottom:0px">
npt = npt + 1 <br>
data(npt) = sprinti("%0.5i", (npt+1) ) <br>
data(npt) = data(npt) + sprintf("%7.1f ",lat(nl))<br>
data(npt) = data(npt) + sprintf("%7.1f ",lon(ml))</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; margin-top:0px; margin-bottom:0px">
do nt=0,ntim-1<br>
data(npt) = data(npt) + sprintf("%10.3f ", x(nt))</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; margin-top:0px; margin-bottom:0px">
data(npt) = data(npt) + sprintf("%7.1f ",u1(nt,nl,ml))</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; margin-top:0px; margin-bottom:0px">
data(npt) = data(npt) + sprintf("%7.1f ",v1(nt,nl,ml))<br>
end do<br>
end do<br>
end do<br>
asciiwrite (fName , data)</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:16px; margin-top:0px; margin-bottom:0px">
​In this way I get the output that is attached .<span style="font-family:Tahoma; font-size:13px">Any help to correct this code will be appreciated</span></div>
<p><br>
</p>
<p><br>
</p>
<div id="Signature">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><b><br>
</b></div>
<div style="font-family:Tahoma; font-size:13px"><b>Regards</b></div>
<div style="font-family:Tahoma; font-size:13px"><b>Muhammad Omer Mughal</b>
<div><b>Department of Applied Physics</b></div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>