Documentation
¶
Index ¶
- Constants
- func LocalSolarEclipseSVG(date time.Time, lon, lat, height float64, options LocalSolarEclipseSVGOptions) (string, bool)
- func LocalSolarEclipseSVGIAUSingleK(date time.Time, lon, lat, height float64, options LocalSolarEclipseSVGOptions) (string, bool)
- func LocalSolarEclipseSVGNASABulletinSplitK(date time.Time, lon, lat, height float64, options LocalSolarEclipseSVGOptions) (string, bool)
- func LunarEclipseSVG(date time.Time, options LunarEclipseSVGOptions) (string, bool)
- func LunarEclipseSVGChauvenet(date time.Time, options LunarEclipseSVGOptions) (string, bool)
- func LunarEclipseSVGDanjon(date time.Time, options LunarEclipseSVGOptions) (string, bool)
- type LocalSolarEclipseContactPoint
- type LocalSolarEclipseInfo
- type LocalSolarEclipseSVGOptions
- type LunarEclipseContactPoint
- type LunarEclipseInfo
- type LunarEclipseSVGOptions
- type LunarEclipseType
- type SolarEclipseRadiusModel
- type SolarEclipseType
Constants ¶
const ( LunarEclipseNone = eclipsecore.LunarEclipseNone LunarEclipsePenumbral = eclipsecore.LunarEclipsePenumbral LunarEclipsePartial = eclipsecore.LunarEclipsePartial LunarEclipseTotal = eclipsecore.LunarEclipseTotal )
const ( SolarEclipseModelIAUSingleK = eclipsecore.SolarEclipseModelIAUSingleK SolarEclipseModelNASABulletinSplitK = eclipsecore.SolarEclipseModelNASABulletinSplitK SolarEclipseNone = eclipsecore.SolarEclipseNone SolarEclipsePartial = eclipsecore.SolarEclipsePartial SolarEclipseAnnular = eclipsecore.SolarEclipseAnnular SolarEclipseTotal = eclipsecore.SolarEclipseTotal SolarEclipseHybrid = eclipsecore.SolarEclipseHybrid )
Variables ¶
This section is empty.
Functions ¶
func LocalSolarEclipseSVG ¶
func LocalSolarEclipseSVG( date time.Time, lon, lat, height float64, options LocalSolarEclipseSVGOptions, ) (string, bool)
LocalSolarEclipseSVG 生成给定地点的站心日食日月视圆 SVG,默认使用 NASA bulletin Split-K 模型。 LocalSolarEclipseSVG generates an SVG local solar eclipse Sun-Moon disk chart, using NASA bulletin Split-K by default.
func LocalSolarEclipseSVGIAUSingleK ¶
func LocalSolarEclipseSVGIAUSingleK( date time.Time, lon, lat, height float64, options LocalSolarEclipseSVGOptions, ) (string, bool)
LocalSolarEclipseSVGIAUSingleK 生成站心日食 SVG,使用 IAU Single-K 模型。 LocalSolarEclipseSVGIAUSingleK generates a local solar eclipse SVG with the IAU Single-K model.
func LocalSolarEclipseSVGNASABulletinSplitK ¶
func LocalSolarEclipseSVGNASABulletinSplitK( date time.Time, lon, lat, height float64, options LocalSolarEclipseSVGOptions, ) (string, bool)
LocalSolarEclipseSVGNASABulletinSplitK 生成站心日食 SVG,使用 NASA bulletin Split-K 模型。 LocalSolarEclipseSVGNASABulletinSplitK generates a local solar eclipse SVG with the NASA bulletin Split-K model.
func LunarEclipseSVG ¶
func LunarEclipseSVG(date time.Time, options LunarEclipseSVGOptions) (string, bool)
LunarEclipseSVG 生成月食穿影图 SVG,默认使用 Danjon 影半径模型。 LunarEclipseSVG generates an SVG lunar eclipse shadow-path chart, using the Danjon shadow model by default.
func LunarEclipseSVGChauvenet ¶
func LunarEclipseSVGChauvenet(date time.Time, options LunarEclipseSVGOptions) (string, bool)
LunarEclipseSVGChauvenet 生成月食穿影图 SVG,使用 Chauvenet 影半径模型。 LunarEclipseSVGChauvenet generates an SVG lunar eclipse shadow-path chart with the Chauvenet shadow model.
func LunarEclipseSVGDanjon ¶
func LunarEclipseSVGDanjon(date time.Time, options LunarEclipseSVGOptions) (string, bool)
LunarEclipseSVGDanjon 生成月食穿影图 SVG,使用 Danjon 影半径模型。 LunarEclipseSVGDanjon generates an SVG lunar eclipse shadow-path chart with the Danjon shadow model.
Types ¶
type LocalSolarEclipseContactPoint ¶
type LocalSolarEclipseContactPoint = eclipsecore.LocalSolarEclipseContactPoint
type LocalSolarEclipseInfo ¶
type LocalSolarEclipseInfo = eclipsecore.LocalSolarEclipseInfo
type LocalSolarEclipseSVGOptions ¶
type LocalSolarEclipseSVGOptions struct {
// Width / Height 是 SVG 画布尺寸;<=0 时使用默认尺寸。
// Width/Height are SVG canvas size; values <= 0 use defaults.
Width int
Height int
// Step 是月心路径采样步长;<=0 时使用 5 分钟。
// Step is the Moon-center path sampling step; values <= 0 use five minutes.
Step time.Duration
// Title 是图题;为空时自动生成。
// Title is the chart title; empty values use an automatic title.
Title string
// SummaryText 是标题下第一行摘要;为空时自动生成。
// SummaryText is the first summary line below the title; empty values use an automatic summary.
SummaryText string
// GreatestText 是标题下第二行食甚说明;为空时自动生成。
// GreatestText is the second line below the title for greatest-eclipse details; empty values use automatic text.
GreatestText string
// MetaText 是标题下第三行补充说明;为空时自动生成沙罗/中心食历时等信息。
// MetaText is the third line below the title; empty values use automatic Saros and central-duration text.
MetaText string
// OverviewTitle 是上方总览区标题;为空时自动生成。
// OverviewTitle is the overview-panel title; empty values use an automatic title.
OverviewTitle string
// PhasePanelsTitle 是下方阶段视圆区标题;为空时自动生成。
// PhasePanelsTitle is the phase-panels title; empty values use an automatic title.
PhasePanelsTitle string
// ContactsTitle 是右侧接触时刻区标题;为空时自动生成。
// ContactsTitle is the contacts-panel title; empty values use an automatic title.
ContactsTitle string
// DirectionText 是底部方向说明;为空时自动生成。
// DirectionText is the footer direction note; empty values use an automatic note.
DirectionText string
// FooterNote is the footer explanatory note; empty values use an automatic note.
FooterNote string
// Language 是标签语言;"en" 使用英文,其他值或空值使用中文。
// Language controls label language; "en" uses English, other values or empty values use Chinese.
Language string
// Location 是图中显示时刻的时区;nil 时使用 UTC+8。
// Location is the display timezone for chart times; nil uses UTC+8.
Location *time.Location
}
LocalSolarEclipseSVGOptions 控制站心日食视圆 SVG 输出。 LocalSolarEclipseSVGOptions controls local solar eclipse disk SVG output.
type LunarEclipseContactPoint ¶
type LunarEclipseContactPoint = eclipsecore.LunarEclipseContactPoint
type LunarEclipseInfo ¶
type LunarEclipseInfo = eclipsecore.LunarEclipseInfo
type LunarEclipseSVGOptions ¶
type LunarEclipseSVGOptions struct {
// Width / Height 是 SVG 画布尺寸;<=0 时使用默认尺寸。
// Width/Height are SVG canvas size; values <= 0 use defaults.
Width int
Height int
// Step 是月心路径采样步长;<=0 时使用 5 分钟。
// Step is the Moon-center path sampling step; values <= 0 use five minutes.
Step time.Duration
// Title 是图题;为空时自动生成。
// Title is the chart title; empty values use an automatic title.
Title string
// SummaryText 是标题下第一行摘要;为空时自动生成。
// SummaryText is the first summary line below the title; empty values use an automatic summary.
SummaryText string
// MaximumText 是标题下第二行食甚说明;为空时自动生成。
// MaximumText is the second line below the title for maximum-eclipse details; empty values use automatic text.
MaximumText string
// CoordinatesText 是标题下第三行坐标说明;为空时自动生成。
// CoordinatesText is the third line below the title for coordinates; empty values use automatic text.
CoordinatesText string
// DurationText 是标题下第四行历时说明;为空时自动生成。
// DurationText is the fourth line below the title for durations; empty values use automatic text.
DurationText string
// MetaText 是标题下第五行补充说明;为空时自动生成沙罗信息。
// MetaText is the fifth line below the title; empty values use automatic Saros text.
MetaText string
// ContactsTitle 是接触时刻区标题;为空时自动生成。
// ContactsTitle is the contacts-panel title; empty values use an automatic title.
ContactsTitle string
// DirectionText 是底部方向说明;为空时自动生成。
// DirectionText is the footer direction note; empty values use an automatic note.
DirectionText string
// FooterNote is the footer explanatory note; empty values use an automatic note.
FooterNote string
// Language 是标签语言;"en" 使用英文,其他值或空值使用中文。
// Language controls label language; "en" uses English, other values or empty values use Chinese.
Language string
// Location 是图中显示时刻的时区;nil 时使用 UTC+8。
// Location is the display timezone for chart times; nil uses UTC+8.
Location *time.Location
}
LunarEclipseSVGOptions 控制月食穿影 SVG 输出。 LunarEclipseSVGOptions controls lunar eclipse shadow-path SVG output.
type LunarEclipseType ¶
type LunarEclipseType = eclipsecore.LunarEclipseType
type SolarEclipseRadiusModel ¶
type SolarEclipseRadiusModel = eclipsecore.SolarEclipseRadiusModel
type SolarEclipseType ¶
type SolarEclipseType = eclipsecore.SolarEclipseType