[gradsusr] GRID[1] Size != GRID[3] Size

Andrew Revering andy at f5data.com
Tue Nov 2 11:20:23 EDT 2010


Alright, believe it or not I figured this one out too.

 

My two data sets are radar in .nc, and ruc model data in grib2.

 

What I was doing was regridding when defining the variables:

 

                'define preciptype = re(cvalue,0.037)'

                'define valrad = re(cvalue,0.037)'

 

                *some stuff here, then:

 

                'valrad = if(const(tmpsurface,<,10,0,const(valrad,0,-u))'

 

The fix was to have the regridding within the IF statement:

 

                'valrad =
if(const(re(tmpsurface,0.037),0,-u),<,10,0,const(re(valrad,0.037),0,-u))'

 

Not sure why, but it works.

 

 

From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org]
On Behalf Of Andrew Revering
Sent: Tuesday, November 02, 2010 9:53 AM
To: 'GrADS Users Forum'
Subject: Re: [gradsusr] GRID[1] Size != GRID[3] Size

 

I fixed my other problem that I posted about, but now that I switched to
Grib2 data, I'm still getting this error.

 

grid[1]'s size = 2529872

max grid[4]'s size = 2533236

size incompatible

 

Details in original email below..

 

From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org]
On Behalf Of Andrew Revering
Sent: Sunday, October 31, 2010 5:00 AM
To: 'GrADS Users Forum'
Subject: [gradsusr] GRID[1] Size != GRID[3] Size

 

I'm getting a Grid size incompatible error in Grads.

 

I have two data sources. a national radar mosaic in a .nc file, and a RUC
grib file.

 

I work with both data sets in variables that are regridded re(x,0.037) 

to that same size.

 

Why would I get this 'size incompatible' error? Also note that when I load
the same data as a Grib1 file, I do not get this error, but only when it's a
Grib2 file.

 

Is there something else I should constrain such as the N/S/E/W bounds of the
domain?

 

 

 

Andrew Revering

Convective Development, Inc.

http://www.convectivedevelopment.com/

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20101102/0edbccee/attachment.html 


More information about the gradsusr mailing list