Hi,
Thank you to both of you.
I will test what is better/easier.
Thanks a lot.
Marina
De: owner-ferret_users@xxxxxxxx [mailto:owner-ferret_users@xxxxxxxx]
En nombre de Ansley Manke
Enviado el: lunes, 20 de abril de 2015 18:52
Para: ferret_users@xxxxxxxx
Asunto: Re: [ferret_users] define axis / grid from variables
Marina,
I have one other idea to throw in here.
For picking out individual locations from a curvilinear grid, the SAMPLEXY_CURV* functions are useful. So if all you need is a few specific locations, you could sample the data and save the resulting time series or depth profiles to compare it to other data.
Ansley
On 4/20/2015 5:07 AM, Marina Chifflet wrote:
Hi Paulo,
Thanks for your answer.
To make a “shade” or a “fill” of the variables, yes, it’s not a problem. We use var,lon,lat
But I would like to save the variables with a geo-ref grid to be able to extract the simulated variable at a defined position lon/lat and thus compare it to
data.
I’m going to look the link you’ve indicated. Thanks
Marina
Hi Marina,
Try the attached script and see if you get the same output.
You may wish to look at the curv_to_rect function
(
http://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/appendix-a-external-functions/CURV-TO-RECT?searchterm=curv
)
if are going to combine your data with data from other sources.
Saludos,
Paulo
On Mon, 2015-04-20 at 08:54 +0000, Marina Chifflet wrote:
Hi Folks
I apologize for the easy question, but I can’t find the right syntax and I’m becoming crazy….
I have files with model outputs on a i/j/k grid (not geo-ref)
I=1:236 / j=1:150 / k=1:72
(example of the diatoms file “1997_4.3v4_DIAT_march.nc” on
ftp://ftp.azti.es/resto/mchifflet/)
On other hand, I have the latitudes and longitudes in a separated file, with the same i/j grid: ll5km.nc (attached file)
LAT and LON are defined on the 2D grid i,j
How can I create axis/grid from the variables in ll5km.nc ?
To be able to save the output variables of the model on the right grid.
I tried a lot of syntaxes but can’t find the right one.
Because each of the variables LAT and LON are defined on a 2D i,j grid, I cannot use :
define axis/x/from_data/name=longulf lon[d=1]
Do you know the syntax to do this?
Thanks a lot.
Regards,
______________________________________
Dr Marina Chifflet
AZTI - Tecnalia / Marine research Division
Herrera Kaia Portualde z/g
20110 Pasaia (Gipuzkoa) - Spain
Tel: (+34) 667 174 495
e-mail: mchifflet@xxxxxxx
http://www.researchgate.net/profile/Marina_Chifflet
http://www.azti.es