download

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloader

type Downloader interface {
	// Return the latest image name after a given time if found.
	// If no image was found, filename is "".
	ModifiedSince(after time.Time) (filename string, err error)

	// Download the image with the given filename.
	Download(filename string) (img image.Image, err error)
}

A Downloader is a thing that returns a downloadable image.

type Dscovr

type Dscovr struct{}

Dscovr is a satellite launched by SpaceX. See https://en.wikipedia.org/wiki/Deep_Space_Climate_Observatory

func (Dscovr) Download

func (d Dscovr) Download(filename string) (image.Image, error)

Download the image. Duh.

func (Dscovr) ModifiedSince

func (d Dscovr) ModifiedSince(after time.Time) (string, error)

ModifiedSince returns a filename if the string was modified since 'after'.

type Himawari

type Himawari struct {
	// Depth is the resolution depth. One of 4, 8, 16, 20.
	Depth int
}

Himawari is a japanese weather satellite whose images are a pain in the ass to parse. See https://en.wikipedia.org/wiki/Himawari_8

func (Himawari) Download

func (h Himawari) Download(filename string) (image.Image, error)

Download the grid images and stitch them. TODO: do.

func (Himawari) ModifiedSince

func (h Himawari) ModifiedSince(after time.Time) (string, error)

ModifiedSince returns a filename if the string was modified since 'after'.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL