27 #include <grass/interpf.h>
46 for (j = ngstc; j <= nszc; j++)
47 array_cell[j - 1] = (
FCELL)params->
az[j];
49 if (!fwrite(array_cell + ngstc - 1,
sizeof(
FCELL), nszc - ngstc + 1,
54 for (j = ngstc; j <= nszc; j++)
56 array_cell[j - 1] = (
FCELL)params->
adx[j];
60 if (!fwrite(array_cell + ngstc - 1,
sizeof(
FCELL), nszc - ngstc + 1,
65 for (j = ngstc; j <= nszc; j++) {
67 if (params->
ady[j] > 0. && params->
ady[j] < 0.5)
68 params->
ady[j] = 360.;
69 array_cell[j - 1] = (
FCELL)params->
ady[j];
75 if (!fwrite(array_cell + ngstc - 1,
sizeof(
FCELL), nszc - ngstc + 1,
80 for (j = ngstc; j <= nszc; j++) {
84 if (!fwrite(array_cell + ngstc - 1,
sizeof(
FCELL), nszc - ngstc + 1,
89 for (j = ngstc; j <= nszc; j++)
92 if (!fwrite(array_cell + ngstc - 1,
sizeof(
FCELL), nszc - ngstc + 1,
97 for (j = ngstc; j <= nszc; j++)
100 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)