[Thread Prev][Thread Next][Index]

Re: [ferret_users] define axis / grid from variables



Did you try this ?

yes? use ll5km.nc
yes? sh d
     currently SET data sets:
    1> ./ll5km.nc  (default)
 name     title                             I         J         K         L         M         N
 XLATLON                                   1:236     ...       ...       ...       ...       ...
 YLATLON                                   ...       1:150     ...       ...       ...       ...
 LAT      LATITUDES                        1:236     1:150     ...       ...       ...       ...
 LON      LONGITUDES                       1:236     1:150     ...       ...       ...       ...
 
yes? sh g lat
    GRID GGE3
 name       axis              # pts   start                end
 XGULF     X                  236 r   1                    236
 YGULF     Y                  150 r   1                    150
 normal    Z
 normal    T
 normal    E
 normal    F
yes? DEFINE GRID/LIKE=LAT mygrid
yes? sh g mygrid
    GRID MYGRID
 name       axis              # pts   start                end
 XGULF     X                  236 r   1                    236
 YGULF     Y                  150 r   1                    150
 normal    Z
 normal    T
 normal    E
 normal    F
yes?
yes? define axis/x/from_data/name=longs x[g=lon]
yes? sh axis longs
 name       axis              # pts   start                end
 LONGS     X                  236 r   1                    236
   Axis span (to cell edges) = 236


--
Akshay Hegde,                                   
Forum Advisor                                      
The Unix and Linux Forums                   
http://www.unix.com                             
http://in.linkedin.com/pub/akshay-hegde/59/b3/b1b



On Mon, Apr 20, 2015 at 8:54 AM, Marina Chifflet <mchifflet@xxxxxxx> 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

 



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

Privacy Policy | Disclaimer | Accessibility Statement