contrib/dsgrid/Src/dsgrid2s.c
float *c_dsgrid2s(int n, float x[], float y[], float u[],
                  int nx, int ny, float xo[], float yo[], int *ier)
{
  float zo[1] = {0.}, *z, *retval, perror = 1.;
  
  z = (float *) calloc(n, sizeof(float));
  if (z == NULL) {
    DSErrorHnd(13, "c_dsgrid2s", ds_filee, "\n");
    *ier = ds_error_status;
    return(&perror);
  }

  retval = c_dsgrid3s(n, x, y, z, u, nx, ny, 1, xo, yo, zo, ier);

  free(z);
  return(retval);
}
/*
 *  Interpolate randomly-spaced 2D input data to a regularly spaced grid.
 *  Single precision version.
 */
Interpolate randomly-spaced 2D input data to a regularly spaced grid.
Single precision version.
Interpolate randomly - spaced 2D input data to a regularly spaced grid . Single precision version .
float *c_dsgrid2s(int n, float x[], float y[], float u[],
                  int nx, int ny, float xo[], float yo[], int *ier)
{
  float zo[1] = {0.}, *z, *retval, perror = 1.;
  z = (float *) calloc(n, sizeof(float));
  if (z == NULL) {
    DSErrorHnd(13, "c_dsgrid2s", ds_filee, "\n");
    *ier = ds_error_status;
    return(&perror);
  }
  retval = c_dsgrid3s(n, x, y, z, u, nx, ny, 1, xo, yo, zo, ier);
  free(z);
  return(retval);
}
float * c_dsgrid2s ( int n , float x [ ] , float y [ ] , float u [ ] , int nx , int ny , float xo [ ] , float yo [ ] , int * ier ) { float zo [ 1 ] = { 0. } , * z , * retval , perror = 1. ; z = ( float * ) calloc ( n , sizeof ( float ) ) ; if ( z == NULL ) { DSErrorHnd ( 13 , " " , ds_filee , " \n " ) ; * ier = ds_error_status ; return ( & perror ) ; } retval = c_dsgrid3s ( n , x , y , z , u , nx , ny , 1 , xo , yo , zo , ier ) ; free ( z ) ; return ( retval ) ; }
Interpolate randomly-spaced 2D input data to a regularly spaced grid.
Interpolate randomly - spaced 2D input data to a regularly spaced grid .