[gradsusr] regrid data
Subash Yeggina
subash.yeggina at gmail.com
Wed Apr 13 10:26:19 EDT 2011
Hi! Arlindo,
I am using GrADS on Windows XP. The version of GrDAS is *2.0.a9.oga.1*
The output of the q udx is attached..
Regards,
Subash
On Wed, Apr 13, 2011 at 7:23 PM, Jackie Yip <zheng.yip at mcgill.ca> wrote:
> Hi Arlindo,
>
> I'm running GrADs on Mac OS X. As I wasn't the person who installed this
> version of GrADs, I'm not sure which method of installation was used. But I
> hope the following info helps...
>
> My q config output:
>
> Config: v2.0.a9.oga.1 little-endian readline printim netcdf hdf4-sds hdf5
> opendap-grids,stn geotiff shapefile
> Grid Analysis and Display System (GrADS) Version 2.0.a9.oga.1
> Copyright (c) 1988-2010 by Brian Doty and the
> Institute for Global Environment and Society (IGES)
> This program is distributed WITHOUT ANY WARRANTY
> See file COPYRIGHT for more information.
>
> Built Fri Apr 1 11:31:19 EDT 2011 for i386-apple-darwin10.5.0
>
> This version of GrADS has been configured with the following options:
> o Built on a LITTLE ENDIAN machine
> o Athena Widget GUI DISABLED
> o Command line editing ENABLED
> http://tiswww.case.edu/php/chet/readline/rltop.html
> o printim command for image output ENABLED
> http://www.zlib.net
> http://www.libpng.org/pub/png/libpng.html
> http://www.libgd.org/Main_Page
> o GRIB2 interface DISABLED
> o NetCDF interface ENABLED
> http://www.unidata.ucar.edu/software/netcdf
> netcdf 4.1.1 of Apr 1 2011 11:38:40 $
> o OPeNDAP gridded data interface ENABLED
> o OPeNDAP station data interface ENABLED
> http://iges.org/grads/gadoc/supplibs.html
> libgadap 2.0
> o HDF4 and HDF5 interfaces ENABLED
> http://hdfgroup.org
> HDF 4.2r5
> HDF5 1.8.6
> o GeoTIFF and KML/TIFF output ENABLED
> http://www.libtiff.org
> http://geotiff.osgeo.org
> o KML contour output ENABLED
> o Shapefile interface ENABLED
> http://shapelib.maptools.org
>
> q udx or udxt was not recognized as a valid query.
>
> Many thanks
>
> Zheng
>
>
>
> On 12 April 2011 19:54, Arlindo da Silva <dasilva at alum.mit.edu> wrote:
>
>> On Tue, Apr 12, 2011 at 3:22 PM, Jackie Yip <zheng.yip at mcgill.ca> wrote:
>>
>>> Hi Subash,
>>>
>>> I also got the error
>>> "Syntax Error: Invalid Operand 're' not a variable or function name"
>>> even though I used GrADs 2.0.a9.oga.1.
>>>
>>> Is the re function an extra thing one must install like a user define
>>> extension? Or is the re function built-in for GrADs 2.0.a9.oga.1.?
>>>
>>>
>> The extension re() is supposed to be include in all opengrads builds.
>> Which operating system are you using? Please send output of
>>
>> ga-> q config
>> ga-> q udx
>>
>> Did you do the regular opengrads bundle installation ("untar and go") or
>> did you perform the "classic installation"?
>>
>> A
>>
>>
>>
>>> Thanks
>>>
>>> Zheng
>>>
>>> On 12 April 2011 14:32, Subash Yeggina <subash.yeggina at gmail.com> wrote:
>>>
>>>> Hi! Ismaila,
>>>>
>>>> You are correct... The regridding seems to be working if it is done just
>>>> after the openning of the file.
>>>>
>>>> I tried doing the regridding after a few operations, and it failed. Not
>>>> sure of the logic behind it..
>>>>
>>>> have you been able to resolve this issue at ur end.
>>>>
>>>> My version of GrADS is *2.0.a9.oga.1.*
>>>>
>>>>
>>>> Thanks,
>>>> Subash
>>>>
>>>>
>>>> 'open rfpt5.ctl'
>>>> 'define newgrid = re(pr,0.25)
>>>>
>>>> On Fri, Apr 8, 2011 at 12:23 AM, Ismaila Diallo <
>>>> ismailadiallo64 at yahoo.fr> wrote:
>>>>
>>>>> Hi subash,
>>>>> i've used the re commend and i get this error :
>>>>>
>>>>> d re(pr,0.5)
>>>>> Syntax Error: Invalid Operand
>>>>> 're' not a variable or function name
>>>>> Error ocurred at column 1
>>>>> DISPLAY error: Invalid expression
>>>>> Expression = re(pr,0.5)
>>>>>
>>>>> I am using grads1.9
>>>>> Thank in advance
>>>>> ------------------------------
>>>>> *From:* Subash Yeggina <subash.yeggina at gmail.com>
>>>>> *To:* Ismaila Diallo <ismailadiallo64 at yahoo.fr>; GrADS Users Forum <
>>>>> gradsusr at gradsusr.org>
>>>>> *Sent:* Thursday, April 7, 2011 8:10 PM
>>>>> *Subject:* Re: [gradsusr] regrid data
>>>>>
>>>>> Dear Ismaila,
>>>>>
>>>>>
>>>>> I think you can do it by using the *re *command.
>>>>>
>>>>> Ex:
>>>>>
>>>>> define newg=re(<variable>,<resolution>).
>>>>>
>>>>> For more details you can check
>>>>> http://opengrads.org/doc/udxt/re/re.html#required_parameters
>>>>>
>>>>> <http://opengrads.org/doc/udxt/re/re.html#required_parameters>Subash
>>>>>
>>>>> On Thu, Apr 7, 2011 at 10:57 PM, Ismaila Diallo <
>>>>> ismailadiallo64 at yahoo.fr> wrote:
>>>>>
>>>>> dear grads User,
>>>>> i've to netcdf files with different resolution. I use grads1.9 and i
>>>>> went to regrids these data at a same resolution with my grads thus how
>>>>> should i do??
>>>>>
>>>>> Sincerely
>>>>> ismaila
>>>>>
>>>>> _______________________________________________
>>>>> gradsusr mailing list
>>>>> gradsusr at gradsusr.org
>>>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> gradsusr mailing list
>>>> gradsusr at gradsusr.org
>>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>>
>>>>
>>>
>>> _______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>
>>>
>>
>>
>> --
>> Arlindo da Silva
>> dasilva at alum.mit.edu
>>
>
>
> _______________________________________________
> 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/20110413/f36b2efc/attachment-0003.html
-------------- next part --------------
Command Environment Variables Function at Library
----------- --------------------------------------- --------------------------
printenv Expand environment variables c_xenv@^env.gex
runenv Expand env vars and run command c_env@^env.gex
@ Expand env vars and run command c_env@^env.gex
getenv Get value of environment variable c_getenv@^env.gex
setenv Set value of environment variable c_setenv@^env.gex
Command GxYAT: Image Generation Function at Library
----------- --------------------------------------- --------------------------
gxyat Save images in PNG/SVG/PDF/PS c_gxyat@^gxyat.gex
set_rgba Set color red/green/blue/alpha c_rgba@^gxyat.gex
Command Simple Extension Example Function at Library
----------- --------------------------------------- --------------------------
hello Hello, World! sample command c_hello@^libhello.gex
Command Interprocess Communication Function at Library
----------- --------------------------------------- --------------------------
ipc_verb IPC verbose toggle c_Verb@^libipc.gex
ipc_open Open stream for save/load c_Open@^libipc.gex
ipc_close Close stream c_Close@^libipc.gex
ipc_save Save expression to stream c_Save@^libipc.gex
ipc_define Define variable (obsolete) c_Define@^libipc.gex
ipc_error Print IPC error message c_Error@^libipc.gex
Command LATS: File Reformatting and Subsetting Function at Library
----------- --------------------------------------- --------------------------
set_lats Set LATS parameters c_lats_set@^liblats.gex
query_lats Query LATS parameters c_lats_query@^liblats.gex
lats_grid Define LATS grid c_lats_grid@^liblats.gex
lats_data Write data to LATS file c_lats_data@^liblats.gex
reinit_lats Re-init LATS parameters c_lats_reinit@^liblats.gex
Command Mike Fiorino's Extensions Function at Library
----------- --------------------------------------- --------------------------
mfhilo Find max/min or H/L in 2D field c_mfhilo@^libmf.gex
tcprop Properties radinf from central lon/lat c_tcprop@^libmf.gex
tcxy2rt cartesian -> cylindrical coords results only scriptvar RESULT c_tcx
y2rt@^libmf.gex
grhist histogram of expr c_grhist@^libmf.gex
Command Satellite Orbit Extensions Function at Library
----------- --------------------------------------- --------------------------
set_orb Set ORB parameters c_set@^orb.gex
orb_track Satellite ground tracks c_track@^orb.gex
Function Ben-Jei Tsuang's Extensions Function at Library
----------- --------------------------------------- --------------------------
lt Local time f_bjt@^libbjt.gex
jd Julian day f_bjt@^libbjt.gex
cosz Cosine solar zenith angle f_bjt@^libbjt.gex
dayratio Daylight ratio f_bjt@^libbjt.gex
if Conditional function f_bjt@^libbjt.gex
maxv Maximum value f_bjt@^libbjt.gex
minv Minimum value f_bjt@^libbjt.gex
which Label gridpoints f_bjt@^libbjt.gex
ftest F-test f_bjt@^libbjt.gex
ttest T-test f_bjt@^libbjt.gex
tfit Point linear regression f_bjt@^libbjt.gex
fit Global linear regression f_bjt@^libbjt.gex
tcorr2 Time correlation f_bjt@^libbjt.gex
tregr2 Point linear regression f_bjt@^libbjt.gex
tmave2 Time averaging w/masking f_bjt@^libbjt.gex
madvu Calculates -d(u*EXPR)/dx f_bjt@^libbjt.gex
madvv Calculates -d(V*EXPR)/dy f_bjt@^libbjt.gex
madvw Calculates -d(W*EXPR)/dp f_bjt@^libbjt.gex
muadv Zonal advection f_bjt@^libbjt.gex
mvadv Meridional advection f_bjt@^libbjt.gex
mwadv Vertical advection f_bjt@^libbjt.gex
satvap Saturated vapor pressure f_bjt@^libbjt.gex
dew Dew point temperature f_bjt@^libbjt.gex
lw Thermal infrared fluxes f_bjt@^libbjt.gex
lw2 Thermal infrared fluxes v2 f_bjt@^libbjt.gex
pinterp Pressure interpolation f_bjt@^libbjt.gex
zinterp Height interpolation f_bjt@^libbjt.gex
line Draws a line f_bjt@^libbjt.gex
vint2 Mass-weighted vertical integral f_bjt@^libbjt.gex
Function Streamfunction & Velocity Potential Function at Library
----------- --------------------------------------- --------------------------
fish Poisson solver f_fish@^fish.gex
fish_psi Compute streamfunction f_psichi@^fish.gex
fish_chi Compute velocity potential f_psichi@^fish.gex
fish_vor Compute vorticity f_psichi@^fish.gex
fish_div Compute divergence f_psichi@^fish.gex
Function Saakeskus Wx Function Collection Function at Library
----------- --------------------------------------- --------------------------
dewpt Dew-point temperature f_gsudf@^gsudf.gex
ept Equivalent potential temperature f_gsudf@^gsudf.gex
epi Potential Instability f_gsudf@^gsudf.gex
plcl Pressure at LCL f_gsudf@^gsudf.gex
shear Wind Shear f_gsudf@^gsudf.gex
srh1km Storm-relative Helicity 0-1km' f_gsudf@^gsudf.gex
srh3km Storm-relative Helicity 0-3km' f_gsudf@^gsudf.gex
tlcl Temperature at LCL f_gsudf@^gsudf.gex
tsindex Chance of T-storm Initiation f_gsudf@^gsudf.gex
ttindex Total Totals Index f_gsudf@^gsudf.gex
wchill Wind Chill Index (New) f_gsudf@^gsudf.gex
Function Simple Extension Example Function at Library
----------- --------------------------------------- --------------------------
hello Hello, World! sample function f_hello@^libhello.gex
Function Interprocess Communication Function at Library
----------- --------------------------------------- --------------------------
ipc_save Save expression to stream f_Save@^libipc.gex
ipc_load Load variable from file f_Load@^libipc.gex
Function Mike Fiorino's Extensions Function at Library
----------- --------------------------------------- --------------------------
smth2d Shuman smoother/de-smoother f_smth2d@^libmf.gex
xy2rt cartesian -> cylindrical coord f_xy2rt@^libmf.gex
uv2trw Find radial/tangential velocity f_uv2trw@^libmf.gex
re2 General interpolator (regrid2) f_re2@^libmf.gex
esmrf Saturation vapor pressure (old MRF) f_esmrf@^libmf.gex
linreg Linear regression: mx + b f_linreg@^libmf.gex
Function Satellite Orbit Extensions Function at Library
----------- --------------------------------------- --------------------------
orb_mask Satellite orbit masking f_mask@^orb.gex
Function Regridding Functions Function at Library
----------- --------------------------------------- --------------------------
re General interpolator ffre@^re.gex
re_ General interpolator (verbose) ffre_dbg@^re.gex
regrid2 regrid2-like wrapper for re() f_gsudf@^gsudf.gex
geos Interpolation to GEOS-5 Grids f_gsudf@^gsudf.gex
reimg Interpolation for Image Generation' f_gsudf@^gsudf.gex
Function Spherical Harmonic Analysis Function at Library
----------- --------------------------------------- --------------------------
sh_filt Spherical harmonic filter f_shfilt@^shfilt.gex
sh_power Spherical harmonic spectra f_shpowr@^shfilt.gex
More information about the gradsusr
mailing list