RECENT POSTS
- Introduction to FreeBSD Security Best Practices
- Working with Package Management in FreeBSD
- Understanding FreeBSD Security Advisories and Updates
- Troubleshooting Common System Administration Issues in FreeBSD
- Tips for Hardening FreeBSD to achieve System Protection
- Setting Up DHCP Server in FreeBSD
- Secure User and Group Management in FreeBSD Systems
- Secure Remote Access with SSH in FreeBSD
- Optimizing System Performance in FreeBSD
- Network Packet Capture with tcpdump in FreeBSD
- All posts ...
Do you have GDPR compliance issues ?
Check out Legiscope a GDPR compliance software, that will save you weeks of work, automating your documentation, the training of your teams and all processes you need to keep your organisation compliant with privacy regulations
P5-astro-waveband
Jul 20, 2023
Transparently work in waveband, wavelength, or filter
Class to transparently deal with the conversion between filters, wavelength, frequency and other methods of specifying a location in the electro-magentic spectrum.
AstroWaveBand tries to determine the natural form of the numbers such that a request for a summary of the object when it contains 2.2 microns would return the filter name but would return the wavelength if it was not a standard filter. In ambiguous cases an instrument name is required to decide what to return. In really ambiguous cases the user can specify the unit in which to display the numbers on stringification.
Used mainly as a way of storing a single number in a database table but using logic to determine the number that an observer is most likely to understand.
Numerical comparison operators can be used to compare two AstroWaveBand objects. When checking equality, the “natural” and “instrument” methods are used, so if two AstroWaveBand objects return the same value from those methods, they are considered to be equal. When checking other comparisons such as greater than, the wavelength is used.
- Older
- Newer
Checkout these related ports:
- Xworld - Earth as seen from the direction of the sun
- Xtide - Harmonic tide clock and tide predictor
- Xplanet - Draw pictures of the earth textured by an image
- Xphoon - Set the root window to the moon in its current phase
- Xmoontool - Version of John Walker's classical moontool for X11/Motif
- Xephem - Interactive astronomical ephemeris program
- Xeartk - Small demo for tkgeomap
- Xearth - Set the root window to the image of earth
- Wmsun - Dockapp that displays the rise and set times of the Sun
- Wmspaceweather - DockApp that shows the weather at geosynchronous orbit
- Wmsolar - Dockapp that displays the Solar System viewed from the top
- Wmmoonclock - Displays the phase of the moon, plus orbital data
- Wmjupiter - Dockapp that displays information on Jupiter
- Wmglobe - Neat xearth-like WindowMaker dockapp
- Weather - Utility to provide current weather conditions and forecasts