[Thread Prev][Thread Next][Index]

Re: [ferret_users] Changing variable's grid



Hi Szymon -
Olivier's solution sounds just fine, but do check in your original dataset.  Are there 2D variables that represent longitude and latitude? If so, the data is on a curvilinear grid, and you can look in the Ferret Users Guide for more details about handling data on such grids.

Ansley


On 4/19/2011 7:55 AM, Szymon Roziewski wrote:
Thank you very much for your solution.

It works well know.

I appreciate your quick responses.

Martin:
Thank you for your wider explanation of the problem.

Best wishes,
Szymon Roziewski

2011/4/19 Olivier Marti <olivier.marti@xxxxxxxxxxxx>

Le 19 avr. 2011 à 15:55, Szymon Roziewski a écrit :

> Hello there,
>
> I am wondering if it's possible to change the grid for a defined variable?
> I mean that e.g. I have tmp variable on grid (132,145) -- elements of this grid are integers
> and eventually I want it to be on grid 132,145 but with elements defining longitudes and latitudes (real numbers).
> It's simple but I can't do it in ferret.
>
> Sth like that
> tmp = tmp[g=final_grid] doesn't work and I know why but how to do..?


If I undersand well your needs, you should use @ASN transform, and not use recursive definition of variables :

tmp2 = tmp[g=final_grid@ASN]

Olivier

--
Dr. Olivier Marti  - mailto:olivier.marti@xxxxxxxxxxxx
Laboratoire des Sciences du Climat et de l'Environnement
Institut Pierre Simon Laplace
Laboratoire CEA-CNRS-UVSQ  -  UMR 8212
Tel : +33 1 69 08 77 27 - Mob : +33 6 45 36 43 74
Fax: +33 1 69 08 30 73
<http://www.lsce.ipsl.fr/Pisp/56/olivier.marti.html>











--
Z wyrazami szacunku,
Szymon Roziewski

[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement