The easiest way is to modify the PDEF statement. You should be able to modify the dx and dy values to use a non-NCEP radius<br>with the NCEP routines.<br><br> Wesley<br><br><div class="gmail_quote">On Tue, Dec 13, 2011 at 9:38 AM, Jennifer Adams <span dir="ltr"><<a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word">The values (there are more than one) of the Earth radius are hard-coded into GrADS in the PDEF routines that were provided by NCEP to deal with their pre-projected data. Changing them would break the display of just about every regional product that comes out of NCEP. If you require a different value, then what is needed is a new PDEF keyword and a new routine to deal with it in gaddes.c. You can take a look at the source code and submit a patch if you want, but it might be simpler to do the calculations yourself and create your own PDEF file. Or, you could change the values in your own copy of the GrADS source and then create a local build with the values that suit the data you want to display. <div>
--Jennifer<br><div><br></div><div><br><div><div>On Dec 12, 2011, at 3:06 PM, Jofre Janué wrote:</div><br><blockquote type="cite"><span style="border-collapse:separate;font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div style="font-size:10pt;font-family:Tahoma">
<div dir="ltr"> <br><span lang="en"><span>I have some</span><span> </span><span>problems with</span><span> </span><span>the borders of</span><span> </span><span>countries and</span><span> </span><span>the representation of the</span><span> </span><span>WRF</span><span> </span><span>model</span><span>, because don't</span><span> </span><span>match( you can see it with 3km resolution)</span><span>.</span><span> </span><span>I think the</span><span>WRF</span><span> </span><span>works with</span><span> </span><span>a earth's radius</span><span> </span><span>of</span><span> </span><span>6370</span><span> </span><span>km</span> <span>and</span><span> </span>Grads is <span>6371.2</span><span> </span><span>km.</span><br>
<span>Is it possible to</span><span> </span><span>change the</span><span> </span>Grads<span> </span><span>radius</span><span> </span><span>of the earth</span><span><span> </span>to </span><span>match borders with WRF</span><span>?</span></span><br>
<br> <br> <br> <br> <br> <br> <br> <br><br> <br><div>> From:<span> </span><a href="mailto:gradsusr-request@gradsusr.org" target="_blank">gradsusr-request@gradsusr.org</a><br>> Subject: gradsusr Digest, Vol 22, Issue 11<br>
> To:<span> </span><a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>> Date: Sun, 11 Dec 2011 18:14:57 -0500<br>><span> </span><br>> Send gradsusr mailing list submissions to<br>
><span> </span><a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>><span> </span><br>> To subscribe or unsubscribe via the World Wide Web, visit<br>><span> </span><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>><span> </span><a href="mailto:gradsusr-request@gradsusr.org" target="_blank">gradsusr-request@gradsusr.org</a><br>><span> </span><br>> You can reach the person managing the list at<br>
><span> </span><a href="mailto:gradsusr-owner@gradsusr.org" target="_blank">gradsusr-owner@gradsusr.org</a><br>><span> </span><br>> When replying, please edit your Subject line so it is more specific<br>> than "Re: Contents of gradsusr digest..."<br>
><span> </span><br>><span> </span><br>> Today's Topics:<br>><span> </span><br>> 1. Re: OpenGrads Installation (Arlindo da Silva)<br>> 2. Re: OpenGrads Installation (Andrew Revering)<br>><span> </span><br>
><span> </span><br>> ----------------------------------------------------------------------<br>><span> </span><br>> Message: 1<br>> Date: Sun, 11 Dec 2011 13:47:27 -0800<br>> From: Arlindo da Silva <<a href="mailto:dasilva@alum.mit.edu" target="_blank">dasilva@alum.mit.edu</a>><br>
> Subject: Re: [gradsusr] OpenGrads Installation<br>> To: GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>><br>> Message-ID:<br>> <<a href="mailto:CALz7xZd3=aUQw0-jEYOZJ5BnBAAGL+H+56ebCwUPS49ve=uMXA@mail.gmail.com" target="_blank">CALz7xZd3=aUQw0-jEYOZJ5BnBAAGL+H+56ebCwUPS49ve=uMXA@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="iso-8859-1"<br>><span> </span><br>> On Sun, Dec 11, 2011 at 12:44 PM, Andrew Revering <<a href="mailto:andy@f5data.com" target="_blank">andy@f5data.com</a>> wrote:<br>
><span> </span><br>> > Arlindo,<br>> ><br>> > I'm sending this to you privately<br>> ><br>><span> </span><br>> Not so, you replied to the whole list...<br>><span> </span><br>><span> </span><br>
><span> </span><br>> > because I dont want to accidentally send some server-sensitive information<br>> > to the entire list accidentally...<br>> ><br>> >><br>> >> Simply type "env" at the command line and you will get a list of all<br>
> >> environment variables defined.<br>> >><br>> ><br>> > root@server [~]# env<br>> > HOSTNAME=*********************<br>> > /env<br>> ><br>> ...<br>><span> </span><br>
> Good, no grads related environment variable is being set, so we can rule<br>> out any conflict there.<br>><span> </span><br>><span> </span><br>> ><br>> >> Make sure you move the Contents/ directory as a whole, keeping directory<br>
> >> tree intact.<br>> >><br>> ><br>> > So for example, should it be:<br>> > /opt/opengrads/Linux.... etc.<br>> > or<br>> > /opt/opengrads/Contents/Linux.... etc.<br>> ><br>
> > I currently have it as the first scenario.<br>> ><br>> ><br>><span> </span><br>> Either is fine, provided the whole Contets/ directory (and all<br>> sub-directories are moved over). In your case, make sure /opt/opengrads is<br>
> ahead in your path (and not another directory further down under Linux/).<br>><span> </span><br>><span> </span><br>><span> </span><br>> ><br>> > I don't think I'm able to do this because the server is a web server and<br>
> > I'm connecting through SSH.<br>> ><br>><span> </span><br>> Sometimes you need the -X option to enable X windows through ssh, for<br>> example<br>><span> </span><br>> % ssh -X<span> </span><a href="http://myserver.domain.com/" target="_blank">myserver.domain.com</a><br>
><span> </span><br>><span> </span><br>><span> </span><br>> > So when I run opengrads I get "error in GXSTRT: unable to connect to X<br>> > server"<br>> ><br>> > So I have to run everything with -lbc 'run ' scripts. Is there a way to do<br>
> > q udx and send that output to a text file?<br>> ><br>> ><br>> You can run grads interatively without having X Windows connecivity. Just<br>> start opengrads in batch mode (-b option) :<br>><span> </span><br>
> % opengrads -bl<br>><span> </span><br>> What I am looking for is whether you see a line like this:<br>><span> </span><br>> *Loading User Defined Extensions table<br>> </Applications/OpenGrADS/Darwin/Versions/2.0.0.oga.1/i386/gex/udxt> ... ok.*<br>
><span> </span><br>> and whether<br>><span> </span><br>> ga-> q udx<br>><span> </span><br>> gives you a full list of extensions.<br>><span> </span><br>> Arlindo<br>><span> </span><br>><span> </span><br>
> --<span> </span><br>> Arlindo da Silva<br>><span> </span><a href="mailto:dasilva@alum.mit.edu" target="_blank">dasilva@alum.mit.edu</a><br>> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>
> URL:<span> </span><a href="http://gradsusr.org/pipermail/gradsusr/attachments/20111211/438e4d22/attachment-0001.html" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20111211/438e4d22/attachment-0001.html</a><span> </span><br>
><span> </span><br>> ------------------------------<br>><span> </span><br>> Message: 2<br>> Date: Sun, 11 Dec 2011 17:07:41 -0600<br>> From: Andrew Revering <<a href="mailto:andy@f5data.com" target="_blank">andy@f5data.com</a>><br>
> Subject: Re: [gradsusr] OpenGrads Installation<br>> To: GrADS Users Forum <<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>><br>> Message-ID:<br>> <<a href="mailto:CAHXC6uvYwyniLHKc7efqOSxA2+k1pzgn60KucTSLixAcoiDnHw@mail.gmail.com" target="_blank">CAHXC6uvYwyniLHKc7efqOSxA2+k1pzgn60KucTSLixAcoiDnHw@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="iso-8859-1"<br>><span> </span><br>> ><br>> > Not so, you replied to the whole list...<br>> >><br>> ><br>> Yah... I'm a damn fool.<br>><span> </span><br>
><span> </span><br>> > ga-> q udx<br>> ><br>> > gives you a full list of extensions.<br>> ><br>><span> </span><br>> ga-> q udx<br>><span> </span><br>> Command Environment Variables Function@Library<br>
> ----------- ---------------------------------------<br>> --------------------------<br>> printenv Expand environment variables c_xenv@^env.gex<br>> runenv Expand env vars and run command c_env@^env.gex<br>> @ Expand env vars and run command c_env@^env.gex<br>
> getenv Get value of environment variable c_getenv@^env.gex<br>> setenv Set value of environment variable c_setenv@^env.gex<br>><span> </span><br>> Command GxYAT: Image Generation Function@Library<br>> ----------- ---------------------------------------<br>
> --------------------------<br>> gxyat Save images in PNG/SVG/PDF/PS c_gxyat@^gxyat.gex<br>> set_rgba Set color red/green/blue/alpha c_rgba@^gxyat.gex<br>><span> </span><br>> Command Simple Extension Example Function@Library<br>
> ----------- ---------------------------------------<br>> --------------------------<br>> hello Hello, World! sample command c_hello@^libhello.gex<br>><span> </span><br>> Command Interprocess Communication Function@Library<br>
> ----------- ---------------------------------------<br>> --------------------------<br>> ipc_verb IPC verbose toggle c_Verb@^libipc.gex<br>> ipc_open Open stream for save/load c_Open@^libipc.gex<br>> ipc_close Close stream c_Close@^libipc.gex<br>
> ipc_save Save expression to stream c_Save@^libipc.gex<br>> ipc_define Define variable (obsolete) c_Define@^libipc.gex<br>> ipc_error Print IPC error message c_Error@^libipc.gex<br>><span> </span><br>> Command LATS: File Reformatting and Subsetting Function@Library<br>
> ----------- ---------------------------------------<br>> --------------------------<br>> set_lats Set LATS parameters c_lats_set@<br>> ^liblats.gex<br>> query_lats Query LATS parameters c_lats_query@<br>> ^liblats.gex<br>
> lats_grid Define LATS grid c_lats_grid@<br>> ^liblats.gex<br>> lats_data Write data to LATS file c_lats_data@<br>> ^liblats.gex<br>> reinit_lats Re-init LATS parameters c_lats_reinit@<br>> ^liblats.gex<br>
><span> </span><br>> Command Mike Fiorino's Extensions Function@Library<br>> ----------- ---------------------------------------<br>> --------------------------<br>> mfhilo Find max/min or H/L in 2D field c_mfhilo@^libmf.gex<br>
> tcprop Properties radinf from central lon/lat c_tcprop@^libmf.gex<br>> tcxy2rt cartesian -> cylindrical coords results only scriptvar RESULT<br>> c_tcxy2rt@^libmf.gex<br>> grhist histogram of expr c_grhist@^libmf.gex<br>
><span> </span><br>> Command Satellite Orbit Extensions Function@Library<br>> ----------- ---------------------------------------<br>> --------------------------<br>> set_orb Set ORB parameters c_set@^orb.gex<br>
> orb_track Satellite ground tracks c_track@^orb.gex<br>><span> </span><br>> Command Shapefile Extensions Function@Library<br>> ----------- ---------------------------------------<br>> --------------------------<br>
> shp_lines Draw lines from shapefile c_lines@^shape.gex<br>> shp_polyf Draw polygons from shapefile c_polyf@^shape.gex<br>><span> </span><br>> Function Ben-Jei Tsuang's Extensions Function@Library<br>> ----------- ---------------------------------------<br>
> --------------------------<br>> lt Local time f_bjt@^libbjt.gex<br>> jd Julian day f_bjt@^libbjt.gex<br>> cosz Cosine solar zenith angle f_bjt@^libbjt.gex<br>> dayratio Daylight ratio f_bjt@^libbjt.gex<br>
> if Conditional function f_bjt@^libbjt.gex<br>> maxv Maximum value f_bjt@^libbjt.gex<br>> minv Minimum value f_bjt@^libbjt.gex<br>> which Label gridpoints f_bjt@^libbjt.gex<br>> ftest F-test f_bjt@^libbjt.gex<br>
> ttest T-test f_bjt@^libbjt.gex<br>> tfit Point linear regression f_bjt@^libbjt.gex<br>> fit Global linear regression f_bjt@^libbjt.gex<br>> tcorr2 Time correlation f_bjt@^libbjt.gex<br>> tregr2 Point linear regression f_bjt@^libbjt.gex<br>
> tmave2 Time averaging w/masking f_bjt@^libbjt.gex<br>> madvu Calculates -d(u*EXPR)/dx f_bjt@^libbjt.gex<br>> madvv Calculates -d(V*EXPR)/dy f_bjt@^libbjt.gex<br>> madvw Calculates -d(W*EXPR)/dp f_bjt@^libbjt.gex<br>
> muadv Zonal advection f_bjt@^libbjt.gex<br>> mvadv Meridional advection f_bjt@^libbjt.gex<br>> mwadv Vertical advection f_bjt@^libbjt.gex<br>> satvap Saturated vapor pressure f_bjt@^libbjt.gex<br>> dew Dew point temperature f_bjt@^libbjt.gex<br>
> lw Thermal infrared fluxes f_bjt@^libbjt.gex<br>> lw2 Thermal infrared fluxes v2 f_bjt@^libbjt.gex<br>> pinterp Pressure interpolation f_bjt@^libbjt.gex<br>> zinterp Height interpolation f_bjt@^libbjt.gex<br>
> line Draws a line f_bjt@^libbjt.gex<br>> vint2 Mass-weighted vertical integral f_bjt@^libbjt.gex<br>><span> </span><br>> Function Streamfunction & Velocity Potential Function@Library<br>> ----------- ---------------------------------------<br>
> --------------------------<br>> fish Poisson solver f_fish@^fish.gex<br>> fish_psi Compute streamfunction f_psichi@^fish.gex<br>> fish_chi Compute velocity potential f_psichi@^fish.gex<br>> fish_vor Compute vorticity f_psichi@^fish.gex<br>
> fish_div Compute divergence f_psichi@^fish.gex<br>><span> </span><br>> Function Saakeskus Wx Function Collection Function@Library<br>> ----------- ---------------------------------------<br>> --------------------------<br>
> dewpt Dew-point temperature f_gsudf@^gsudf.gex<br>> ept Equivalent potential temperature f_gsudf@^gsudf.gex<br>> epi Potential Instability f_gsudf@^gsudf.gex<br>> plcl Pressure at LCL f_gsudf@^gsudf.gex<br>> shear Wind Shear f_gsudf@^gsudf.gex<br>
> srh1km Storm-relative Helicity 0-1km' f_gsudf@^gsudf.gex<br>> srh3km Storm-relative Helicity 0-3km' f_gsudf@^gsudf.gex<br>> tlcl Temperature at LCL f_gsudf@^gsudf.gex<br>> tsindex Chance of T-storm Initiation f_gsudf@^gsudf.gex<br>
> ttindex Total Totals Index f_gsudf@^gsudf.gex<br>> wchill Wind Chill Index (New) f_gsudf@^gsudf.gex<br>><span> </span><br>> Function Simple Extension Example Function@Library<br>> ----------- ---------------------------------------<br>
> --------------------------<br>> hello Hello, World! sample function f_hello@^libhello.gex<br>><span> </span><br>> Function Interprocess Communication Function@Library<br>> ----------- ---------------------------------------<br>
> --------------------------<br>> ipc_save Save expression to stream f_Save@^libipc.gex<br>> ipc_load Load variable from file f_Load@^libipc.gex<br>><span> </span><br>> Function Mike Fiorino's Extensions Function@Library<br>
> ----------- ---------------------------------------<br>> --------------------------<br>> smth2d Shuman smoother/de-smoother f_smth2d@^libmf.gex<br>> xy2rt cartesian -> cylindrical coord f_xy2rt@^libmf.gex<br>
> uv2trw Find radial/tangential velocity f_uv2trw@^libmf.gex<br>> re2 General interpolator (regrid2) f_re2@^libmf.gex<br>> esmrf Saturation vapor pressure (old MRF) f_esmrf@^libmf.gex<br>> linreg Linear regression: mx + b f_linreg@^libmf.gex<br>
><span> </span><br>> Function Satellite Orbit Extensions Function@Library<br>> ----------- ---------------------------------------<br>> --------------------------<br>> orb_mask Satellite orbit masking f_mask@^orb.gex<br>
><span> </span><br>> Function Regridding Functions Function@Library<br>> ----------- ---------------------------------------<br>> --------------------------<br>> re General interpolator ffre@^re.gex<br>> re_ General interpolator (verbose) ffre_dbg@^re.gex<br>
> regrid2 regrid2-like wrapper for re() f_gsudf@^gsudf.gex<br>> geos Interpolation to GEOS-5 Grids f_gsudf@^gsudf.gex<br>> reimg Interpolation for Image Generation' f_gsudf@^gsudf.gex<br>><span> </span><br>
> Function Spherical Harmonic Analysis Function@Library<br>> ----------- ---------------------------------------<br>> --------------------------<br>> sh_filt Spherical harmonic filter f_shfilt@^shfilt.gex<br>> sh_power Spherical harmonic spectra f_shpowr@^shfilt.gex<br>
><span> </span><br>> ga-><br>> -------------- next part --------------<br>> An HTML attachment was scrubbed...<br>> URL:<span> </span><a href="http://gradsusr.org/pipermail/gradsusr/attachments/20111211/03144cd9/attachment.html" target="_blank">http://gradsusr.org/pipermail/gradsusr/attachments/20111211/03144cd9/attachment.html</a><span> </span><br>
><span> </span><br>> ------------------------------<br>><span> </span><br>> _______________________________________________<br>> gradsusr mailing list<br>><span> </span><a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
><span> </span><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>><span> </span><br>><span> </span><br>> End of gradsusr Digest, Vol 22, Issue 11<br>
> ****************************************<br></div></div>_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br></div></span></blockquote></div><font color="#888888"><br><div>
<span style="border-collapse:separate;border-spacing:0px;color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;border-spacing:0px;color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;border-spacing:0px;color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div>
--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div><a href="mailto:jma@cola.iges.org" target="_blank">jma@cola.iges.org</a></div><div><br>
</div><br></span></span></span>
</div>
<br></font></div></div></div><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></blockquote></div><br>