[gradsusr] extract the lat, lon and alt grid point

RafaelCB rafael.ciram at gmail.com
Tue Nov 6 10:42:41 EST 2012


Thank you Jennifer
I already know how to do.

'open model.ctl'

* varying all latitudes
while( y <= 106 )

x=154
* varying all longitudes
while( x >= 1 )

* Selecting the corresponding grid point
'set x 'x
 linha=sublin(result,1)
 lat=subwrd(linha,4)

'set y 'y
 linha=sublin(result,1)
 lon=subwrd(linha,4)
'!echo 'lon','lat' | sed s@\ @@g >> latlon.dat'

Regards,

Rafael
-- 
*Rafael Censi Borges
Meteorologia - Epagri/Ciram
+55 (48)3665-5130
http://ciram.epagri.sc.gov.br*


2012/11/6 Jennifer Adams <jma at cola.iges.org>

> There are internal variables 'lat' and 'lon' that show the values for
> those grid coordinates. The altitude is only available if it is a data
> variable in your file. --Jennifer
>
> On Nov 6, 2012, at 7:31 AM, RafaelCB wrote:
>
> I would like to extract the latitude, longitude and altitude of each grid
> point model.
> Does anyone have any idea how can I do this?
>
> Regards,
>
> Rafael
>
> --
> *Rafael Censi Borges
> Meteorologia - Epagri/Ciram
> +55 (48)3665-5130
> http://ciram.epagri.sc.gov.br*
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
>  --
> Jennifer M. Adams
> IGES/COLA
> 4041 Powder Mill Road, Suite 302
> Calverton, MD 20705
> jma at cola.iges.org
>
>
>
>
> _______________________________________________
> 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/20121106/4cf0991c/attachment-0003.html 


More information about the gradsusr mailing list