<div dir="ltr"><div><a href="http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file">http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file</a><br>
</div>will give an idea about csv format<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 29, 2013 at 12:11 PM, <span dir="ltr"><<a href="mailto:gradsusr-request@gradsusr.org" target="_blank">gradsusr-request@gradsusr.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send gradsusr mailing list submissions to<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:gradsusr-request@gradsusr.org">gradsusr-request@gradsusr.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:gradsusr-owner@gradsusr.org">gradsusr-owner@gradsusr.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of gradsusr digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Open text file and output as a csv format in GRADS<br>
(Lyndon Mark Olaguera)<br>
2. Re: Open text file and output as a csv format in GRADS<br>
(James T. Potemra)<br>
3. What is the best approach when using two file sources when<br>
... ? (Howard Staines)<br>
4. how to remove x-axis and y-axis (lines) of a "cbarc"<br>
color-bar? (Mohsen Soltani)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 29 May 2013 01:24:22 +0800<br>
From: Lyndon Mark Olaguera <<a href="mailto:olagueralyndonmark429@gmail.com">olagueralyndonmark429@gmail.com</a>><br>
Subject: Re: [gradsusr] Open text file and output as a csv format in<br>
GRADS<br>
To: GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
Message-ID:<br>
<<a href="mailto:CA%2BV%2B8dXMnytoN3xUyqr0ULjchxu5JENLaLPQDa71EiLybvQ_ZQ@mail.gmail.com">CA+V+8dXMnytoN3xUyqr0ULjchxu5JENLaLPQDa71EiLybvQ_ZQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
I just want to get rid of the back slash..Wen i tried it fortran it only<br>
gives me an error..<br>
<br>
<br>
<br>
On Tue, May 28, 2013 at 10:52 PM, Sestak, Michael L CIV 63134 <<br>
<a href="mailto:michael.l.sestak@navy.mil">michael.l.sestak@navy.mil</a>> wrote:<br>
<br>
> The read function in the grads scripting language will open a text file,<br>
> then you have to parse your dates using substr.<br>
><br>
> But, all that can be done in fortran, and CSV usually means comma<br>
> separated values, not columns.<br>
><br>
> So, I'm not sure what you really want to do.<br>
><br>
> Michael Sestak<br>
> Fleet Numerical Meteorology and Oceanography Center<br>
> Monterey, CA<br>
><br>
> Message: 1<br>
> Date: Tue, 28 May 2013 11:26:24 +0800<br>
> From: Lyndon Mark Olaguera <<a href="mailto:olagueralyndonmark429@gmail.com">olagueralyndonmark429@gmail.com</a>><br>
> Subject: [gradsusr] Open text file and output as a csv format in GRADS<br>
> To: GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
> Message-ID:<br>
> <CA+V+8dWb8qXJt37XMU=K-51hNC=<br>
> <a href="mailto:NmuQ3fx27ApOXoPLopF%2Bmgw@mail.gmail.com">NmuQ3fx27ApOXoPLopF+mgw@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="iso-8859-1"<br>
><br>
> Hi all,<br>
> I have station data in a text file and I want to read it using grads and<br>
> output as a csv file.<br>
> The problem is the dates are separated by a backslash...<br>
> here's a sample format:<br>
><br>
> The text file contains the following data.<br>
><br>
> yy/mm/dd/hh pressure rain<br>
> TEMPERATURE wind speed<br>
> 2012/08/06/00 10000 2.5<br>
> 300 45<br>
> ...<br>
> ...<br>
> ...<br>
> ....<br>
><br>
><br>
> I want to oputput this in a csv format such that the the years, months,<br>
> days, and hours are in separated in columns...<br>
> like:<br>
><br>
> yy mm dd hh rain<br>
> temperature wind speed<br>
><br>
><br>
><br>
> I can't do it in fortran so i guess its easier to do this in GRADs..<br>
><br>
><br>
> thanks for any help.<br>
> Lyndon<br>
><br>
><br>
> _______________________________________________<br>
> gradsusr mailing list<br>
> <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://gradsusr.org/pipermail/gradsusr/attachments/20130529/f5b0e45f/attachment-0001.html" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20130529/f5b0e45f/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 28 May 2013 07:46:34 -1000<br>
From: "James T. Potemra" <<a href="mailto:jimp@hawaii.edu">jimp@hawaii.edu</a>><br>
Subject: Re: [gradsusr] Open text file and output as a csv format in<br>
GRADS<br>
To: GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
Message-ID: <<a href="mailto:51A4ED7A.3030307@hawaii.edu">51A4ED7A.3030307@hawaii.edu</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Lyndon:<br>
<br>
As suggested earlier, you should just use a script to do this, e.g., in awk:<br>
<br>
awk 'BEGIN{FS="/"}{print $1, $2, $3, $4}' infile.dat > outfile.dat<br>
<br>
Jim<br>
On 5/28/13 7:24 AM, Lyndon Mark Olaguera wrote:<br>
> I just want to get rid of the back slash..Wen i tried it fortran it<br>
> only gives me an error..<br>
><br>
><br>
><br>
> On Tue, May 28, 2013 at 10:52 PM, Sestak, Michael L CIV 63134<br>
> <<a href="mailto:michael.l.sestak@navy.mil">michael.l.sestak@navy.mil</a> <mailto:<a href="mailto:michael.l.sestak@navy.mil">michael.l.sestak@navy.mil</a>>> wrote:<br>
><br>
> The read function in the grads scripting language will open a text<br>
> file, then you have to parse your dates using substr.<br>
><br>
> But, all that can be done in fortran, and CSV usually means comma<br>
> separated values, not columns.<br>
><br>
> So, I'm not sure what you really want to do.<br>
><br>
> Michael Sestak<br>
> Fleet Numerical Meteorology and Oceanography Center<br>
> Monterey, CA<br>
><br>
> Message: 1<br>
> Date: Tue, 28 May 2013 11:26:24 +0800<br>
> From: Lyndon Mark Olaguera <<a href="mailto:olagueralyndonmark429@gmail.com">olagueralyndonmark429@gmail.com</a><br>
> <mailto:<a href="mailto:olagueralyndonmark429@gmail.com">olagueralyndonmark429@gmail.com</a>>><br>
> Subject: [gradsusr] Open text file and output as a csv format in GRADS<br>
> To: GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
> <mailto:<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>>><br>
> Message-ID:<br>
><br>
> <CA+V+8dWb8qXJt37XMU=K-51hNC=<a href="mailto:NmuQ3fx27ApOXoPLopF%2Bmgw@mail.gmail.com">NmuQ3fx27ApOXoPLopF+mgw@mail.gmail.com</a> <mailto:<a href="mailto:NmuQ3fx27ApOXoPLopF%252Bmgw@mail.gmail.com">NmuQ3fx27ApOXoPLopF%2Bmgw@mail.gmail.com</a>>><br>
> Content-Type: text/plain; charset="iso-8859-1"<br>
><br>
> Hi all,<br>
> I have station data in a text file and I want to read it using<br>
> grads and output as a csv file.<br>
> The problem is the dates are separated by a backslash...<br>
> here's a sample format:<br>
><br>
> The text file contains the following data.<br>
><br>
> yy/mm/dd/hh pressure rain<br>
> TEMPERATURE wind speed<br>
> 2012/08/06/00 10000 2.5<br>
> 300 45<br>
> ...<br>
> ...<br>
> ...<br>
> ....<br>
><br>
><br>
> I want to oputput this in a csv format such that the the years,<br>
> months, days, and hours are in separated in columns...<br>
> like:<br>
><br>
> yy mm dd hh rain<br>
> temperature wind speed<br>
><br>
><br>
><br>
> I can't do it in fortran so i guess its easier to do this in GRADs..<br>
><br>
><br>
> thanks for any help.<br>
> Lyndon<br>
><br>
><br>
> _______________________________________________<br>
> gradsusr mailing list<br>
> <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a> <mailto:<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> gradsusr mailing list<br>
> <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
> <a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://gradsusr.org/pipermail/gradsusr/attachments/20130528/a3beba77/attachment-0001.html" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20130528/a3beba77/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Wed, 29 May 2013 17:26:48 +1200<br>
From: "Howard Staines" <<a href="mailto:metris@xtra.co.nz">metris@xtra.co.nz</a>><br>
Subject: [gradsusr] What is the best approach when using two file<br>
sources when ... ?<br>
To: <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
Message-ID: <034101ce5c2d$1e6c97c0$5b45c740$@<a href="http://co.nz" target="_blank">co.nz</a>><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Good afternoon fellow Grads users,<br>
<br>
I want to use two different data sources<br>
<br>
1, Opendap GFS 0.5 degree data for precipitation with 3hourly time<br>
steps<br>
2, Opendap high resolution topography one time step and I think about<br>
8minute resolution.<br>
<br>
The purpose is to use the 1 dataset for precipitation and freezing level<br>
calculation in meters and mask with 2, dataset using to display snowfall<br>
Over high resolution topography.<br>
<br>
My understanding is that you cant open these dataset as the aren't the same<br>
resolution and time step compatable.<br>
<br>
Do I combine the data and create a local file, would I need to use<br>
interpolation like re() function over the dataset nos 1.<br>
<br>
Any assistance well.<br>
<br>
Regards Howard Staines<br>
Metris Limited<br>
New Zealand<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Tue, 28 May 2013 23:41:15 -0700<br>
From: Mohsen Soltani <<a href="mailto:soltani.clima@gmail.com">soltani.clima@gmail.com</a>><br>
Subject: [gradsusr] how to remove x-axis and y-axis (lines) of a<br>
"cbarc" color-bar?<br>
To: GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>><br>
Message-ID:<br>
<<a href="mailto:CAPoCDiMg_8Gi8JruDuEH8Wyx0zC7SzKbd9CbEqeBpzD%2B9OH-QA@mail.gmail.com">CAPoCDiMg_8Gi8JruDuEH8Wyx0zC7SzKbd9CbEqeBpzD+9OH-QA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Dear All,<br>
<br>
I used "cbarc" to run color-bar on the map (see the attached file number<br>
1). I adjusted the position of the color-bar where I wanted to. But, I'd<br>
like my color-bar (file number 1) to be something like the enclosed file<br>
number 2.<br>
<br>
On the other hand, if we assume the color-bar's background as a triangle, I<br>
want the two lines (x-axis and y-axis) to be omitted/removed. How can I do<br>
that?<br>
<br>
<br>
Any suggestion?<br>
<br>
<br>
Mohsen<br>
<br>
--<br>
some are weather-wise some are otherwise!<br>
--<br>
Best Wishes,<br>
(Mr.) Mohsen Soltani<br>
Climatology Grad Student (M.Sc.),<br>
Faculty of Geography, University of Tehran, Tehran, Iran<br>
Tel: (+98) 9119772934<br>
e-mail: <a href="mailto:soltani.clima@gmail.com">soltani.clima@gmail.com</a><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://gradsusr.org/pipermail/gradsusr/attachments/20130528/c548d7f4/attachment.html" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20130528/c548d7f4/attachment.html</a><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: file number 1.jpeg<br>
Type: image/jpeg<br>
Size: 578381 bytes<br>
Desc: not available<br>
Url : <a href="http://gradsusr.org/pipermail/gradsusr/attachments/20130528/c548d7f4/attachment.jpeg" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20130528/c548d7f4/attachment.jpeg</a><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: file number 2.jpg<br>
Type: image/jpeg<br>
Size: 227008 bytes<br>
Desc: not available<br>
Url : <a href="http://gradsusr.org/pipermail/gradsusr/attachments/20130528/c548d7f4/attachment.jpg" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20130528/c548d7f4/attachment.jpg</a><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>
<br>
End of gradsusr Digest, Vol 39, Issue 62<br>
****************************************<br>
</blockquote></div><br><br clear="all"><br>-- <br><div>Umakanth U </div>
<div>Jr. Research Fellow</div>
<div>National Atmospheric research laboratory.<br></div>
<div>Tirupati.</div>
</div>