28 #include <grass/interpf.h> 48 for (j = ngstc; j <= nszc; j++)
49 array_cell[j - 1] = (
FCELL) params->
az[j];
51 if (!fwrite(array_cell + ngstc - 1,
sizeof(
FCELL), nszc - ngstc + 1,
56 for (j = ngstc; j <= nszc; j++)
58 array_cell[j - 1] = (
FCELL) params->
adx[j];
62 if (!fwrite(array_cell + ngstc - 1,
sizeof(
FCELL), nszc - ngstc + 1,
67 for (j = ngstc; j <= nszc; j++) {
69 if (params->
ady[j] > 0. && params->
ady[j] < 0.5)
70 params->
ady[j] = 360.;
71 array_cell[j - 1] = (
FCELL) params->
ady[j];
77 if (!fwrite(array_cell + ngstc - 1,
sizeof(
FCELL), nszc - ngstc + 1,
82 for (j = ngstc; j <= nszc; j++) {
86 if (!fwrite(array_cell + ngstc - 1,
sizeof(
FCELL), nszc - ngstc + 1,
91 for (j = ngstc; j <= nszc; j++)
94 if (!fwrite(array_cell + ngstc - 1,
sizeof(
FCELL), nszc - ngstc + 1,
99 for (j = ngstc; j <= nszc; j++)
102 if (!fwrite(array_cell + ngstc - 1,
sizeof(
FCELL), nszc - ngstc + 1,
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
void G_fseek(FILE *, off_t, int)
Change the file position of the stream.
int IL_write_temp_2d(struct interp_params *params, int ngstc, int nszc, off_t offset2)