This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<writer class="com.axibase.tsd.collector.writer.TcpAtsdWriter"> | |
<host>atsd_server</host> | |
<port>8081</port> | |
</writer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
scriptDir="`dirname $(readlink -f $0)`" | |
url="$1" | |
logPostfix="`date +%s`" | |
newcsvLog="$scriptDir/../logs/newcsv_${logPostfix}.log" | |
sendcsvLog="$scriptDir/../logs/send_${logPostfix}.log" | |
cleanLog="$scriptDir/../logs/cleaner_${logPostfix}.log" | |
csvDir="$scriptDir/../csv" | |
tmpDir="$scriptDir/../tmp" | |
if [ "$url" = "" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sum <- 0 | |
total_weight <- 0 | |
for (i in 1:length(pixels$x_shift)) { | |
x_shift <- pixels$x_shift[i] | |
y_shift <- pixels$y_shift[i] | |
coords <- get_lat_lon(x_0 + x_shift, y_0 + y_shift) | |
dist <- distGeo(c(lon_0, lat_0), c(coords[2], coords[1])) | |
weight <- cloud_base / (cloud_base^2 + dist^2)^(3/2) | |
sum <- sum + weight * matr[x_0 + x_shift, y_0 + y_shift] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
save_series(series, metric_col = 2, metric_name = "cloudiness_Himawari_b13", | |
entity = entities[i], verbose = FALSE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new_row[1, i + 1] <- get_density(lat = latitudes[i], lon = longitudes[i], matr = img_cont[ , , 1]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<property> | |
<name>hadoop.tmp.dir</name> | |
<value>/data/hdfs-cache</value> | |
<description>A base for other temporary directories.</description> | |
</property> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<property> | |
<name>dfs.name.dir</name> | |
<value>/data/hdfs-data-name</value> | |
</property> | |
<property> | |
<name>dfs.data.dir</name> | |
<value>/data/hdfs-data</value> | |
</property> |