Spectral Interpolation

There are 2 codes to interpolate SEOM results to an arbitrary set of points:
  1. interp2d: a 2-dimensional interpolation package to use with SEOM-2D
  2. interp3d: a 3-dimensional interpolation package to use with SEOM-3D.

The code can be downloaded . To install edit the Makefile and do:
make interp2d
make interp3d
To run the code just issue the command interp2d . By default the input is read from a file called interp2d.dat. Idem for interp3d. The structures of the input files are listed below.

interp2d.dat

  1. sphere (logical flag)
    T if sphere, F otherwise
  2. grid_file (character)
    SEOM horizontal grid file name
  3. point_file (character)
    Name of file holding coordinates of points to interpolate to. There are 2 possible forms for this file:
  4. lon0, lon1, nxi (real, real, integer)
    min and max longitude, and number of points in x, if necessary
  5. lat0, lat1, nyi (real, real, integer)
    min and max latitude, and number of points in y, if necessary
  6. input_file (character)
    Name of input spectral element data
  7. output_file (character)
    Name of output interpolated data



interp3d.dat

Here is the structure of an interp3d.dat file. It is the data file read by the program interp3d and must reside in the directory where the command is issued.
  1. sphere (logical flag)
    T if sphere, F otherwise
  2. grid_file (character)
    SEOM horizontal grid file name
  3. point_file (character)
    Name of file holding coordinates of points to interpolate to. There are 2 possible forms for this file:
  4. lon0, lon1, nxi (real, real, integer)
    min and max longitude, and number of points in x, if necessary
  5. lat0, lat1, nyi (real, real, integer)
    min and max latitude, and number of points in y, if necessary
  6. z0, z1, nzi (real, real, integer)
    min and max altitude, and number of points in z, if necessary
  7. nelem_vt, npts_vt (integer, integer)
  8. elev_file (character)
    Name of elevation file
  9. input_file (character)
    Name of input spectral element data
  10. output_file (character)
    Name of output interpolated data

Notes on "interp3d.dat"


Below are sample interp3d.dat files: