[gradsusr] gr2stn() doesn't match plot
Oriol Ciurana
uri at uriens.cat
Mon Nov 17 15:26:30 EST 2014
Doncs aleshores jo tampoc ho acabo de veure clar, a veure si ens ho
aclareixen i de pas aprenem una cosa nova.
Oriol
2014-11-17 20:39 GMT+01:00 Miquel Bernis <bernisfeina at gmail.com>:
> Gràcies per la resposta Oriol! El que intento és simplement crear una
> interpolació per a una estació concreta. Feia això del mapa per comparar el
> resultat i veure que era correcta. Sembla clar que no entenc la funció
> gr2stn(). Si el que em demana és una malla, el que jo interpreto és que
> hauria de deixar LAT i LON sense fixar, però si ho faig així apareix aquest
> error
>
> ga-> d gr2stn(ps,41.2,2.2)
> Error from GR2STN: 2nd argument is not a station expression
>
> No ho caço.
>
> >>>>
>
> What I'm trying to do is just interpolate to an specific station. I made
> the plot thing in order to check if the interpolation matched more or less
> with what I see on the map. Seems clear that I don't get the gr2str
> function. If the first parameter must be a grid, I understand that
> shouldn't attach lat and lon, but if I don't do that get this error message:
>
> ga-> d gr2stn(ps,41.2,2.2)
> Error from GR2STN: 2nd argument is not a station expression
>
> don't get it.
>
> 2014-11-17 19:16 GMT+01:00 Oriol Ciurana <uri at uriens.cat>:
>
>> Hola Miquel,
>>
>> No entenc exactament què pretens fer, a veure si ho entenc. Sembla que
>> primer estiguis pintant un mapa de temperatures i després vulguis obtenir
>> el valor numèric d'un punt geogràfic concret. Si és així, és més fàcil,
>> fixa la LAT i la LON al punt que desitgis i fes directament un "d
>> tsfc-273.15", això directament et donarà el valor numèric a la consola.
>>
>> La funció gr2stn admet com a primer paràmetre una malla i no un
>> paràmetre, mira't bé la definició, crec que no la tens ben entesa:
>> http://www.iges.org/grads/gadoc/gradfuncgr2stn.html
>>
>> A reveure,
>>
>> Oriol
>>
>> 2014-11-17 17:27 GMT+01:00 Miquel Bernis <bernisfeina at gmail.com>:
>>
>>> Hi everyone,
>>>
>>> I'm running grads 2.0.a9 on a Virtual Machine Ubuntu 12.04
>>>
>>> I'm sorry because I'm new using the software and maybe this is a quite
>>> basic question. I would like to ask you about the function gr2stn(), my
>>> problem is that when I try to compare the results of ploting any variable,
>>> with the results of using gr2stn for an specific point doesn't seem to
>>> match. Using the example model.ctl of the basic grads tutorial it seems
>>> that tsfc-273 on the label 1000 rounds 10 degrees (more or less) on 42N 2E,
>>> but when I lock lat and lon, the result of using gr2stn() get me to a 26.8,
>>> which is no quite the expected. It's the same in other labels, variables,
>>> and even with other files. Does anybody know what I'm doing wrong?
>>>
>>> Thanks for reading. I would appreciate your help.
>>> Miquel
>>>
>>>
>>> ga-> d tsfc-273
>>> Contouring: -0 to 18 interval 2
>>> ga-> s gxout print
>>> Unknown command: s
>>> ga-> set gxout print
>>> ga-> set lat 0
>>> LAT set to 0 0
>>> ga-> set lon 0
>>> LON set to 0 0
>>> ga-> d gr2stn(tsfc-273,42.2,2.1)
>>> Printing Stations -- 1 Reports -- Undef = -9.99e+08
>>> xxxxxxxx 42.2 2.1 1000
>>> 26.8196
>>>
>>> _______________________________________________
>>> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20141117/94713e41/attachment.html
More information about the gradsusr
mailing list