65 |
|
fscanf(EPW_FILE,",%[^,]s",country); |
66 |
|
fscanf(EPW_FILE,",%[^,]s",country); |
67 |
|
sprintf(keyword,"place %s_%s\n",city,country); |
68 |
– |
printf("%s",keyword); |
68 |
|
fprintf(WEA_FILE,"%s",keyword); |
69 |
|
|
70 |
|
fscanf(EPW_FILE,",%[^,]s",country); |
71 |
|
fscanf(EPW_FILE,",%[^,]s",country); |
72 |
|
fscanf(EPW_FILE,",%[^,]s",latitude); |
74 |
– |
printf("latitude %s\n",latitude); |
73 |
|
fprintf(WEA_FILE,"latitude %s\n",latitude); |
74 |
|
fscanf(EPW_FILE,",%[^,]s",longitude); |
75 |
|
|
78 |
– |
printf("longitude %.2f\n",-1.0*atof(longitude)); |
76 |
|
fprintf(WEA_FILE,"longitude %.2f\n",-1.0*atof(longitude)); |
77 |
|
fscanf(EPW_FILE,",%[^,]s",time_zone); |
81 |
– |
printf("time_zone %.2f\n",-15.0*atof(time_zone)); |
78 |
|
fprintf(WEA_FILE,"time_zone %.0f\n",-15.0*atoi(time_zone)); |
79 |
|
fscanf(EPW_FILE,",%s[^\n]",elevation); |
84 |
– |
printf("site_elevation %s\nweather_data_file_units 1\n",elevation); |
80 |
|
fprintf(WEA_FILE,"site_elevation %s\nweather_data_file_units 1\n",elevation); |
81 |
|
|
82 |
|
fscanf(EPW_FILE,"%*[^\n]");fscanf(EPW_FILE,"%*[\n\r]"); |