Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • prodimopy prodimopy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 11
    • Issues 11
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • ProDiMo
  • prodimopyprodimopy
  • Issues
  • #37

Closed
Open
Created Aug 07, 2025 by Christian Rab@c.rabMaintainer

Generate LineEstimate Spectrum for a given radial range

It can be useful to just plot a line estimate spectrum for a given radial bin ... e.g. from 0 to 1 au.

One could use the flux column from the rInfo for that. This is for one line

linest=m1.getLineEstimate("CO",1300)
# this is the flux for each x column
fcolumn = [x.Fcolumn for x in linest.rInfo]
# simply summing them up gives the total flux
print(linest.flux,np.sum(fcolumn))
# this should then be the flax between 1 and 10 au, taking the closest x values to 1 and 10 au
print(np.sum(fcolumn[np.argmin(np.abs(m1.x[:,0]-1)):np.argmin(np.abs(m1.x[:,0]-10))]))

It could look something like this (from Jelke, he made a kind of hack for that).

image

Edited Oct 02, 2025 by Christian Rab
Assignee
Assign to
Time tracking