1function frequencyToBand(frequency) { 2 result = parseInt(frequency); 3 4 if(result >= 14000000 && result <= 14400000) { 5 return '20m'; 6 } 7 else if(result >= 18000000 && result <= 19000000) { 8 return '17m'; 9 } 10 else if(result >= 1810000 && result <= 2000000) { 11 return '160m'; 12 } 13 else if(result >= 3000000 && result <= 4000000) { 14 return '80m'; 15 } 16 else if(result >= 5250000 && result <= 5450000) { 17 return '60m'; 18 } 19 else if(result >= 7000000 && result <= 7500000) { 20 return '40m'; 21 } 22 else if(result >= 10000000 && result <= 11000000) { 23 return '30m'; 24 } 25 else if(result >= 21000000 && result <= 21600000) { 26 return '15m'; 27 } 28 else if(result >= 24000000 && result <= 25000000) { 29 return '12m'; 30 } 31 else if(result >= 28000000 && result <= 30000000) { 32 return '10m'; 33 } 34 else if(result >= 50000000 && result <= 56000000) { 35 return '6m'; 36 } 37 else if(result >= 144000000 && result <= 148000000) { 38 return '2m'; 39 } 40 else if(result >= 219000000 && result <= 225000000) { 41 return '1.25m'; 42 } 43 else if(result >= 430000000 && result <= 440000000) { 44 return '70cm'; 45 } 46 else if(result >= 902000000 && result <= 928000000) { 47 return '33cm'; 48 } 49 else if(result >= 1200000000 && result <= 1600000000) { 50 return '23cm'; 51 } 52 else if(result >= 2300800000 && result <= 2890800000) { 53 return '13cm'; 54 } 55 else if(result >= 3300000000 && result <= 3450000000) { 56 return '9cm'; 57 } 58 else if(result >= 5650000000 && result <= 5700000000) { 59 return '6cm'; 60 } 61 else if(result >= 10125000000 && result <= 10525000000) { 62 return '3cm'; 63 } 64} 65 66function LatLng2Loc(y, x, num) { 67 if (x<-180) {x=x+360;} 68 if (x>180) {x=x-360;} 69 var yqth, yi, yk, ydiv, yres, ylp, y; 70 var ycalc = new Array(0,0,0); 71 var yn = new Array(0,0,0,0,0,0,0); 72 73 var ydiv_arr=new Array(10, 1, 1/24, 1/240, 1/240/24); 74 ycalc[0] = (x + 180)/2; 75 ycalc[1] = y + 90; 76 77 for (yi = 0; yi < 2; yi++) { 78 for (yk = 0; yk < 5; yk++) { 79 ydiv = ydiv_arr[yk]; 80 yres = ycalc[yi] / ydiv; 81 ycalc[yi] = yres; 82 if (ycalc[yi] > 0) ylp = Math.floor(yres); else ylp = Math.ceil(yres); 83 ycalc[yi] = (ycalc[yi] - ylp) * ydiv; 84 yn[2*yk + yi] = ylp; 85 } 86 } 87 88 var qthloc=""; 89 if (num >= 2) qthloc+=String.fromCharCode(yn[0] + 0x41) + String.fromCharCode(yn[1] + 0x41); 90 if (num >= 4) qthloc+=String.fromCharCode(yn[2] + 0x30) + String.fromCharCode(yn[3] + 0x30); 91 if (num >= 6) qthloc+=String.fromCharCode(yn[4] + 0x41) + String.fromCharCode(yn[5] + 0x41); 92 if (num >= 8) qthloc+=' ' + String.fromCharCode(yn[6] + 0x30) + String.fromCharCode(yn[7] + 0x30); 93 if (num >= 10) qthloc+=String.fromCharCode(yn[8] + 0x61) + String.fromCharCode(yn[9] + 0x61); 94 return qthloc; 95 96}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.