[gradsusr] tcorr error: invalid grid coordinates
Jeffrey Duda
jdduda at iastate.edu
Tue Nov 16 17:26:23 EST 2010
Mira,
I don't use tcorr, but I did a quick check using some of my WRF data and I
had no problem getting it to work when I didn't close the individual files
between defining the variables. Perhaps try it without closing the files.
Jeff Duda
On Tue, Nov 16, 2010 at 4:10 PM, Mira Losic <mlosic at envsci.rutgers.edu>wrote:
> Hi everyone,
>
> I'm hoping someone can help me with the tcorr function. I am simply trying
> to correlate two WRF time series of temperature (T2) at a particular grid
> location and level from the beginning to end of my time series. (t=1 to
> t=123). The commands and errors are copied below.
>
> Also, I'd like to use tcorr to correlate my WRF output to my station data.
> Can tcorr find the correlation between station and gridded data?
>
> Many thanks,
> Mira
>
> ga-> open RUN4_StationVars.ctl
> Scanning description file: RUN4_StationVars.ctl
> Data file RUN4_StationVars.nc is open as file 1
> LON set to -116.1 -34.1464
> LAT set to 55.9 78.7109
> LEV set to 1 1
> Time values set: 1981:7:1:6 1981:7:1:6
> Notice: Implied interpolation for file RUN4_StationVars.ctl
> Interpolation will be performed on any data displayed from this file
> ga-> set lat 68.47
> LAT set to 68.4613 68.4613
> ga-> set lon -66.82
> LON set to -66.8144 -66.8144
> ga-> set t 1 123
> Time values set: 1981:7:1:6 1981:7:31:18
> ga-> define test=T2-273.15
> Notice: Automatic Grid Interpolation Taking Place
> Define memory allocation size = 492 bytes
> ga-> close 1
> File 1 has been closed
> ga-> open RUN3_StationVars.ctl
> Scanning description file: RUN3_StationVars.ctl
> Data file RUN3_StationVars.nc is open as file 1
> LON set to -116.1 -34.1464
> LAT set to 55.9 78.7109
> LEV set to 1 1
> Time values set: 1981:7:1:6 1981:7:1:6
> Notice: Implied interpolation for file RUN3_StationVars.ctl
> Interpolation will be performed on any data displayed from this file
> ga-> set lat 68.47
> LAT set to 68.4613 68.4613
> ga-> set lon -66.82
> LON set to -66.8144 -66.8144
> ga-> set t 1 123
> Time values set: 1981:7:1:6 1981:7:31:18
> ga-> define test2=T2-273.15
> Notice: Automatic Grid Interpolation Taking Place
> Define memory allocation size = 492 bytes
> ga-> close 1
> File 1 has been closed
> ga-> d tcorr(test,test2,t=1,t=123)
> TCORR: dim = 3, start = 1, end = 123
> Data Request Error: Invalid grid coordinates
> Varying dimension 3 decreases: -2.89491e+06 to -2.89491e+06
> Error ocurred getting variable 'test'
> Error from TCORR: Error getting grids
> Operation Error: Error from tcorr function
> Error ocurred at column 1
> DISPLAY error: Invalid expression
> Expression = tcorr(test,test2,t=1,t=123)
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
--
Jeff Duda
Iowa State University
Meteorology Graduate Student
3134 Agronomy Hall
www.meteor.iastate.edu/~jdduda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20101116/04fde6bd/attachment-0003.html
More information about the gradsusr
mailing list