Changes between Version 8 and Version 9 of Documentation/UserGuide/Ferret


Ignore:
Timestamp:
2020-05-11T17:15:16+02:00 (4 years ago)
Author:
aducharne
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/UserGuide/Ferret

    v8 v9  
    44Last revision: 2020/03/19, J. Lathière [[BR]] 
    55 
    6 '''REGULAR GRIDS'''[[BR]] 
     6== REGULAR GRIDS 
    77 
    88If you want to change the resolution of a file, ferret is a good choice. Here are the steps for creating a one degree global map from a higher resolution. The original script is taken from Matt Mcgrath. 
    99 
    10 [[BR]] 
     10You need to do this in two steps.  First, open up the file, create a new grid, regrid, and save.  Then you have to do it again, but this time using the longitude and latitude names for the axis.  '''If you do it in one step, the map gets distorted'''. 
    1111 
    12 You need to do this in two steps.  First, open up the file, create a new grid, regrid, and save.  Then you have to do it again, but this time using the longitude and latitude names for the axis.  If you do it in one step, the map gets distorted. 
    13  
    14 open ferret: 
     12Open ferret: 
    1513{{{ 
    1614> ferret 
     
    2422}}} 
    2523 
    26 this creates a grid that is 360x180. The name of the dimension lon and lat need to be different from the original file. 'pente' is the name of the selected variable. The new name for the longitude is 'longg' and the new name for the latitude  is 'latt'. 
     24This creates a grid that is 360x180. The name of the dimension lon and lat need to be different from the original file. 'pente' is the name of the selected variable. The new name for the longitude is 'longg' and the new name for the latitude  is 'latt'. 
    2725 
    2826{{{ 
     
    3331}}} 
    3432 
    35 now close ferret, open it again, and use regrid_pente_temp.nc: 
     33Now close ferret:  
    3634{{{ 
    3735yes? exit 
    3836}}} 
    3937 
    40 open ferret: 
     38To get a map of the new file, open ferret, and use regrid_pente_temp.nc: 
    4139{{{ 
    4240ferret 
     
    4543}}} 
    4644 
    47 '''IRREGULAR GRIDS''' [[BR]] 
     45== IRREGULAR GRIDS 
    4846 
    49 The method described above is convenient for regular grids but not for something more fancy or if you don't know the specifications of the source grid. Here is an example here is what you could do. Regridding big files can take some memory, therefore increase the memory allocation for ferret. 
     47The method described above is convenient for regular grids but not for something more fancy or if you don't know the specifications of the source grid. Here is of what you could do. Regridding big files can take some memory, therefore increase the memory allocation for ferret. 
    5048{{{ 
    5149ferret