The most important rule in file handling and data processing is
"Look at your data!"
Did you examine the file's contents via
%> ncl_filedump 20130324-021000.nc | less
or
%> ncdump -h 20130324-021000.nc | less
-----
Why do you need it in a .txt file? NCL can read the file directly.
Did you look at NCL's function suite?
We do expect people to show some effort in NCL.
----
f = addfile("20130324-021000.nc","r")
x = f->pixel_x
y = f->pixel_y
qpe = f->qpe60min
npix = dimsizes(qpe)
diro = "./" ; output directory
filo = "20130324-021000.txt" ; output file name
patho= diro+filo
system("/bin/rm -f "+patho) ; rm any pre-existing file
txt = x+", "+y+", "+qpe ; create text variable
print(txt(0:99)) ; print first 100 value
asciiwrite(patho, txt) ; write text file
On 3/25/13 3:08 AM, fatkhuroyan - wrote:
> Hi,
>
>
> I try to extracting the QPE .nc file from Gematronic radar to .csv or .txt file because i want to compare those data with rain gauge and AWS rain data,
> but i can't convert those .nc file and how to do that ?
>
> Here I attach that .nc file
>
> Thanks,
> Royan
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Mar 25 09:22:51 2013
This archive was generated by hypermail 2.1.8 : Tue Apr 02 2013 - 21:23:48 MDT