[gradsusr] Binary to ASCII and Nomads Server

Zilore Mumba zmumba at gmail.com
Tue Apr 19 02:07:36 EDT 2011


Thanks very much John for advice on writing biary to ASCII in grads.
Actually I posed this question some time go and it is ok.
My recent question was whether one could access analysis and forecasts on
nomads servers directly through grads.

On Mon, Apr 18, 2011 at 2:31 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. undef (vijay pawar)
>   2. lata42 (Ghan, Steven J)
>   3. min max of a variable (Simon Kiertscher)
>   4. different limits in the master control file (vijay pawar)
>   5. Re: lata42 (Colarco, Peter R. (GSFC-6133))
>   6. writing binary to ascii (Zilore Mumba)
>   7. Re: writing binary to ascii (Pou-Chang John Chen)
>   8. Re: lata42 (Ghan, Steven J)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 17 Apr 2011 09:55:49 +0530
> From: vijay pawar <vijay.pawar87 at gmail.com>
> Subject: [gradsusr] undef
> To: GrADS Users Forum <gradsusr at gradsusr.org>
> Message-ID: <BANLkTinoJ4q=W+fO4p432_g35k77pNTKgQ at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> if suppose in a file i have undef "-1e+o7"..what does this mean?
>
> Thank You
> Vijay
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://gradsusr.org/pipermail/gradsusr/attachments/20110417/b183bbe6/attachment-0001.html
>
> ------------------------------
>
> Message: 2
> Date: Sun, 17 Apr 2011 23:39:38 -0700
> From: "Ghan, Steven J" <Steve.Ghan at pnl.gov>
> Subject: [gradsusr] lata42
> To: GrADS Users Forum <gradsusr at gradsusr.org>
> Message-ID: <C9D12ABA.9085%steve.ghan at pnl.gov>
> Content-Type: text/plain; charset="us-ascii"
>
> I'm trying to use lats4d for the first time to regrid:
>
> lats4d -i infilename.nc -de outgridname.nc -func
> re(@,144,linear,0,2.5,96,linear,-89.,1.925,bl)
>
> The result:
> Invalid QUERY argument: udc
> WARNING: this build of GrADS v2.0.a9 does not include the LATS option
> WARNING: "-format grib" or "-format coads" are not supported.
> <RC> 1 </RC>
> </IPC>
> ERROR: cannot proceed without LATS; try specifying a different -format
> 1ga->
>
> Will this problem be corrected if I upgrade to the latest grads, or is
> there another workaround?
>
> -Steve Ghan
>
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 18 Apr 2011 10:56:46 +0200
> From: Simon Kiertscher <simon.kiertscher at gmx.de>
> Subject: [gradsusr] min max of a variable
> To: GrADS Users Forum <gradsusr at gradsusr.org>
> Message-ID: <4DABFCCE.3050705 at gmx.de>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi all,
>
> I am trying to find out a minimum and a maximum of a variable.
> Therefore I use 'q attr' and will pars it.
> The problem is that the format is something like
> "evaporation Float32 data_range 4.73882e-25,454.459"
> I can get that line, but now I have a problem.
> I have no operation in GrADS to divide the last values right?
> I need to divide it into to strings/values to get separate min and max
> values.
> How can I do this? Or is there another easier way to get the min and the
> max values of a variable?
>
> Thank you,
> Simon
>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 18 Apr 2011 15:45:07 +0530
> From: vijay pawar <vijay.pawar87 at gmail.com>
> Subject: [gradsusr] different limits in the master control file
> To: GrADS Users Forum <gradsusr at gradsusr.org>
> Message-ID: <BANLkTik7LEQwurO99ojg2XfhG_4ie68v_A at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> hello,
> I am using the grads version 2.0.a9.oga.1.the netcdf file that opens
> correctly is
>
> SDF file C:\Users\acer\Desktop\sst\1998\mar98.nc is open as file 1
> LON set to 0.0219727 159.983
> LAT set to -70.9937 -20.0171
> LEV set to 0 0
> Time values set: 1998:2:15:0 1998:2:15:0
> E set to 1 1
> ga-> d sst
> Contouring: -0 to 30 interval 3
>
>
> When I create a ctl file as follows..
>
> dset C:\Users\acer\Desktop\sst\1998\%mc%y2.nc
> title SST, Pathfinder Ver 5.0, Day and Night, Global, Science Quality
> (Monthly Composite)
> options template
> tdef 1 linear 12Z16OCT1998 1dy
> zdef 1 linear 0 1
> xdef 3641 linear 0.0219727 0.0439453
> ydef 1161 linear -70.9937 0.0439453
> undef -1e+07
> vars 1
> sst 1 -999 Sea Surface Temperature
> endvars
> ....the file opens.the time series also opens but the the contouring that I
> get is:
> "Contouring: -3e+38 to 3e+38 interval 5e+37"
> which is incorrect!
> What to do how to set the required limits??
> --
> Regards,
> Vijay.Pawar
> Symbiosis Institute Of Geoinformatics,
> Pune,India
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://gradsusr.org/pipermail/gradsusr/attachments/20110418/f23aa32a/attachment-0001.html
>
> ------------------------------
>
> Message: 5
> Date: Mon, 18 Apr 2011 08:49:01 -0500
> From: "Colarco, Peter R. (GSFC-6133)" <peter.r.colarco at nasa.gov>
> Subject: Re: [gradsusr] lata42
> To: GrADS Users Forum <gradsusr at gradsusr.org>
> Message-ID: <890B3D3E-EC66-4D1D-AE9E-DF75C0B2FDF2 at nasa.gov>
> Content-Type: text/plain; charset="us-ascii"
>
> I think you need the opengrads version to do with:
> http://opengrads.org/
>
> Pete
>
> On Apr 18, 2011, at 2:39 AM, Ghan, Steven J wrote:
>
> I'm trying to use lats4d for the first time to regrid:
>
> lats4d -i infilename.nc -de outgridname.nc -func
> re(@,144,linear,0,2.5,96,linear,-89.,1.925,bl)
>
> The result:
> Invalid QUERY argument: udc
> WARNING: this build of GrADS v2.0.a9 does not include the LATS option
> WARNING: "-format grib" or "-format coads" are not supported.
> <RC> 1 </RC>
> </IPC>
> ERROR: cannot proceed without LATS; try specifying a different -format
> 1ga->
>
> Will this problem be corrected if I upgrade to the latest grads, or is
> there another workaround?
>
> -Steve Ghan
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
> http://gradsusr.org/mailman/listinfo/gradsusr
>
> --------------------------------------------------------------------
> Peter Colarco
> NASA GSFC
> Code 613.3
> NASA Goddard Space Flight Center
> Greenbelt, MD 20771
> 301.614.6382 (ph)
> 301.614.5903 (fax)
>
> peter.r.colarco at nasa.gov<mailto:peter.r.colarco at nasa.gov>
> http://hyperion.gsfc.nasa.gov/People/Colarco
> --------------------------------------------------------------------
>
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://gradsusr.org/pipermail/gradsusr/attachments/20110418/480e85dd/attachment-0001.html
>
> ------------------------------
>
> Message: 6
> Date: Mon, 18 Apr 2011 16:31:28 +0200
> From: "Zilore Mumba" <zmumba at gmail.com>
> Subject: [gradsusr] writing binary to ascii
> To: <gradsusr at gradsusr.org>
> Message-ID: <000501cbfdd5$50100680$f0301380$@com>
> Content-Type: text/plain; charset="us-ascii"
>
> Hello Grads Users,
>
> I thought I used command like sprint to write data in grads to ascii. Or is
> it NetCdf to ascii? Help needed please
>
> Zilore
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://gradsusr.org/pipermail/gradsusr/attachments/20110418/699ed6ca/attachment-0001.html
>
> ------------------------------
>
> Message: 7
> Date: Mon, 18 Apr 2011 23:11:55 +0800 (CST)
> From: Pou-Chang John Chen <wishingwork at yahoo.com.tw>
> Subject: Re: [gradsusr] writing binary to ascii
> To: GrADS Users Forum <gradsusr at gradsusr.org>
> Message-ID: <658449.90457.qm at web73704.mail.tp2.yahoo.com>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi Zilore
> I will try gxout print to list the value of grids, and then query the
> result and
> write out.
> 'set gxout print'
> 'd var'
> w=write(output_file,result)
>  c=close(output_file)
>
> You can use query to separate the result as following:
> 'set gxout print'
> 'd var'
> length=subwrd(result,4)
> i=1;while(i<=9+length)
> value=subwrd(result,i)
> w=write(output_file,i)
> i=i+1;endwhile
> c=close(output_file)
>
> Just for sure you close the output file.
>
> Is this what you want?
> John
>
> ________________________________
> GrADS Tutorial on Facebook
> http://www.wishingwork.com/grads/
>
>
>
>
> ________________________________
> From: Zilore Mumba <zmumba at gmail.com>
> To: gradsusr at gradsusr.org
> Sent: Mon, April 18, 2011 10:31:28 PM
> Subject: [gradsusr] writing binary to ascii
>
>
> Hello Grads Users,
> I thought I used command like sprint to write data in grads to ascii. Or is
> it
> NetCdf to ascii? Help needed please
> Zilore
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://gradsusr.org/pipermail/gradsusr/attachments/20110418/2ef8c320/attachment-0001.html
>
> ------------------------------
>
> Message: 8
> Date: Mon, 18 Apr 2011 10:44:13 -0700
> From: "Ghan, Steven J" <Steve.Ghan at pnl.gov>
> Subject: Re: [gradsusr] lata42
> To: GrADS Users Forum <gradsusr at gradsusr.org>
> Message-ID: <C9D1C5ED.90BA%steve.ghan at pnl.gov>
> Content-Type: text/plain; charset="us-ascii"
>
> Thanks Pete.
>
> I downloaded the latest grads from opengrads:
>
> ga-> lats4d -i gxBC_all_0.nc -de mam3.nc -func
> re(@,144,linear,0,2.5,96,linear,-89.,1.925,bl)
> Invalid QUERY argument: udc
> WARNING: this build of GrADS v2.0.a9.oga.1 does not include the LATS option
> WARNING: "-format grib" or "-format coads" are not supported.
> <RC> 1 </RC>
> </IPC>
> ERROR: cannot proceed without LATS; try specifying a different -format
> 1ga-> lats4d -i gxBC_all_0.nc -de mam3.nc -func
> re(@,144,linear,0,2.5,96,linear,-89.,1.925,bl)
> Invalid QUERY argument: udc
> WARNING: this build of GrADS v2.0.a9.oga.1 does not include the LATS option
> WARNING: "-format grib" or "-format coads" are not supported.
>
> Any other suggestions?
>
> -Steve
>
> From: "Colarco, Peter R. (GSFC-6133)" <peter.r.colarco at nasa.gov<mailto:
> peter.r.colarco at nasa.gov>>
> Reply-To: GrADS Users Forum <gradsusr at gradsusr.org<mailto:
> gradsusr at gradsusr.org>>
> Date: Mon, 18 Apr 2011 06:49:01 -0700
> To: GrADS Users Forum <gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org
> >>
> Subject: Re: [gradsusr] lata42
>
> I think you need the opengrads version to do with:
> http://opengrads.org/
>
> Pete
>
> On Apr 18, 2011, at 2:39 AM, Ghan, Steven J wrote:
>
> I'm trying to use lats4d for the first time to regrid:
>
> lats4d -i infilename.nc -de outgridname.nc -func
> re(@,144,linear,0,2.5,96,linear,-89.,1.925,bl)
>
> The result:
> Invalid QUERY argument: udc
> WARNING: this build of GrADS v2.0.a9 does not include the LATS option
> WARNING: "-format grib" or "-format coads" are not supported.
> <RC> 1 </RC>
> </IPC>
> ERROR: cannot proceed without LATS; try specifying a different -format
> 1ga->
>
> Will this problem be corrected if I upgrade to the latest grads, or is
> there another workaround?
>
> -Steve Ghan
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
> http://gradsusr.org/mailman/listinfo/gradsusr
>
> --------------------------------------------------------------------
> Peter Colarco
> NASA GSFC
> Code 613.3
> NASA Goddard Space Flight Center
> Greenbelt, MD 20771
> 301.614.6382 (ph)
> 301.614.5903 (fax)
>
> peter.r.colarco at nasa.gov<mailto:peter.r.colarco at nasa.gov>
> http://hyperion.gsfc.nasa.gov/People/Colarco
> --------------------------------------------------------------------
>
>
>
>
>
>
>
> ------------------------------
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
> End of gradsusr Digest, Vol 14, Issue 35
> ****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110419/30581736/attachment-0003.html 


More information about the gradsusr mailing list