{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-guides/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Working With Spectrum And Spectrum Phase Layers","description":"Accelerate E&P application development and protect your innovation by consuming our Data and Domain APIs / Platform APIs.","lang":"en-US","meta":[{"name":"robots","content":"noindex"}],"llmstxt":{"hide":false}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"working-with-spectrum-and-spectrum-phase-layers","__idx":0},"children":["Working With Spectrum And Spectrum Phase Layers"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Note"]},": you will need to include SeismicData, Seismic2D and SpectrumAnalysis in your ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Module Dependencies"]}," list in addition to Viewer2D."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"creating-a-spectrum-window","__idx":1},"children":["Creating a Spectrum window"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"ISpectrumWindow spectrumWindow = ISpectrumWindow.factory.createWindow();\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"creating-a-spectrum-layer","__idx":2},"children":["Creating a Spectrum Layer"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In this example, we assume you have already created a seismic layer seismicLayer and a spectrum window spectrumWindow."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"spectrumWindow.setReferenceLayer(seismicLayer);\nNamedProps layerProperties = new NamedProps();\nlayerProperties.putProperty(ISpectrumLayer.USE_FULL_SECTION, true);\nISpectrumLayer layer = ISpectrumLayer.factory.createLayer(spectrumWindow, seismicLayer.getData(), layerProperties, false);\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"creating-a-spectrum-plot-window","__idx":3},"children":["Creating a Spectrum Plot Window"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"ISpectrumPlotWindow spectrumPlotWindow = ISpectrumPlotWindow.factory.createWindow();\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"creating-a-spectrum-plot-layer","__idx":4},"children":["Creating a Spectrum Plot Layer"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"NamedProps windowProps = new NamedProps();\nwindowProps.putProperty(ISpectrumPlotWindow.SPECTRUM_TYPE, ISpectrumPlotWindow.AMPLITUDE);\nspectrumPlotWindow.setProperties(windowProps);\nspectrumPlotWindow.setReferenceLayer(seismicLayer);\nNamedProps amplitudeLayerProperties = new NamedProps();\namplitudeLayerProperties.putProperty(ISpectrumPlotLayer.USE_FULL_SECTION, true);\nISpectrumPlotLayer layer = ISpectrumPlotLayer.factory.createLayer(spectrumPlotWindow, seismicLayer.getData(), amplitudeLayerProperties, false);\n"},"children":[]}]},"headings":[{"value":"Working With Spectrum And Spectrum Phase Layers","id":"working-with-spectrum-and-spectrum-phase-layers","depth":1},{"value":"Creating a Spectrum window","id":"creating-a-spectrum-window","depth":3},{"value":"Creating a Spectrum Layer","id":"creating-a-spectrum-layer","depth":3},{"value":"Creating a Spectrum Plot Window","id":"creating-a-spectrum-plot-window","depth":3},{"value":"Creating a Spectrum Plot Layer","id":"creating-a-spectrum-plot-layer","depth":3}],"frontmatter":{"title":"Working With Spectrum And Spectrum Phase Layers","pageId":"intviewer-api-for-layers/working-with-spectrum-and-spectrum-phase-layers","seo":{"title":"Working With Spectrum And Spectrum Phase Layers"}},"lastModified":"2026-10-22T14:32:05.574Z","pagePropGetterError":{"message":"","name":""}},"slug":"/solutions/intviewer/intviewer-api-for-layers/working-with-spectrum-and-spectrum-phase-layers","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}