[gradsusr] gradsusr Digest, Vol 39, Issue 62

u umakanth uma.phys at gmail.com
Wed May 29 03:13:54 EDT 2013


http://cookbooks.opengrads.org/index.php?title=Recipe-002:_Saving_GrADS_variable_data_to_a_text_file
will give an idea about csv format


On Wed, May 29, 2013 at 12:11 PM, <gradsusr-request at gradsusr.org> wrote:

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



-- 
Umakanth U
Jr. Research Fellow
National Atmospheric research laboratory.
Tirupati.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130529/1b441f96/attachment-0003.html 


More information about the gradsusr mailing list