Changes between Version 8 and Version 9 of Documentation/UserGuide/Ferret
- Timestamp:
- 2020-05-11T17:15:16+02:00 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/UserGuide/Ferret
v8 v9 4 4 Last revision: 2020/03/19, J. Lathière [[BR]] 5 5 6 '''REGULAR GRIDS'''[[BR]] 6 == REGULAR GRIDS 7 7 8 8 If 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. 9 9 10 [[BR]] 10 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'''. 11 11 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: 12 Open ferret: 15 13 {{{ 16 14 > ferret … … 24 22 }}} 25 23 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'.24 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'. 27 25 28 26 {{{ … … 33 31 }}} 34 32 35 now close ferret, open it again, and use regrid_pente_temp.nc: 33 Now close ferret: 36 34 {{{ 37 35 yes? exit 38 36 }}} 39 37 40 open ferret:38 To get a map of the new file, open ferret, and use regrid_pente_temp.nc: 41 39 {{{ 42 40 ferret … … 45 43 }}} 46 44 47 '''IRREGULAR GRIDS''' [[BR]] 45 == IRREGULAR GRIDS 48 46 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 iswhat you could do. Regridding big files can take some memory, therefore increase the memory allocation for ferret.47 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 of what you could do. Regridding big files can take some memory, therefore increase the memory allocation for ferret. 50 48 {{{ 51 49 ferret