Commit f9880cc
committed
New Feature: field line integrals
- Tracers objects now return with an "integral" field.
- By default the integral is field line length, but like in regular
mapfl, additional arguments can make it do scalar field integrals:
- integrate_along_fl (logical that turns it on, default False)
- scalar_input_file (3D RTP H5 file path with scalar field to be integrated).
- weight_integral_by_area (logical to weight integral by 1/b, default False)
- max_along_fl (logical to take the max of the scalar field along the
field line, defualt False)
- Update mapfl to reflect current GitHub version and add this capability.
- Update mapflpy fortran for compatitbility.
- Update Tracers namedtuple definition.
- Compatibility updates in other python files.
- WARNING: Currently the scalar_input_file is the only way to read a
scalar (i.e. from a file on disk). Eventually it will be possible to
pass this by memory.
- An example for the docs pages will be added soon (TBD).1 parent 105d146 commit f9880cc
7 files changed
Lines changed: 262 additions & 63 deletions
File tree
- mapflpy
- src
- mapfl
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
| 186 | + | |
185 | 187 | | |
186 | 188 | | |
187 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 57 | | |
61 | 58 | | |
62 | 59 | | |
| |||
289 | 286 | | |
290 | 287 | | |
291 | 288 | | |
| 289 | + | |
292 | 290 | | |
293 | 291 | | |
294 | 292 | | |
295 | 293 | | |
296 | 294 | | |
297 | 295 | | |
298 | | - | |
| 296 | + | |
299 | 297 | | |
300 | 298 | | |
301 | 299 | | |
302 | 300 | | |
303 | 301 | | |
304 | | - | |
| 302 | + | |
305 | 303 | | |
306 | 304 | | |
307 | 305 | | |
| |||
866 | 864 | | |
867 | 865 | | |
868 | 866 | | |
869 | | - | |
870 | | - | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
871 | 870 | | |
872 | 871 | | |
873 | 872 | | |
874 | 873 | | |
875 | 874 | | |
| 875 | + | |
876 | 876 | | |
877 | | - | |
878 | | - | |
| 877 | + | |
| 878 | + | |
879 | 879 | | |
880 | 880 | | |
881 | 881 | | |
882 | 882 | | |
883 | 883 | | |
884 | 884 | | |
885 | | - | |
| 885 | + | |
886 | 886 | | |
887 | 887 | | |
888 | 888 | | |
889 | | - | |
| 889 | + | |
890 | 890 | | |
891 | 891 | | |
892 | 892 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
| 223 | + | |
| 224 | + | |
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
| |||
423 | 424 | | |
424 | 425 | | |
425 | 426 | | |
426 | | - | |
| 427 | + | |
| 428 | + | |
427 | 429 | | |
428 | 430 | | |
429 | 431 | | |
| |||
499 | 501 | | |
500 | 502 | | |
501 | 503 | | |
502 | | - | |
| 504 | + | |
503 | 505 | | |
504 | 506 | | |
505 | 507 | | |
| |||
0 commit comments