New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 2718 for trunk/NEMOGCM/TOOLS/WEIGHTS/README – NEMO

Ignore:
Timestamp:
2011-04-04T12:03:24+02:00 (13 years ago)
Author:
sga
Message:

NEMO trunk: small corrections to the weights generation code in the TOOLS directory for nemo 3.3

  • typos in README file corrected
  • scripgrid.F90 now allows any input nemo grid filename (but lat/lon names have to begin with glam/gphi)
  • scripinterp.F90 now actually does something
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/TOOLS/WEIGHTS/README

    r2448 r2718  
    4848                         ./ 
    4949                          | 
    50      +-------------+--------------+ 
    51   SCRIP1.4      nocsutil         bin 
     50     +-------------+--------------+--------------+ 
     51  SCRIP1.4      nocsutil         src            bin 
    5252 
    5353SCRIP1.4 contains the unmodified copy (apart from compression of two sample netcdf 
     
    5656 
    5757The bin directory contains python script freeform.py. 
    58 This is run to reformat the code for use within the NEMO 3.3 FCm framework. 
     58This is run to reformat the code for use within the NEMO 3.3 fcm framework. 
    5959It creates and populates a directory called 'src' with copied and modified versions 
    60 of the SCRIP library routines.  Changes are described in the src/CHANGES file. 
     60of the SCRIP library routines (and derived programs from the nocsutil directory).   
     61Changes are described in the src/CHANGES file. 
    6162This script has already been run and only needs to be re-executed if SCRIP is updated. 
    6263 
    63 The nocscrip directory contains the code for the three programs used to  
    64 generate a weights file. These are: 
     64The src directory also contains the three programs used to generate a weights file. 
     65The three programs are: 
    6566 
    6667scripgrid.exe (scripgrid.F90) which creates two grid description files suitable for 
     
    8889example namelists provided are located in its refout subdirectory. 
    8990 
    90 Installation is by use of the makenemo script. 
     91Installation is by use of the maketools script. 
     92E.g. change to the NEMOGCM/TOOLS directory and type: 
     93 
     94./maketools -help 
     95 
     96and, for example: 
     97 
     98./maketools -m gfortran_linux -n WEIGHTS 
     99 
    91100 
    92101Example Use 
     
    173182the grid centre and corner locations required by scrip. In the example given, 
    174183a file called 'coordinates.nc' must exist in the current directory. This is 
    175 recognised by scripgrid as a nemo coordinates file and the correct corner 
     184used by scripgrid as a nemo coordinates file and the correct corner 
    176185locations appropriate to the named grid centres are obtained (i.e. since 
    177186glamt is named, glamf and gphif will be used to provide corner coordinates). 
     187The nemo file need not be called 'coordinates.nc' (e.g. '1_coordinates.nc' instead), 
     188but must have longitude and latitude variables which start with the four  
     189characters 'gphi' and 'glam' respectively. 
    178190"input_file" file must contain at least one variable on a grid whose axes are 
    179191described by the netcdf coordinate variables named in input_lon and input_lat. 
Note: See TracChangeset for help on using the changeset viewer.