[gradsusr] plotting station and model time series

Mira Losic mlosic at envsci.rutgers.edu
Sat Nov 6 18:45:03 EDT 2010


Hi again everyone,
I just wanted to say that I figured this one out on my own (finally!), and
I'll just briefly mention how I corrected the problem in case anyone else
ever stumbles upon the same issue.
The problem was that when I set the lat and lon for the wrf out file
(gridded data), the values were not set to be exactly the same but the
closest grid point.  Thus, when I tried to open the station data, the lat
and lon values were not exactly matching between the station data file and
what was set in GrADS.
A way to get around this was to open each file separately, define the lat
lon and variable at hand, and subsequently close the file.  This way I
could always reset the lat and lon for either grid or station data
individually for each new file I opened.  Hope this might help someone in
the future.
Cheers,
Mira

> Hi everyone,
>
> I'm trying to plot both WRF-ARW model output as a time series and station
> data on the same plot and I'm running into some strange problems.  I have
> no problem plotting each separately, but when I try and plot them together
> (open both ctl files and refer to each their variables as T and T.2 for
> example) I get an error saying that there are no stations to plot.
> The lat and lon ranges are declared only once and match exactly the
> station data lat and lon.
> If I do the same thing, opening several ctl files, but for different WRF
> files only (no station data), the T, T.2, T.3 method works just fine.
> Any insight on this would be greatly appreciated.
>
> Also, does anyone know if there is a way to skip time steps (say, display
> every other time step) for a station data file?  The 'skip' function only
> works for gridded data.
>
>
>
> Below is the relevant sample of my script for my first question.
>
> reinit
> *what file to open
> open BASERUN_StationVars.ctl
> open RUN2_StationVars.ctl
> open RankinInlet.ctl  ***(this is my station data file)***
>
> *set projection, display background, and resolution of background
> set display color white
> set mpdset hires
> set mproj nps
>
> *rankin inlet
> set lat 62.82
> set lon -92.12
>
> set t 1 123
> * calculate 2m temp
> d T2
> d T2.2
> d temp.3
>
>
>
> Thanks in advance,
> Mira
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>



More information about the gradsusr mailing list