cmd

package
v0.0.0-...-6493f53 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: MPL-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Copyright © 2020 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2020 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2020 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const ColWidth = 10

ColWidth is the width of the remaining columns in a table

View Source
const CommentWidth = 96

CommentWidth is the width of the comments field

View Source
const DescWidth = 16

DescWidth represents the width of the description field

View Source
const MaxCols = 10

MaxCols is the maximum number number of columns per line

View Source
const SimIDWidth = 10

SimIDWidth is the width of the simulation ID field

View Source
const ValueWidth = 60

ValueWidth represents the width of the value field

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type DataRow

type DataRow struct {
	X, Y, Z int
	Value   float64
}

DataRow represents one row

type HeatMapData

type HeatMapData struct {
	Nx, Ny int
	// contains filtered or unexported fields
}

HeatMapData implements the XYZ interface

func NewHeatMapData

func NewHeatMapData(rows []DataRow) HeatMapData

NewHeatMapData returns a new correctly initialized HeatMapData

func (HeatMapData) Dims

func (h HeatMapData) Dims() (c, r int)

Dims returns the dimansion of the data

func (HeatMapData) X

func (h HeatMapData) X(c int) float64

X returns the x coordinate

func (HeatMapData) Y

func (h HeatMapData) Y(r int) float64

Y returns they coordinate

func (HeatMapData) Z

func (h HeatMapData) Z(c, r int) float64

Z returns the value of the field

Jump to

Keyboard shortcuts

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