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 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889
|
.. _api-reference:
API Reference
=============
Plots and the Plotting Interface
--------------------------------
SlicePlot and ProjectionPlot
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. autosummary::
~yt.visualization.plot_window.SlicePlot
~yt.visualization.plot_window.AxisAlignedSlicePlot
~yt.visualization.plot_window.OffAxisSlicePlot
~yt.visualization.plot_window.ProjectionPlot
~yt.visualization.plot_window.AxisAlignedProjectionPlot
~yt.visualization.plot_window.OffAxisProjectionPlot
~yt.visualization.plot_window.WindowPlotMPL
~yt.visualization.plot_window.PlotWindow
~yt.visualization.plot_window.plot_2d
ProfilePlot and PhasePlot
^^^^^^^^^^^^^^^^^^^^^^^^^
.. autosummary::
~yt.visualization.profile_plotter.ProfilePlot
~yt.visualization.profile_plotter.PhasePlot
~yt.visualization.profile_plotter.PhasePlotMPL
Particle Plots
^^^^^^^^^^^^^^
.. autosummary::
~yt.visualization.particle_plots.ParticleProjectionPlot
~yt.visualization.particle_plots.ParticlePhasePlot
~yt.visualization.particle_plots.ParticlePlot
Fixed Resolution Pixelization
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. autosummary::
~yt.visualization.fixed_resolution.FixedResolutionBuffer
~yt.visualization.fixed_resolution.ParticleImageBuffer
~yt.visualization.fixed_resolution.CylindricalFixedResolutionBuffer
~yt.visualization.fixed_resolution.OffAxisProjectionFixedResolutionBuffer
Writing FITS images
^^^^^^^^^^^^^^^^^^^
.. autosummary::
~yt.visualization.fits_image.FITSImageData
~yt.visualization.fits_image.FITSSlice
~yt.visualization.fits_image.FITSProjection
~yt.visualization.fits_image.FITSOffAxisSlice
~yt.visualization.fits_image.FITSOffAxisProjection
~yt.visualization.fits_image.FITSParticleProjection
Data Sources
------------
.. _physical-object-api:
Physical Objects
^^^^^^^^^^^^^^^^
These are the objects that act as physical selections of data, describing a
region in space. These are not typically addressed directly; see
:ref:`available-objects` for more information.
Base Classes
++++++++++++
These will almost never need to be instantiated on their own.
.. autosummary::
~yt.data_objects.data_containers.YTDataContainer
~yt.data_objects.selection_objects.data_selection_objects.YTSelectionContainer
~yt.data_objects.selection_objects.data_selection_objects.YTSelectionContainer0D
~yt.data_objects.selection_objects.data_selection_objects.YTSelectionContainer1D
~yt.data_objects.selection_objects.data_selection_objects.YTSelectionContainer2D
~yt.data_objects.selection_objects.data_selection_objects.YTSelectionContainer3D
Selection Objects
+++++++++++++++++
These objects are defined by some selection method or mechanism. Most are
geometric.
.. autosummary::
~yt.data_objects.selection_objects.point.YTPoint
~yt.data_objects.selection_objects.ray.YTOrthoRay
~yt.data_objects.selection_objects.ray.YTRay
~yt.data_objects.selection_objects.slices.YTSlice
~yt.data_objects.selection_objects.slices.YTCuttingPlane
~yt.data_objects.selection_objects.disk.YTDisk
~yt.data_objects.selection_objects.region.YTRegion
~yt.data_objects.selection_objects.object_collection.YTDataCollection
~yt.data_objects.selection_objects.spheroids.YTSphere
~yt.data_objects.selection_objects.spheroids.YTEllipsoid
~yt.data_objects.selection_objects.cut_region.YTCutRegion
~yt.data_objects.index_subobjects.grid_patch.AMRGridPatch
~yt.data_objects.index_subobjects.octree_subset.OctreeSubset
~yt.data_objects.index_subobjects.particle_container.ParticleContainer
~yt.data_objects.index_subobjects.unstructured_mesh.UnstructuredMesh
~yt.data_objects.index_subobjects.unstructured_mesh.SemiStructuredMesh
Construction Objects
++++++++++++++++++++
These objects typically require some effort to build. Often this means
integrating through the simulation in some way, or creating some large or
expensive set of intermediate data.
.. autosummary::
~yt.data_objects.construction_data_containers.YTStreamline
~yt.data_objects.construction_data_containers.YTQuadTreeProj
~yt.data_objects.construction_data_containers.YTCoveringGrid
~yt.data_objects.construction_data_containers.YTArbitraryGrid
~yt.data_objects.construction_data_containers.YTSmoothedCoveringGrid
~yt.data_objects.construction_data_containers.YTSurface
Time Series Objects
^^^^^^^^^^^^^^^^^^^
These are objects that either contain and represent or operate on series of
datasets.
.. autosummary::
~yt.data_objects.time_series.DatasetSeries
~yt.data_objects.time_series.DatasetSeriesObject
~yt.data_objects.time_series.SimulationTimeSeries
~yt.data_objects.time_series.TimeSeriesQuantitiesContainer
~yt.data_objects.time_series.AnalysisTaskProxy
~yt.data_objects.particle_trajectories.ParticleTrajectories
Geometry Handlers
-----------------
These objects generate an "index" into multiresolution data.
.. autosummary::
~yt.geometry.geometry_handler.Index
~yt.geometry.grid_geometry_handler.GridIndex
~yt.geometry.oct_geometry_handler.OctreeIndex
~yt.geometry.particle_geometry_handler.ParticleIndex
~yt.geometry.unstructured_mesh_handler.UnstructuredIndex
Units
-----
yt's symbolic unit handling system is now based on the external library unyt. In
complement, Dataset objects support the following methods to build arrays and
scalars with physical dimensions.
.. autosummary::
yt.data_objects.static_output.Dataset.arr
yt.data_objects.static_output.Dataset.quan
Frontends
---------
.. autosummary::
AMRVAC
^^^^^^
.. autosummary::
~yt.frontends.amrvac.data_structures.AMRVACGrid
~yt.frontends.amrvac.data_structures.AMRVACHierarchy
~yt.frontends.amrvac.data_structures.AMRVACDataset
~yt.frontends.amrvac.fields.AMRVACFieldInfo
~yt.frontends.amrvac.io.AMRVACIOHandler
~yt.frontends.amrvac.io.read_amrvac_namelist
ARTIO
^^^^^
.. autosummary::
~yt.frontends.artio.data_structures.ARTIOIndex
~yt.frontends.artio.data_structures.ARTIOOctreeSubset
~yt.frontends.artio.data_structures.ARTIORootMeshSubset
~yt.frontends.artio.data_structures.ARTIODataset
~yt.frontends.artio.definitions.ARTIOconstants
~yt.frontends.artio.fields.ARTIOFieldInfo
~yt.frontends.artio.io.IOHandlerARTIO
Athena
^^^^^^
.. autosummary::
~yt.frontends.athena.data_structures.AthenaGrid
~yt.frontends.athena.data_structures.AthenaHierarchy
~yt.frontends.athena.data_structures.AthenaDataset
~yt.frontends.athena.fields.AthenaFieldInfo
~yt.frontends.athena.io.IOHandlerAthena
AMReX/Boxlib
^^^^^^^^^^^^
.. autosummary::
~yt.frontends.amrex.data_structures.BoxlibGrid
~yt.frontends.amrex.data_structures.BoxlibHierarchy
~yt.frontends.amrex.data_structures.BoxlibDataset
~yt.frontends.amrex.data_structures.CastroDataset
~yt.frontends.amrex.data_structures.MaestroDataset
~yt.frontends.amrex.data_structures.NyxHierarchy
~yt.frontends.amrex.data_structures.NyxDataset
~yt.frontends.amrex.data_structures.OrionHierarchy
~yt.frontends.amrex.data_structures.OrionDataset
~yt.frontends.amrex.fields.BoxlibFieldInfo
~yt.frontends.amrex.io.IOHandlerBoxlib
~yt.frontends.amrex.io.IOHandlerOrion
CfRadial
^^^^^^^^
.. autosummary::
~yt.frontends.cf_radial.data_structures.CFRadialGrid
~yt.frontends.cf_radial.data_structures.CFRadialHierarchy
~yt.frontends.cf_radial.data_structures.CFRadialDataset
~yt.frontends.cf_radial.fields.CFRadialFieldInfo
~yt.frontends.cf_radial.io.CFRadialIOHandler
Chombo
^^^^^^
.. autosummary::
~yt.frontends.chombo.data_structures.ChomboGrid
~yt.frontends.chombo.data_structures.ChomboHierarchy
~yt.frontends.chombo.data_structures.ChomboDataset
~yt.frontends.chombo.data_structures.Orion2Hierarchy
~yt.frontends.chombo.data_structures.Orion2Dataset
~yt.frontends.chombo.io.IOHandlerChomboHDF5
~yt.frontends.chombo.io.IOHandlerOrion2HDF5
Enzo
^^^^
.. autosummary::
~yt.frontends.enzo.answer_testing_support.ShockTubeTest
~yt.frontends.enzo.data_structures.EnzoGrid
~yt.frontends.enzo.data_structures.EnzoGridGZ
~yt.frontends.enzo.data_structures.EnzoGridInMemory
~yt.frontends.enzo.data_structures.EnzoHierarchy1D
~yt.frontends.enzo.data_structures.EnzoHierarchy2D
~yt.frontends.enzo.data_structures.EnzoHierarchy
~yt.frontends.enzo.data_structures.EnzoHierarchyInMemory
~yt.frontends.enzo.data_structures.EnzoDatasetInMemory
~yt.frontends.enzo.data_structures.EnzoDataset
~yt.frontends.enzo.fields.EnzoFieldInfo
~yt.frontends.enzo.io.IOHandlerInMemory
~yt.frontends.enzo.io.IOHandlerPacked1D
~yt.frontends.enzo.io.IOHandlerPacked2D
~yt.frontends.enzo.io.IOHandlerPackedHDF5
~yt.frontends.enzo.io.IOHandlerPackedHDF5GhostZones
~yt.frontends.enzo.simulation_handling.EnzoCosmology
~yt.frontends.enzo.simulation_handling.EnzoSimulation
FITS
^^^^
.. autosummary::
~yt.frontends.fits.data_structures.FITSGrid
~yt.frontends.fits.data_structures.FITSHierarchy
~yt.frontends.fits.data_structures.FITSDataset
~yt.frontends.fits.fields.FITSFieldInfo
~yt.frontends.fits.io.IOHandlerFITS
FLASH
^^^^^
.. autosummary::
~yt.frontends.flash.data_structures.FLASHGrid
~yt.frontends.flash.data_structures.FLASHHierarchy
~yt.frontends.flash.data_structures.FLASHDataset
~yt.frontends.flash.fields.FLASHFieldInfo
~yt.frontends.flash.io.IOHandlerFLASH
GDF
^^^
.. autosummary::
~yt.frontends.gdf.data_structures.GDFGrid
~yt.frontends.gdf.data_structures.GDFHierarchy
~yt.frontends.gdf.data_structures.GDFDataset
~yt.frontends.gdf.io.IOHandlerGDFHDF5
Halo Catalogs
^^^^^^^^^^^^^
.. autosummary::
~yt.frontends.ahf.data_structures.AHFHalosDataset
~yt.frontends.ahf.fields.AHFHalosFieldInfo
~yt.frontends.ahf.io.IOHandlerAHFHalos
~yt.frontends.gadget_fof.data_structures.GadgetFOFDataset
~yt.frontends.gadget_fof.data_structures.GadgetFOFHDF5File
~yt.frontends.gadget_fof.data_structures.GadgetFOFHaloDataset
~yt.frontends.gadget_fof.io.IOHandlerGadgetFOFHDF5
~yt.frontends.gadget_fof.io.IOHandlerGadgetFOFHaloHDF5
~yt.frontends.gadget_fof.fields.GadgetFOFFieldInfo
~yt.frontends.gadget_fof.fields.GadgetFOFHaloFieldInfo
~yt.frontends.halo_catalog.data_structures.YTHaloCatalogFile
~yt.frontends.halo_catalog.data_structures.YTHaloCatalogDataset
~yt.frontends.halo_catalog.fields.YTHaloCatalogFieldInfo
~yt.frontends.halo_catalog.io.IOHandlerYTHaloCatalog
~yt.frontends.owls_subfind.data_structures.OWLSSubfindParticleIndex
~yt.frontends.owls_subfind.data_structures.OWLSSubfindHDF5File
~yt.frontends.owls_subfind.data_structures.OWLSSubfindDataset
~yt.frontends.owls_subfind.fields.OWLSSubfindFieldInfo
~yt.frontends.owls_subfind.io.IOHandlerOWLSSubfindHDF5
~yt.frontends.rockstar.data_structures.RockstarBinaryFile
~yt.frontends.rockstar.data_structures.RockstarDataset
~yt.frontends.rockstar.fields.RockstarFieldInfo
~yt.frontends.rockstar.io.IOHandlerRockstarBinary
MOAB
^^^^
.. autosummary::
~yt.frontends.moab.data_structures.MoabHex8Hierarchy
~yt.frontends.moab.data_structures.MoabHex8Mesh
~yt.frontends.moab.data_structures.MoabHex8Dataset
~yt.frontends.moab.data_structures.PyneHex8Mesh
~yt.frontends.moab.data_structures.PyneMeshHex8Hierarchy
~yt.frontends.moab.data_structures.PyneMoabHex8Dataset
~yt.frontends.moab.io.IOHandlerMoabH5MHex8
~yt.frontends.moab.io.IOHandlerMoabPyneHex8
OpenPMD
^^^^^^^
.. autosummary::
~yt.frontends.open_pmd.data_structures.OpenPMDGrid
~yt.frontends.open_pmd.data_structures.OpenPMDHierarchy
~yt.frontends.open_pmd.data_structures.OpenPMDDataset
~yt.frontends.open_pmd.fields.OpenPMDFieldInfo
~yt.frontends.open_pmd.io.IOHandlerOpenPMDHDF5
~yt.frontends.open_pmd.misc.parse_unit_dimension
~yt.frontends.open_pmd.misc.is_const_component
~yt.frontends.open_pmd.misc.get_component
RAMSES
^^^^^^
.. autosummary::
~yt.frontends.ramses.data_structures.RAMSESDomainFile
~yt.frontends.ramses.data_structures.RAMSESDomainSubset
~yt.frontends.ramses.data_structures.RAMSESIndex
~yt.frontends.ramses.data_structures.RAMSESDataset
~yt.frontends.ramses.fields.RAMSESFieldInfo
~yt.frontends.ramses.io.IOHandlerRAMSES
SPH and Particle Codes
^^^^^^^^^^^^^^^^^^^^^^
.. autosummary::
~yt.frontends.gadget.data_structures.GadgetBinaryFile
~yt.frontends.gadget.data_structures.GadgetHDF5Dataset
~yt.frontends.gadget.data_structures.GadgetDataset
~yt.frontends.http_stream.data_structures.HTTPParticleFile
~yt.frontends.http_stream.data_structures.HTTPStreamDataset
~yt.frontends.owls.data_structures.OWLSDataset
~yt.frontends.sph.data_structures.ParticleDataset
~yt.frontends.tipsy.data_structures.TipsyFile
~yt.frontends.tipsy.data_structures.TipsyDataset
~yt.frontends.sph.fields.SPHFieldInfo
~yt.frontends.gadget.io.IOHandlerGadgetBinary
~yt.frontends.gadget.io.IOHandlerGadgetHDF5
~yt.frontends.http_stream.io.IOHandlerHTTPStream
~yt.frontends.owls.io.IOHandlerOWLS
~yt.frontends.tipsy.io.IOHandlerTipsyBinary
Stream
^^^^^^
.. autosummary::
~yt.frontends.stream.data_structures.StreamDictFieldHandler
~yt.frontends.stream.data_structures.StreamGrid
~yt.frontends.stream.data_structures.StreamHandler
~yt.frontends.stream.data_structures.StreamHexahedralHierarchy
~yt.frontends.stream.data_structures.StreamHexahedralMesh
~yt.frontends.stream.data_structures.StreamHexahedralDataset
~yt.frontends.stream.data_structures.StreamHierarchy
~yt.frontends.stream.data_structures.StreamOctreeHandler
~yt.frontends.stream.data_structures.StreamOctreeDataset
~yt.frontends.stream.data_structures.StreamOctreeSubset
~yt.frontends.stream.data_structures.StreamParticleFile
~yt.frontends.stream.data_structures.StreamParticleIndex
~yt.frontends.stream.data_structures.StreamParticlesDataset
~yt.frontends.stream.data_structures.StreamDataset
~yt.frontends.stream.fields.StreamFieldInfo
~yt.frontends.stream.io.IOHandlerStream
~yt.frontends.stream.io.IOHandlerStreamHexahedral
~yt.frontends.stream.io.IOHandlerStreamOctree
~yt.frontends.stream.io.StreamParticleIOHandler
ytdata
^^^^^^
.. autosummary::
~yt.frontends.ytdata.data_structures.YTDataContainerDataset
~yt.frontends.ytdata.data_structures.YTSpatialPlotDataset
~yt.frontends.ytdata.data_structures.YTGridDataset
~yt.frontends.ytdata.data_structures.YTGridHierarchy
~yt.frontends.ytdata.data_structures.YTGrid
~yt.frontends.ytdata.data_structures.YTNonspatialDataset
~yt.frontends.ytdata.data_structures.YTNonspatialHierarchy
~yt.frontends.ytdata.data_structures.YTNonspatialGrid
~yt.frontends.ytdata.data_structures.YTProfileDataset
~yt.frontends.ytdata.data_structures.YTClumpTreeDataset
~yt.frontends.ytdata.data_structures.YTClumpContainer
~yt.frontends.ytdata.fields.YTDataContainerFieldInfo
~yt.frontends.ytdata.fields.YTGridFieldInfo
~yt.frontends.ytdata.io.IOHandlerYTDataContainerHDF5
~yt.frontends.ytdata.io.IOHandlerYTGridHDF5
~yt.frontends.ytdata.io.IOHandlerYTSpatialPlotHDF5
~yt.frontends.ytdata.io.IOHandlerYTNonspatialhdf5
Loading Data
------------
.. autosummary::
~yt.loaders.load
~yt.loaders.load_uniform_grid
~yt.loaders.load_amr_grids
~yt.loaders.load_particles
~yt.loaders.load_octree
~yt.loaders.load_hexahedral_mesh
~yt.loaders.load_unstructured_mesh
~yt.loaders.load_sample
Derived Datatypes
-----------------
Profiles and Histograms
^^^^^^^^^^^^^^^^^^^^^^^
These types are used to sum data up and either return that sum or return an
average. Typically they are more easily used through the ``ProfilePlot``
``PhasePlot`` interface. We also provide the ``create_profile`` function
to create these objects in a uniform manner.
.. autosummary::
~yt.data_objects.profiles.ProfileND
~yt.data_objects.profiles.Profile1D
~yt.data_objects.profiles.Profile2D
~yt.data_objects.profiles.Profile3D
~yt.data_objects.profiles.ParticleProfile
~yt.data_objects.profiles.create_profile
.. _clump_finding_ref:
Clump Finding
^^^^^^^^^^^^^
The ``Clump`` object and associated functions can be used for identification
of topologically disconnected structures, i.e., clump finding.
.. autosummary::
~yt.data_objects.level_sets.clump_handling.Clump
~yt.data_objects.level_sets.clump_handling.Clump.add_info_item
~yt.data_objects.level_sets.clump_handling.Clump.add_validator
~yt.data_objects.level_sets.clump_handling.Clump.save_as_dataset
~yt.data_objects.level_sets.clump_handling.find_clumps
~yt.data_objects.level_sets.clump_info_items.add_clump_info
~yt.data_objects.level_sets.clump_validators.add_validator
X-ray Emission Fields
^^^^^^^^^^^^^^^^^^^^^
This can be used to create derived fields of X-ray emission in
different energy bands.
.. autosummary::
~yt.fields.xray_emission_fields.XrayEmissivityIntegrator
~yt.fields.xray_emission_fields.add_xray_emissivity_field
Field Types
-----------
.. autosummary::
~yt.fields.field_info_container.FieldInfoContainer
~yt.fields.derived_field.DerivedField
~yt.fields.derived_field.ValidateDataField
~yt.fields.derived_field.ValidateGridType
~yt.fields.derived_field.ValidateParameter
~yt.fields.derived_field.ValidateProperty
~yt.fields.derived_field.ValidateSpatial
Field Functions
---------------
.. autosummary::
~yt.fields.field_info_container.FieldInfoContainer.add_field
~yt.data_objects.static_output.Dataset.add_field
~yt.data_objects.static_output.Dataset.add_deposited_particle_field
~yt.data_objects.static_output.Dataset.add_mesh_sampling_particle_field
~yt.data_objects.static_output.Dataset.add_gradient_fields
~yt.frontends.stream.data_structures.StreamParticlesDataset.add_sph_fields
Particle Filters
----------------
.. autosummary::
~yt.data_objects.particle_filters.add_particle_filter
~yt.data_objects.particle_filters.particle_filter
Image Handling
--------------
For volume renderings and fixed resolution buffers the image object returned is
an ``ImageArray`` object, which has useful functions for image saving and
writing to bitmaps.
.. autosummary::
~yt.data_objects.image_array.ImageArray
Volume Rendering
^^^^^^^^^^^^^^^^
See also :ref:`volume_rendering`.
Here are the primary entry points and the main classes involved in the
Scene infrastructure:
.. autosummary::
~yt.visualization.volume_rendering.volume_rendering.volume_render
~yt.visualization.volume_rendering.volume_rendering.create_scene
~yt.visualization.volume_rendering.off_axis_projection.off_axis_projection
~yt.visualization.volume_rendering.scene.Scene
~yt.visualization.volume_rendering.camera.Camera
~yt.utilities.amr_kdtree.amr_kdtree.AMRKDTree
The different kinds of sources:
.. autosummary::
~yt.visualization.volume_rendering.render_source.RenderSource
~yt.visualization.volume_rendering.render_source.VolumeSource
~yt.visualization.volume_rendering.render_source.PointSource
~yt.visualization.volume_rendering.render_source.LineSource
~yt.visualization.volume_rendering.render_source.BoxSource
~yt.visualization.volume_rendering.render_source.GridSource
~yt.visualization.volume_rendering.render_source.CoordinateVectorSource
~yt.visualization.volume_rendering.render_source.MeshSource
The different kinds of transfer functions:
.. autosummary::
~yt.visualization.volume_rendering.transfer_functions.TransferFunction
~yt.visualization.volume_rendering.transfer_functions.ColorTransferFunction
~yt.visualization.volume_rendering.transfer_functions.ProjectionTransferFunction
~yt.visualization.volume_rendering.transfer_functions.PlanckTransferFunction
~yt.visualization.volume_rendering.transfer_functions.MultiVariateTransferFunction
~yt.visualization.volume_rendering.transfer_function_helper.TransferFunctionHelper
The different kinds of lenses:
.. autosummary::
~yt.visualization.volume_rendering.lens.Lens
~yt.visualization.volume_rendering.lens.PlaneParallelLens
~yt.visualization.volume_rendering.lens.PerspectiveLens
~yt.visualization.volume_rendering.lens.StereoPerspectiveLens
~yt.visualization.volume_rendering.lens.FisheyeLens
~yt.visualization.volume_rendering.lens.SphericalLens
~yt.visualization.volume_rendering.lens.StereoSphericalLens
Streamlining
^^^^^^^^^^^^
See also :ref:`streamlines`.
.. autosummary::
~yt.visualization.streamlines.Streamlines
Image Writing
^^^^^^^^^^^^^
These functions are all used for fast writing of images directly to disk,
without calling matplotlib. This can be very useful for high-cadence outputs
where colorbars are unnecessary or for volume rendering.
.. autosummary::
~yt.visualization.image_writer.multi_image_composite
~yt.visualization.image_writer.write_bitmap
~yt.visualization.image_writer.write_projection
~yt.visualization.image_writer.write_image
~yt.visualization.image_writer.map_to_colors
~yt.visualization.image_writer.strip_colormap_data
~yt.visualization.image_writer.splat_points
~yt.visualization.image_writer.scale_image
We also provide a module that is very good for generating EPS figures,
particularly with complicated layouts.
.. autosummary::
~yt.visualization.eps_writer.DualEPS
~yt.visualization.eps_writer.single_plot
~yt.visualization.eps_writer.multiplot
~yt.visualization.eps_writer.multiplot_yt
~yt.visualization.eps_writer.return_colormap
.. _derived-quantities-api:
Derived Quantities
------------------
See :ref:`derived-quantities`.
.. autosummary::
~yt.data_objects.derived_quantities.DerivedQuantity
~yt.data_objects.derived_quantities.DerivedQuantityCollection
~yt.data_objects.derived_quantities.WeightedAverageQuantity
~yt.data_objects.derived_quantities.AngularMomentumVector
~yt.data_objects.derived_quantities.BulkVelocity
~yt.data_objects.derived_quantities.CenterOfMass
~yt.data_objects.derived_quantities.Extrema
~yt.data_objects.derived_quantities.MaxLocation
~yt.data_objects.derived_quantities.MinLocation
~yt.data_objects.derived_quantities.SpinParameter
~yt.data_objects.derived_quantities.TotalMass
~yt.data_objects.derived_quantities.TotalQuantity
~yt.data_objects.derived_quantities.WeightedAverageQuantity
.. _callback-api:
Callback List
-------------
See also :ref:`callbacks`.
.. autosummary::
~yt.visualization.plot_window.PWViewerMPL.clear_annotations
~yt.visualization.plot_modifications.ArrowCallback
~yt.visualization.plot_modifications.CellEdgesCallback
~yt.visualization.plot_modifications.ClumpContourCallback
~yt.visualization.plot_modifications.ContourCallback
~yt.visualization.plot_modifications.CuttingQuiverCallback
~yt.visualization.plot_modifications.GridBoundaryCallback
~yt.visualization.plot_modifications.ImageLineCallback
~yt.visualization.plot_modifications.LinePlotCallback
~yt.visualization.plot_modifications.MagFieldCallback
~yt.visualization.plot_modifications.MarkerAnnotateCallback
~yt.visualization.plot_modifications.ParticleCallback
~yt.visualization.plot_modifications.PointAnnotateCallback
~yt.visualization.plot_modifications.QuiverCallback
~yt.visualization.plot_modifications.RayCallback
~yt.visualization.plot_modifications.ScaleCallback
~yt.visualization.plot_modifications.SphereCallback
~yt.visualization.plot_modifications.StreamlineCallback
~yt.visualization.plot_modifications.TextLabelCallback
~yt.visualization.plot_modifications.TimestampCallback
~yt.visualization.plot_modifications.TitleCallback
~yt.visualization.plot_modifications.TriangleFacetsCallback
~yt.visualization.plot_modifications.VelocityCallback
Colormap Functions
------------------
See also :ref:`colormaps`.
.. autosummary::
~yt.visualization.color_maps.add_colormap
~yt.visualization.color_maps.make_colormap
~yt.visualization.color_maps.show_colormaps
Function List
-------------
.. autosummary::
~yt.frontends.ytdata.utilities.save_as_dataset
~yt.data_objects.data_containers.YTDataContainer.save_as_dataset
~yt.data_objects.static_output.Dataset.all_data
~yt.data_objects.static_output.Dataset.box
~yt.funcs.enable_plugins
~yt.funcs.get_pbar
~yt.funcs.humanize_time
~yt.funcs.insert_ipython
~yt.funcs.is_root
~yt.funcs.is_sequence
~yt.funcs.iter_fields
~yt.funcs.just_one
~yt.funcs.only_on_root
~yt.funcs.paste_traceback
~yt.funcs.pdb_run
~yt.funcs.print_tb
~yt.funcs.rootonly
~yt.funcs.time_execution
~yt.data_objects.level_sets.contour_finder.identify_contours
~yt.utilities.parallel_tools.parallel_analysis_interface.enable_parallelism
~yt.utilities.parallel_tools.parallel_analysis_interface.parallel_blocking_call
~yt.utilities.parallel_tools.parallel_analysis_interface.parallel_objects
~yt.utilities.parallel_tools.parallel_analysis_interface.parallel_passthrough
~yt.utilities.parallel_tools.parallel_analysis_interface.parallel_root_only
~yt.utilities.parallel_tools.parallel_analysis_interface.parallel_simple_proxy
~yt.data_objects.data_containers.YTDataContainer.get_field_parameter
~yt.data_objects.data_containers.YTDataContainer.set_field_parameter
Math Utilities
--------------
.. autosummary::
~yt.utilities.math_utils.periodic_position
~yt.utilities.math_utils.periodic_dist
~yt.utilities.math_utils.euclidean_dist
~yt.utilities.math_utils.rotate_vector_3D
~yt.utilities.math_utils.modify_reference_frame
~yt.utilities.math_utils.compute_rotational_velocity
~yt.utilities.math_utils.compute_parallel_velocity
~yt.utilities.math_utils.compute_radial_velocity
~yt.utilities.math_utils.compute_cylindrical_radius
~yt.utilities.math_utils.ortho_find
~yt.utilities.math_utils.quartiles
~yt.utilities.math_utils.get_rotation_matrix
~yt.utilities.math_utils.get_sph_r
~yt.utilities.math_utils.resize_vector
~yt.utilities.math_utils.get_sph_theta
~yt.utilities.math_utils.get_sph_phi
~yt.utilities.math_utils.get_cyl_r
~yt.utilities.math_utils.get_cyl_z
~yt.utilities.math_utils.get_cyl_theta
~yt.utilities.math_utils.get_cyl_r_component
~yt.utilities.math_utils.get_cyl_theta_component
~yt.utilities.math_utils.get_cyl_z_component
~yt.utilities.math_utils.get_sph_r_component
~yt.utilities.math_utils.get_sph_phi_component
~yt.utilities.math_utils.get_sph_theta_component
Miscellaneous Types
-------------------
.. autosummary::
~yt.config.YTConfig
~yt.utilities.parameter_file_storage.ParameterFileStore
~yt.utilities.parallel_tools.parallel_analysis_interface.ObjectIterator
~yt.utilities.parallel_tools.parallel_analysis_interface.ParallelAnalysisInterface
~yt.utilities.parallel_tools.parallel_analysis_interface.ParallelObjectIterator
.. _cosmology-calculator-ref:
Cosmology Calculator
--------------------
.. autosummary::
~yt.utilities.cosmology.Cosmology
~yt.utilities.cosmology.Cosmology.hubble_distance
~yt.utilities.cosmology.Cosmology.comoving_radial_distance
~yt.utilities.cosmology.Cosmology.comoving_transverse_distance
~yt.utilities.cosmology.Cosmology.comoving_volume
~yt.utilities.cosmology.Cosmology.angular_diameter_distance
~yt.utilities.cosmology.Cosmology.angular_scale
~yt.utilities.cosmology.Cosmology.luminosity_distance
~yt.utilities.cosmology.Cosmology.lookback_time
~yt.utilities.cosmology.Cosmology.critical_density
~yt.utilities.cosmology.Cosmology.hubble_parameter
~yt.utilities.cosmology.Cosmology.expansion_factor
~yt.utilities.cosmology.Cosmology.z_from_t
~yt.utilities.cosmology.Cosmology.t_from_z
~yt.utilities.cosmology.Cosmology.get_dark_factor
Testing Infrastructure
----------------------
The core set of testing functions are re-exported from NumPy,
and are deprecated (prefer using
`numpy.testing <https://numpy.org/doc/stable/reference/routines.testing.html>`_
directly).
.. autosummary::
~yt.testing.assert_array_equal
~yt.testing.assert_almost_equal
~yt.testing.assert_approx_equal
~yt.testing.assert_array_almost_equal
~yt.testing.assert_equal
~yt.testing.assert_array_less
~yt.testing.assert_string_equal
~yt.testing.assert_array_almost_equal_nulp
~yt.testing.assert_allclose
~yt.testing.assert_raises
`unyt.testing <https://unyt.readthedocs.io/en/stable/modules/unyt.testing.html>`_
also provides some specialized functions for comparing arrays in a units-aware
fashion.
Finally, yt provides the following functions:
.. autosummary::
~yt.testing.assert_rel_equal
~yt.testing.amrspace
~yt.testing.expand_keywords
~yt.testing.fake_random_ds
~yt.testing.fake_amr_ds
~yt.testing.fake_particle_ds
~yt.testing.fake_tetrahedral_ds
~yt.testing.fake_hexahedral_ds
~yt.testing.small_fake_hexahedral_ds
~yt.testing.fake_stretched_ds
~yt.testing.fake_vr_orientation_test_ds
~yt.testing.fake_sph_orientation_ds
~yt.testing.fake_sph_grid_ds
~yt.testing.fake_octree_ds
These are for the pytest infrastructure:
.. autosummary::
~conftest.hashing
~yt.utilities.answer_testing.answer_tests.grid_hierarchy
~yt.utilities.answer_testing.answer_tests.parentage_relationships
~yt.utilities.answer_testing.answer_tests.grid_values
~yt.utilities.answer_testing.answer_tests.projection_values
~yt.utilities.answer_testing.answer_tests.field_values
~yt.utilities.answer_testing.answer_tests.pixelized_projection_values
~yt.utilities.answer_testing.answer_tests.small_patch_amr
~yt.utilities.answer_testing.answer_tests.big_patch_amr
~yt.utilities.answer_testing.answer_tests.generic_array
~yt.utilities.answer_testing.answer_tests.sph_answer
~yt.utilities.answer_testing.answer_tests.get_field_size_and_mean
~yt.utilities.answer_testing.answer_tests.plot_window_attribute
~yt.utilities.answer_testing.answer_tests.phase_plot_attribute
~yt.utilities.answer_testing.answer_tests.generic_image
~yt.utilities.answer_testing.answer_tests.axial_pixelization
~yt.utilities.answer_testing.answer_tests.extract_connected_sets
~yt.utilities.answer_testing.answer_tests.VR_image_comparison
|