|
212 | 212 | "tags": [] |
213 | 213 | }, |
214 | 214 | "source": [ |
215 | | - "Define a grid of pupil positions with only one cell per field angle.\n", |
216 | | - "This is done so that tutorial has a reasonable runtime.\n", |
217 | | - "for production-ready images, it is ideal to trace more pupil positions." |
| 215 | + "Reduce the number of rays traced per field angle so that this tutorial has a reasonable runtime.\n", |
| 216 | + "This number should be increased to simulate research-quality images." |
218 | 217 | ] |
219 | 218 | }, |
220 | 219 | { |
221 | 220 | "cell_type": "code", |
222 | 221 | "execution_count": null, |
223 | 222 | "id": "13", |
| 223 | + "metadata": {}, |
| 224 | + "outputs": [], |
| 225 | + "source": [ |
| 226 | + "instrument.pupil.num = 2" |
| 227 | + ] |
| 228 | + }, |
| 229 | + { |
| 230 | + "cell_type": "raw", |
| 231 | + "id": "14", |
| 232 | + "metadata": { |
| 233 | + "editable": true, |
| 234 | + "raw_mimetype": "text/x-rst", |
| 235 | + "slideshow": { |
| 236 | + "slide_type": "" |
| 237 | + }, |
| 238 | + "tags": [] |
| 239 | + }, |
| 240 | + "source": [ |
| 241 | + "Also halve the number of pixels to increase the signal-to-noise ratio." |
| 242 | + ] |
| 243 | + }, |
| 244 | + { |
| 245 | + "cell_type": "code", |
| 246 | + "execution_count": null, |
| 247 | + "id": "15", |
224 | 248 | "metadata": { |
225 | 249 | "editable": true, |
226 | 250 | "slideshow": { |
|
230 | 254 | }, |
231 | 255 | "outputs": [], |
232 | 256 | "source": [ |
233 | | - "pupil = na.Cartesian2dVectorLinearSpace(\n", |
234 | | - " start=-1,\n", |
235 | | - " stop=1,\n", |
236 | | - " axis=na.Cartesian2dVectorArray(\"pupil_x\", \"pupil_y\"),\n", |
237 | | - " num=2,\n", |
238 | | - ")" |
| 257 | + "sensor = instrument.camera.sensor\n", |
| 258 | + "sensor.width_pixel = 2 * sensor.width_pixel\n", |
| 259 | + "sensor.num_pixel_x = sensor.num_pixel_x // 2\n", |
| 260 | + "sensor.num_pixel_y = sensor.num_pixel_y // 2" |
239 | 261 | ] |
240 | 262 | }, |
241 | 263 | { |
242 | 264 | "cell_type": "raw", |
243 | | - "id": "14", |
| 265 | + "id": "16", |
244 | 266 | "metadata": { |
245 | 267 | "editable": true, |
246 | 268 | "raw_mimetype": "text/x-rst", |
|
256 | 278 | { |
257 | 279 | "cell_type": "code", |
258 | 280 | "execution_count": null, |
259 | | - "id": "15", |
| 281 | + "id": "17", |
260 | 282 | "metadata": { |
261 | 283 | "editable": true, |
262 | 284 | "slideshow": { |
|
269 | 291 | "%%time\n", |
270 | 292 | "images = instrument.system.image(\n", |
271 | 293 | " scene=scene[{axis_time: 0}],\n", |
272 | | - " pupil=pupil,\n", |
273 | 294 | " axis_wavelength=axis_velocity,\n", |
274 | 295 | " axis_field=(axis_x, axis_y),\n", |
275 | 296 | ")\n", |
|
278 | 299 | }, |
279 | 300 | { |
280 | 301 | "cell_type": "raw", |
281 | | - "id": "16", |
| 302 | + "id": "18", |
282 | 303 | "metadata": { |
283 | 304 | "editable": true, |
284 | 305 | "raw_mimetype": "text/x-rst", |
|
294 | 315 | { |
295 | 316 | "cell_type": "code", |
296 | 317 | "execution_count": null, |
297 | | - "id": "17", |
| 318 | + "id": "19", |
298 | 319 | "metadata": { |
299 | 320 | "editable": true, |
300 | 321 | "slideshow": { |
|
0 commit comments