Changeset 2366


Ignore:
Timestamp:
2010-11-09T12:24:40+01:00 (10 years ago)
Author:
gm
Message:

v3.3beta: correct errors in iof : unprotected underscore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/nemo_v3_3_beta/DOC/TexFiles/Chapters/Chap_SBC.tex

    r2351 r2366  
    638638\label{SBC_iof_imp} 
    639639 
    640 To activate this option, a non-empty string should be supplied in the weights filename column of the relevant namelist; 
    641 if this is left as an empty string no action is taken. 
    642 In the model, weights files are read in and stored in a structured type (WGT) in the fldread module, as and when they are first required. 
    643 This initialisation procedure determines whether the input data grid should be treated as cyclical or not by inspecting a global attribute stored in the weights input file. 
    644 This attribute must be called "ew_wrap" and be of integer type. 
     640To activate this option, a non-empty string should be supplied in the weights filename column  
     641of the relevant namelist; if this is left as an empty string no action is taken. 
     642In the model, weights files are read in and stored in a structured type (WGT) in the fldread  
     643module, as and when they are first required. 
     644This initialisation procedure determines whether the input data grid should be treated  
     645as cyclical or not by inspecting a global attribute stored in the weights input file. 
     646This attribute must be called "ew\_wrap" and be of integer type. 
    645647If it is negative, the input non-model grid is assumed not to be cyclic. 
    646648If zero or greater, then the value represents the number of columns that overlap. 
    647 E.g. if the input grid has columns at longitudes 0, 1, 2, .... , 359, then ew_wrap should be set to 0; 
    648 if longitudes are 0.5, 2.5, .... , 358.5, 360.5, 362.5, ew_wrap should be 2. 
    649 If the model does not find attribute ew_wrap, then a value of -999 is assumed. 
    650 In this case the fld_read routine defaults ew_wrap to value 0 and therefore the grid is assumed to be cyclic 
    651 with no overlapping columns. 
     649$E.g.$ if the input grid has columns at longitudes 0, 1, 2, .... , 359, then ew\_wrap should be set to 0; 
     650if longitudes are 0.5, 2.5, .... , 358.5, 360.5, 362.5, ew\_wrap should be 2. 
     651If the model does not find attribute ew\_wrap, then a value of -999 is assumed. 
     652In this case the \rou{fld\_read} routine defaults ew\_wrap to value 0 and therefore the grid  
     653is assumed to be cyclic with no overlapping columns. 
    652654(In fact this only matters when bicubic interpolation is required.) 
    653 Note that no testing is done to check the validity in the model, since there is no way of knowing the name used for the longitude variable, 
     655Note that no testing is done to check the validity in the model, since there is no way  
     656of knowing the name used for the longitude variable, 
    654657so it is up to the user to make sure his or her data is correctly represented. 
    655658 
    656659Next the routine reads in the weights. 
    657 Bicubic interpolation is assumed if it finds a variable with name "src05", otherwise bilinear interpolation is used. 
    658 The WGT structure includes dynamic arrays both for the storage of the weights (on the model grid), and when required, for reading in the variable to be interpolated (on the input data grid). 
    659 The size of the input data array is determined by examining the values in the "src" arrays to find the minimum and maximum i and j values required. 
    660 Since bicubic interpolation requires the calculation of gradients at each point on the grid, the corresponding arrays are dimensioned with a halo of width one grid point all the way around. 
    661 When the array of points from the data file is adjacent to an edge of the data grid, the halo is either a copy of the row/column next to it (non-cyclical case), or is a copy of one from the first few columns on the opposite side of the grid (cyclical case). 
     660Bicubic interpolation is assumed if it finds a variable with name "src05", otherwise  
     661bilinear interpolation is used. The WGT structure includes dynamic arrays both for  
     662the storage of the weights (on the model grid), and when required, for reading in  
     663the variable to be interpolated (on the input data grid). 
     664The size of the input data array is determined by examining the values in the "src"  
     665arrays to find the minimum and maximum i and j values required. 
     666Since bicubic interpolation requires the calculation of gradients at each point on the grid,  
     667the corresponding arrays are dimensioned with a halo of width one grid point all the way around. 
     668When the array of points from the data file is adjacent to an edge of the data grid,  
     669the halo is either a copy of the row/column next to it (non-cyclical case), or is a copy  
     670of one from the first few columns on the opposite side of the grid (cyclical case). 
    662671 
    663672\subsection{Limitations} 
Note: See TracChangeset for help on using the changeset viewer.