1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207
|
# Projection
This aims at editing the auto generated projections and the possible parameters related to it. The goal is not to explain what every option does, but rather allow users to find the right flags in CLI mode.
## General
The settings for the auto generated projections are saved in satdump_cfg.json
Beware that you need to edit /usr/share/satdump/satdump_cfg.json (with su) if you installed SatDump system-wide.
The settings for the different instruments and their composites can be found under:
```
"viewer": {
"instruments": {
...
}
}
```
This is an example how one instrument could be listed:
```
"viewer": {
"instruments": {
...
"avhrr_3": {
"handler": "image_handler",
"name": "AVHRR/3",
"rgb_composites": {
"221": {
"equation": "ch2, ch2, ch1",
"geo_correct": true,
"project": {
"width": 4096,
"height": 2048,
"old_algo": true,
"draw_map": true,
"equalize": true,
"config": {
"type": "equirectangular"
}
}
},
...
},
...
},
...
}
}
```
Each RGB composite can be individually projected. There are a few different possible projection types that can be selected:
- Equirectangular
- Mercator
- Stereo
- satellite (Tpers)
- Azimuthal Equidistant
There are a few general settings which all projection types have in common.
- `width` of the projected image
- `height` of the projected image
- `old_algo`: defines whether to use the old or the new projection algorithm
- `draw_map`: defines whether to draw a map overlay
- `equalize`: image brightness equalisation
- `config`: projection specific parameters
```
...
"project": {
"width": 4096,
"height": 2048,
"old_algo": false,
"draw_map": true,
"equalize": true,
"config": {
...
}
}
```
Depending on the type of projection, there are different parameters which you will need to frame your picture right.
The parameters must be added under `"config":`
## Equirectangular
For `equirectangular` projection, the following parameters are needed (else it will use default parameters):
- `tl_lon`: Top left corner longitude
- `tl_lat`: Top left corner latitude
- `br_lon`: Bottom right corner longitude
- `br_lat`: Bottom right corner latitude
Example:
```
...
"project": {
"width": 4096,
"height": 2048,
"old_algo": false,
"draw_map": true,
"equalize": true,
"config": {
"type": "equirectangular",
"tl_lon": -30.0,
"tl_lat": 80.0,
"br_lon": 40.0,
"br_lat": 30.0
}
}
```
## Mercator
There are no additional parameters required for this projection type.
Example:
```
...
"project": {
"width": 4096,
"height": 2048,
"old_algo": false,
"draw_map": true,
"equalize": true,
"config": {
"type": "mercator"
}
}
```
## Stereo
For `stereo` projection, the following parameters are needed (else it will use default parameters):
- `center_lon`: Center longitude
- `center_lat`: Center latitude
- `scale`: Scale
Example:
```
...
"project": {
"width": 4096,
"height": 4096,
"old_algo": false,
"draw_map": true,
"equalize": true,
"config": {
"type": "stereo",
"center_lon": 50.0,
"center_lat": 10.0,
"scale": 1.0
}
}
```
## Satellite (Tpers)
For `tpers` projection, the following parameters are needed (else it will use default parameters):
- `alt`: altitude
- `lon`: longitude
- `lat`: latitude
- `ang`: angle
- `azi`: azimuth
```
...
"project": {
"width": 4096,
"height": 4096,
"old_algo": false,
"draw_map": true,
"equalize": true,
"config": {
"type": "tpers",
"alt": 30000.0,
"lon": 10.0,
"lat": 50.0,
"ang": 0.0,
"azi": 0.0
}
}
```
## Azimuthal Equidistant
For `azeq` projection, the following parameters are needed (else it will use default parameters):
- `lon`: longitude
- `lat`: latitude
```
...
"project": {
"width": 4096,
"height": 4096,
"old_algo": false,
"draw_map": true,
"equalize": true,
"config": {
"type": "azeq",
"lon": 10.0,
"lat": 50.0,
}
}
```
|