- Timestamp:
- 2015-03-03T13:31:02+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2015/dev_r5087_NOC2_JATTR/DOC/TexFiles/Chapters/Chap_MISC.tex
r4147 r5117 141 141 computational domain is laid out on local processor memories following a 2D 142 142 horizontal splitting. % (see {\S}IV.2-c) ref to the section to be updated 143 144 \subsection{Simple subsetting of input files via netCDF attributes} 145 146 The extended grids for use with the under-shelf ice cavities will result in redundant rows 147 around Antarctica if the ice cavities are not active. A simple mechanism for subsetting 148 input files associated with the extended domains has been implemented to avoid the need to 149 maintain different sets of input fields for use with or without active ice cavities. The 150 existing 'zoom' options are overly complex for this task and marked for deletion anyway. 151 This alternative subsetting operates for the j-direction only and works by optionally 152 looking for and using a global file attribute (named: \np{open\_ocean\_jstart}) to 153 determine the starting j-row for input. The use of this option is best explained with an 154 example: Consider an ORCA1 configuration using the extended grid bathymetry and coordinate 155 files: 156 \vspace{-10pt} 157 \begin{alltt} 158 \tiny 159 \begin{verbatim} 160 eORCA1_bathymetry_v2.nc 161 eORCA1_coordinates.nc 162 \end{verbatim} 163 \end{alltt} 164 \noindent These files define a horizontal domain of 362x332. Assuming the first row with 165 open ocean wet points in the non-isf bathymetry for this set is row 42 (Fortran indexing) 166 then the formally correct setting for \np{open\_ocean\_jstart} is 41. Using this value as the 167 first row to be read will result in a 362x292 domain which is the same size as the original 168 ORCA1 domain. Thus the extended coordinates and bathymetry files can be used with all the 169 original input files for ORCA1 if the ice cavities are not active (\np{ln\_isfcav = 170 .false.}). Full instructions for achieving this are: 171 172 \noindent Add the new attribute to any input files requiring a j-row offset, i.e: 173 \vspace{-10pt} 174 \begin{alltt} 175 \tiny 176 \begin{verbatim} 177 ncatted -a open_ocean_jstart,global,a,d,41 eORCA1_coordinates.nc 178 ncatted -a open_ocean_jstart,global,a,d,41 eORCA1_bathymetry_v2.nc 179 \end{verbatim} 180 \end{alltt} 181 182 \noindent Add the logical switch to \ngn{namcfg} in the configuration namelist and set true: 183 %--------------------------------------------namcfg-------------------------------------------------------- 184 \namdisplay{namcfg_orca1} 185 %-------------------------------------------------------------------------------------------------------------- 186 187 \noindent Note the j-size of the global domain is the (extended j-size minus 188 \np{open\_ocean\_jstart} + 1 ) and this must match the size of all datasets other than 189 bathymetry and coordinates currently. However the option can be extended to any global, 2D 190 and 3D, netcdf, input field by adding the: 191 \vspace{-10pt} 192 \begin{alltt} 193 \tiny 194 \begin{verbatim} 195 lrowattr=ln_use_jattr 196 \end{verbatim} 197 \end{alltt} 198 optional argument to the appropriate \np{iom\_get} call and the \np{open\_ocean\_jstart} attribute to the corresponding input files. It remains the users responsibility to set \np{jpjdta} and \np{jpjglo} values in the \np{namelist\_cfg} file according to their needs. 143 199 144 200 %>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Note: See TracChangeset
for help on using the changeset viewer.