Mira,<br>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.<br>
<br>Jeff Duda<br><br><div class="gmail_quote">On Tue, Nov 16, 2010 at 4:10 PM, Mira Losic <span dir="ltr"><<a href="mailto:mlosic@envsci.rutgers.edu">mlosic@envsci.rutgers.edu</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;">
Hi everyone,<br>
<br>
I'm hoping someone can help me with the tcorr function. I am simply trying<br>
to correlate two WRF time series of temperature (T2) at a particular grid<br>
location and level from the beginning to end of my time series. (t=1 to<br>
t=123). The commands and errors are copied below.<br>
<br>
Also, I'd like to use tcorr to correlate my WRF output to my station data.<br>
Can tcorr find the correlation between station and gridded data?<br>
<br>
Many thanks,<br>
Mira<br>
<br>
ga-> open RUN4_StationVars.ctl<br>
Scanning description file: RUN4_StationVars.ctl<br>
Data file RUN4_StationVars.nc is open as file 1<br>
LON set to -116.1 -34.1464<br>
LAT set to 55.9 78.7109<br>
LEV set to 1 1<br>
Time values set: 1981:7:1:6 1981:7:1:6<br>
Notice: Implied interpolation for file RUN4_StationVars.ctl<br>
Interpolation will be performed on any data displayed from this file<br>
ga-> set lat 68.47<br>
LAT set to 68.4613 68.4613<br>
ga-> set lon -66.82<br>
LON set to -66.8144 -66.8144<br>
ga-> set t 1 123<br>
Time values set: 1981:7:1:6 1981:7:31:18<br>
ga-> define test=T2-273.15<br>
Notice: Automatic Grid Interpolation Taking Place<br>
Define memory allocation size = 492 bytes<br>
ga-> close 1<br>
File 1 has been closed<br>
ga-> open RUN3_StationVars.ctl<br>
Scanning description file: RUN3_StationVars.ctl<br>
Data file RUN3_StationVars.nc is open as file 1<br>
LON set to -116.1 -34.1464<br>
LAT set to 55.9 78.7109<br>
LEV set to 1 1<br>
Time values set: 1981:7:1:6 1981:7:1:6<br>
Notice: Implied interpolation for file RUN3_StationVars.ctl<br>
Interpolation will be performed on any data displayed from this file<br>
ga-> set lat 68.47<br>
LAT set to 68.4613 68.4613<br>
ga-> set lon -66.82<br>
LON set to -66.8144 -66.8144<br>
ga-> set t 1 123<br>
Time values set: 1981:7:1:6 1981:7:31:18<br>
ga-> define test2=T2-273.15<br>
Notice: Automatic Grid Interpolation Taking Place<br>
Define memory allocation size = 492 bytes<br>
ga-> close 1<br>
File 1 has been closed<br>
ga-> d tcorr(test,test2,t=1,t=123)<br>
TCORR: dim = 3, start = 1, end = 123<br>
Data Request Error: Invalid grid coordinates<br>
Varying dimension 3 decreases: -2.89491e+06 to -2.89491e+06<br>
Error ocurred getting variable 'test'<br>
Error from TCORR: Error getting grids<br>
Operation Error: Error from tcorr function<br>
Error ocurred at column 1<br>
DISPLAY error: Invalid expression<br>
Expression = tcorr(test,test2,t=1,t=123)<br>
<br>
<br>
<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>
</blockquote></div><br><br clear="all"><br>-- <br>Jeff Duda<br>Iowa State University<br>Meteorology Graduate Student<br>3134 Agronomy Hall<br><a href="http://www.meteor.iastate.edu/~jdduda">www.meteor.iastate.edu/~jdduda</a><br>