Documentation
¶
Index ¶
- Constants
- Variables
- type AngleType
- type ApproximationType
- func (v ApproximationType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (v ApproximationType) MarshalXMLAttr(name xml.Name) (xml.Attr, error)
- func (v ApproximationType) String() string
- func (v *ApproximationType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- func (v *ApproximationType) UnmarshalXMLAttr(attr xml.Attr) error
- type AzimuthType
- type BaseFilterType
- type BaseNodeType
- type CfTransferFunctionType
- func (v CfTransferFunctionType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (v CfTransferFunctionType) MarshalXMLAttr(name xml.Name) (xml.Attr, error)
- func (v CfTransferFunctionType) String() string
- func (v *CfTransferFunctionType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- func (v *CfTransferFunctionType) UnmarshalXMLAttr(attr xml.Attr) error
- type ChannelType
- type ClockDrift
- type Coefficient
- type CoefficientsType
- type CommentType
- type CounterType
- type DataAvailabilityExtentType
- type DataAvailabilitySpanType
- type DataAvailabilityType
- type DateTime
- type DecimationType
- type Denominator
- type DipType
- type DistanceType
- type EmailType
- type EquipmentType
- type ExternalReferenceType
- type FDSNStationXML
- type FIRType
- type FloatNoUnitType
- type FloatType
- type FrequencyType
- type GainType
- type IdentifierType
- type LatitudeBaseType
- type LatitudeType
- type LongitudeBaseType
- type LongitudeType
- type NetworkType
- type NominalType
- func (v NominalType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (v NominalType) MarshalXMLAttr(name xml.Name) (xml.Attr, error)
- func (v NominalType) String() string
- func (v *NominalType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- func (v *NominalType) UnmarshalXMLAttr(attr xml.Attr) error
- type Numerator
- type NumeratorCoefficient
- type OperatorType
- type PersonType
- type PhoneNumber
- type PhoneNumberType
- type PoleZeroType
- type PolesZerosType
- type PolynomialType
- type PzTransferFunctionType
- func (v PzTransferFunctionType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (v PzTransferFunctionType) MarshalXMLAttr(name xml.Name) (xml.Attr, error)
- func (v PzTransferFunctionType) String() string
- func (v *PzTransferFunctionType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- func (v *PzTransferFunctionType) UnmarshalXMLAttr(attr xml.Attr) error
- type ResponseListElementType
- type ResponseListType
- type ResponseStageType
- type ResponseType
- type RestrictedStatusType
- func (v RestrictedStatusType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (v RestrictedStatusType) MarshalXMLAttr(name xml.Name) (xml.Attr, error)
- func (v RestrictedStatusType) String() string
- func (v *RestrictedStatusType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- func (v *RestrictedStatusType) UnmarshalXMLAttr(attr xml.Attr) error
- type RootType
- type SampleRateRatioType
- type SampleRateType
- type SecondType
- type SensitivityType
- type SiteType
- type StationType
- type Symmetry
- func (v Symmetry) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (v Symmetry) MarshalXMLAttr(name xml.Name) (xml.Attr, error)
- func (v Symmetry) String() string
- func (v *Symmetry) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- func (v *Symmetry) UnmarshalXMLAttr(attr xml.Attr) error
- type Type
- type UnitsType
- type VoltageType
Constants ¶
View Source
const DateTimeFormat = "2006-01-02T15:04:05"
only include down to seconds
View Source
const SchemaVersion = 1.1
for use when building the root element
Variables ¶
View Source
var ErrInvalidApproximationType = errors.New("unknown or invalid ApproximationType value")
View Source
var ErrInvalidCfTransferFunctionType = errors.New("unknown or invalid CfTransferFunctionType value")
View Source
var ErrInvalidNominalType = errors.New("unknown or invalid NominalType value")
View Source
var ErrInvalidPzTransferFunctionType = errors.New("unknown or invalid PzTransferFunctionType value")
View Source
var ErrInvalidRestrictedStatusType = errors.New("unknown or invalid RestrictedStatusType value")
View Source
var ErrInvalidSymmetry = errors.New("unknown or invalid Symmetry value")
View Source
var ErrInvalidType = errors.New("unknown or invalid Type value")
Functions ¶
This section is empty.
Types ¶
type ApproximationType ¶
type ApproximationType uint32
const (
MaclaurinApproximation ApproximationType = 1 + iota
)
func ToApproximationType ¶
func ToApproximationType(s string) ApproximationType
func (ApproximationType) MarshalXML ¶
func (v ApproximationType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (ApproximationType) MarshalXMLAttr ¶
func (ApproximationType) String ¶
func (v ApproximationType) String() string
func (*ApproximationType) UnmarshalXML ¶
func (v *ApproximationType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (*ApproximationType) UnmarshalXMLAttr ¶
func (v *ApproximationType) UnmarshalXMLAttr(attr xml.Attr) error
type AzimuthType ¶
type AzimuthType struct {
FloatType
}
type BaseFilterType ¶
type BaseNodeType ¶
type BaseNodeType struct {
Code string `xml:"code,attr"`
StartDate DateTime `xml:"startDate,attr,omitempty"`
EndDate DateTime `xml:"endDate,attr,omitempty"`
RestrictedStatus RestrictedStatusType `xml:"restrictedStatus,attr,omitempty"`
AlternateCode string `xml:"alternateCode,attr,omitempty"`
HistoricalCode string `xml:"historicalCode,attr,omitempty"`
Description string `xml:"Description,omitempty"`
Identifier []IdentifierType `xml:"Identifier,omitempty"`
Comment []CommentType `xml:"Comment,omitempty"`
DataAvailability *DataAvailabilityType `xml:"DataAvailability,omitempty"`
}
type CfTransferFunctionType ¶
type CfTransferFunctionType uint32
const ( AnalogRadiansSecondCfTransferFunction CfTransferFunctionType = 1 + iota AnalogHertzCfTransferFunction DigitalCfTransferFunction )
func ToCfTransferFunctionType ¶
func ToCfTransferFunctionType(s string) CfTransferFunctionType
func (CfTransferFunctionType) MarshalXML ¶
func (v CfTransferFunctionType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (CfTransferFunctionType) MarshalXMLAttr ¶
func (CfTransferFunctionType) String ¶
func (v CfTransferFunctionType) String() string
func (*CfTransferFunctionType) UnmarshalXML ¶
func (v *CfTransferFunctionType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (*CfTransferFunctionType) UnmarshalXMLAttr ¶
func (v *CfTransferFunctionType) UnmarshalXMLAttr(attr xml.Attr) error
type ChannelType ¶
type ChannelType struct {
BaseNodeType
LocationCode string `xml:"locationCode,attr"`
ExternalReference []ExternalReferenceType `xml:"ExternalReference,omitempty"`
Latitude LatitudeType `xml:"Latitude"`
Longitude LongitudeType `xml:"Longitude"`
Elevation DistanceType `xml:"Elevation"`
Depth DistanceType `xml:"Depth"`
Azimuth *AzimuthType `xml:"Azimuth,omitempty"`
Dip *DipType `xml:"Dip,omitempty"`
WaterLevel *FloatType `xml:"WaterLevel,omitempty"`
Type []Type `xml:"Type,omitempty"`
SampleRate SampleRateType `xml:"SampleRate"`
SampleRateRatio *SampleRateRatioType `xml:"SampleRateRatio,omitempty"`
ClockDrift *ClockDrift `xml:"ClockDrift,omitempty"`
CalibrationUnits *UnitsType `xml:"CalibrationUnits,omitempty"`
Sensor *EquipmentType `xml:"Sensor,omitempty"`
PreAmplifier *EquipmentType `xml:"PreAmplifier,omitempty"`
DataLogger *EquipmentType `xml:"DataLogger,omitempty"`
Equipment []EquipmentType `xml:"Equipment,omitempty"`
Response *ResponseType `xml:"Response,omitempty"`
}
type ClockDrift ¶
type ClockDrift struct {
FloatType
}
type Coefficient ¶
type Coefficient struct {
FloatNoUnitType
Number CounterType `xml:"number,attr,omitempty"`
}
type CoefficientsType ¶
type CoefficientsType struct {
BaseFilterType
CfTransferFunctionType CfTransferFunctionType `xml:"CfTransferFunctionType"`
Numerator []Numerator `xml:"Numerator,omitempty"`
Denominator []Denominator `xml:"Denominator,omitempty"`
}
type CommentType ¶
type CommentType struct {
Id CounterType `xml:"id,attr,omitempty"`
Subject string `xml:"subject,attr,omitempty"`
Value string `xml:"Value"`
BeginEffectiveTime DateTime `xml:"BeginEffectiveTime,omitempty"`
EndEffectiveTime DateTime `xml:"EndEffectiveTime,omitempty"`
Author []PersonType `xml:"Author,omitempty"`
}
type CounterType ¶
type CounterType int
type DataAvailabilityType ¶
type DataAvailabilityType struct {
Extent *DataAvailabilityExtentType `xml:"Extent,omitempty"`
Span []DataAvailabilitySpanType `xml:"Span,omitempty"`
}
type DateTime ¶
func MustParseDateTime ¶
func MustParseDateTimePtr ¶
func NewDateTime ¶
func ParseDateTime ¶
func (DateTime) MarshalXML ¶
func (*DateTime) UnmarshalXML ¶
type DecimationType ¶
type DecimationType struct {
InputSampleRate FrequencyType `xml:"InputSampleRate"`
Factor int `xml:"Factor"`
Offset int `xml:"Offset"`
Delay FloatType `xml:"Delay"`
Correction FloatType `xml:"Correction"`
}
type Denominator ¶
type Denominator struct {
FloatNoUnitType
Number CounterType `xml:"number,attr,omitempty"`
}
type DistanceType ¶
type DistanceType struct {
FloatType
}
type EquipmentType ¶
type EquipmentType struct {
ResourceId string `xml:"resourceId,attr,omitempty"`
Type string `xml:"Type,omitempty"`
Description string `xml:"Description,omitempty"`
Manufacturer string `xml:"Manufacturer,omitempty"`
Vendor string `xml:"Vendor,omitempty"`
Model string `xml:"Model,omitempty"`
SerialNumber string `xml:"SerialNumber,omitempty"`
InstallationDate DateTime `xml:"InstallationDate,omitempty"`
RemovalDate DateTime `xml:"RemovalDate,omitempty"`
CalibrationDate []DateTime `xml:"CalibrationDate,omitempty"`
}
type ExternalReferenceType ¶
type ExternalReferenceType struct {
Description string `xml:"Description"`
}
type FDSNStationXML ¶
type FDSNStationXML struct {
XMLName xml.Name `xml:"http://www.fdsn.org/xml/station/1 FDSNStationXML"`
RootType
}
func (FDSNStationXML) Marshal ¶
func (x FDSNStationXML) Marshal() ([]byte, error)
func (FDSNStationXML) MarshalIndent ¶
func (x FDSNStationXML) MarshalIndent(prefix, indent string) ([]byte, error)
type FIRType ¶
type FIRType struct {
BaseFilterType
Symmetry Symmetry `xml:"Symmetry"`
NumeratorCoefficient []NumeratorCoefficient `xml:"NumeratorCoefficient,omitempty"`
}
type FloatNoUnitType ¶
type FrequencyType ¶
type FrequencyType struct {
FloatType
}
type IdentifierType ¶
type LatitudeBaseType ¶
type LatitudeBaseType struct {
FloatType
}
type LatitudeType ¶
type LatitudeType struct {
LatitudeBaseType
Datum string `xml:"datum,attr,omitempty"`
}
type LongitudeBaseType ¶
type LongitudeBaseType struct {
FloatType
}
type LongitudeType ¶
type LongitudeType struct {
LongitudeBaseType
Datum string `xml:"datum,attr,omitempty"`
}
type NetworkType ¶
type NetworkType struct {
BaseNodeType
Operator []OperatorType `xml:"Operator,omitempty"`
TotalNumberStations *CounterType `xml:"TotalNumberStations,omitempty"`
SelectedNumberStations *CounterType `xml:"SelectedNumberStations,omitempty"`
Station []StationType `xml:"Station,omitempty"`
}
type NominalType ¶
type NominalType uint32
const ( NominalNominal NominalType = 1 + iota CalculatedNominal )
func ToNominalType ¶
func ToNominalType(s string) NominalType
func (NominalType) MarshalXML ¶
func (v NominalType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (NominalType) MarshalXMLAttr ¶
func (NominalType) String ¶
func (v NominalType) String() string
func (*NominalType) UnmarshalXML ¶
func (v *NominalType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (*NominalType) UnmarshalXMLAttr ¶
func (v *NominalType) UnmarshalXMLAttr(attr xml.Attr) error
type Numerator ¶
type Numerator struct {
FloatNoUnitType
Number CounterType `xml:"number,attr,omitempty"`
}
type NumeratorCoefficient ¶
type OperatorType ¶
type OperatorType struct {
Agency string `xml:"Agency"`
Contact []PersonType `xml:"Contact,omitempty"`
}
type PersonType ¶
type PersonType struct {
Name []string `xml:"Name,omitempty"`
Agency []string `xml:"Agency,omitempty"`
Email []EmailType `xml:"Email,omitempty"`
Phone []PhoneNumberType `xml:"Phone,omitempty"`
}
type PhoneNumber ¶
type PhoneNumber string
type PhoneNumberType ¶
type PhoneNumberType struct {
Description string `xml:"description,attr,omitempty"`
CountryCode int `xml:"CountryCode,omitempty"`
AreaCode int `xml:"AreaCode"`
PhoneNumber PhoneNumber `xml:"PhoneNumber"`
}
type PoleZeroType ¶
type PoleZeroType struct {
Number int `xml:"number,attr,omitempty"`
Real FloatNoUnitType `xml:"Real"`
Imaginary FloatNoUnitType `xml:"Imaginary"`
}
type PolesZerosType ¶
type PolesZerosType struct {
BaseFilterType
PzTransferFunctionType PzTransferFunctionType `xml:"PzTransferFunctionType"`
NormalizationFactor float64 `xml:"NormalizationFactor,omitempty"`
NormalizationFrequency FrequencyType `xml:"NormalizationFrequency"`
Zero []PoleZeroType `xml:"Zero,omitempty"`
Pole []PoleZeroType `xml:"Pole,omitempty"`
}
type PolynomialType ¶
type PolynomialType struct {
BaseFilterType
ApproximationType *ApproximationType `xml:"ApproximationType,omitempty"`
FrequencyLowerBound FrequencyType `xml:"FrequencyLowerBound"`
FrequencyUpperBound FrequencyType `xml:"FrequencyUpperBound"`
ApproximationLowerBound float64 `xml:"ApproximationLowerBound"`
ApproximationUpperBound float64 `xml:"ApproximationUpperBound"`
MaximumError float64 `xml:"MaximumError"`
Coefficient []Coefficient `xml:"Coefficient"`
}
type PzTransferFunctionType ¶
type PzTransferFunctionType uint32
const ( LaplaceRadiansSecondPzTransferFunction PzTransferFunctionType = 1 + iota LaplaceHertzPzTransferFunction DigitalZTransformPzTransferFunction )
func ToPzTransferFunctionType ¶
func ToPzTransferFunctionType(s string) PzTransferFunctionType
func (PzTransferFunctionType) MarshalXML ¶
func (v PzTransferFunctionType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (PzTransferFunctionType) MarshalXMLAttr ¶
func (PzTransferFunctionType) String ¶
func (v PzTransferFunctionType) String() string
func (*PzTransferFunctionType) UnmarshalXML ¶
func (v *PzTransferFunctionType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (*PzTransferFunctionType) UnmarshalXMLAttr ¶
func (v *PzTransferFunctionType) UnmarshalXMLAttr(attr xml.Attr) error
type ResponseListElementType ¶
type ResponseListElementType struct {
Frequency FrequencyType `xml:"Frequency"`
Amplitude FloatType `xml:"Amplitude"`
Phase AngleType `xml:"Phase"`
}
type ResponseListType ¶
type ResponseListType struct {
BaseFilterType
ResponseListElement []ResponseListElementType `xml:"ResponseListElement,omitempty"`
}
type ResponseStageType ¶
type ResponseStageType struct {
Number CounterType `xml:"number,attr"`
ResourceId string `xml:"resourceId,attr,omitempty"`
PolesZeros *PolesZerosType `xml:"PolesZeros,omitempty"`
Coefficients *CoefficientsType `xml:"Coefficients,omitempty"`
ResponseList *ResponseListType `xml:"ResponseList,omitempty"`
FIR *FIRType `xml:"FIR,omitempty"`
Decimation *DecimationType `xml:"Decimation,omitempty"`
StageGain *GainType `xml:"StageGain,omitempty"`
Polynomial *PolynomialType `xml:"Polynomial,omitempty"`
}
type ResponseType ¶
type ResponseType struct {
ResourceId string `xml:"resourceId,attr,omitempty"`
InstrumentSensitivity *SensitivityType `xml:"InstrumentSensitivity,omitempty"`
InstrumentPolynomial *PolynomialType `xml:"InstrumentPolynomial,omitempty"`
Stage []ResponseStageType `xml:"Stage,omitempty"`
}
type RestrictedStatusType ¶
type RestrictedStatusType uint32
const ( OpenRestrictedStatus RestrictedStatusType = 1 + iota ClosedRestrictedStatus PartialRestrictedStatus )
func ToRestrictedStatusType ¶
func ToRestrictedStatusType(s string) RestrictedStatusType
func (RestrictedStatusType) MarshalXML ¶
func (v RestrictedStatusType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
func (RestrictedStatusType) MarshalXMLAttr ¶
func (RestrictedStatusType) String ¶
func (v RestrictedStatusType) String() string
func (*RestrictedStatusType) UnmarshalXML ¶
func (v *RestrictedStatusType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (*RestrictedStatusType) UnmarshalXMLAttr ¶
func (v *RestrictedStatusType) UnmarshalXMLAttr(attr xml.Attr) error
type SampleRateRatioType ¶
type SampleRateType ¶
type SampleRateType struct {
FloatType
}
type SecondType ¶
type SecondType struct {
FloatType
}
type SensitivityType ¶
type StationType ¶
type StationType struct {
BaseNodeType
Latitude LatitudeType `xml:"Latitude"`
Longitude LongitudeType `xml:"Longitude"`
Elevation DistanceType `xml:"Elevation"`
Site SiteType `xml:"Site"`
WaterLevel *FloatType `xml:"WaterLevel,omitempty"`
Vault string `xml:"Vault,omitempty"`
Geology string `xml:"Geology,omitempty"`
Equipment []EquipmentType `xml:"Equipment,omitempty"`
Operator []OperatorType `xml:"Operator,omitempty"`
CreationDate DateTime `xml:"CreationDate,omitempty"`
TerminationDate DateTime `xml:"TerminationDate,omitempty"`
TotalNumberChannels *CounterType `xml:"TotalNumberChannels,omitempty"`
SelectedNumberChannels *CounterType `xml:"SelectedNumberChannels,omitempty"`
ExternalReference []ExternalReferenceType `xml:"ExternalReference,omitempty"`
Channel []ChannelType `xml:"Channel,omitempty"`
}
type Symmetry ¶
type Symmetry uint32
func ToSymmetry ¶
func (Symmetry) MarshalXML ¶
func (*Symmetry) UnmarshalXML ¶
type VoltageType ¶
type VoltageType struct {
FloatType
}
Source Files
¶
- angle_type.go
- approximation_type.go
- azimuth_type.go
- base_filter_type.go
- base_node_type.go
- cf_transfer_function_type.go
- channel_type.go
- clock_drift.go
- coefficient.go
- coefficients_type.go
- comment_type.go
- counter_type.go
- data_availability_extent_type.go
- data_availability_span_type.go
- data_availability_type.go
- date_time.go
- decimation_type.go
- denominator.go
- dip_type.go
- distance_type.go
- email_type.go
- equipment_type.go
- external_reference_type.go
- fir_type.go
- float_no_unit_type.go
- float_type.go
- frequency_type.go
- gain_type.go
- identifier_type.go
- latitude_base_type.go
- latitude_type.go
- longitude_base_type.go
- longitude_type.go
- network_type.go
- nominal_type.go
- numerator.go
- numerator_coefficient.go
- operator_type.go
- person_type.go
- phone_number.go
- phone_number_type.go
- pole_zero_type.go
- poles_zeros_type.go
- polynomial_type.go
- pz_transfer_function_type.go
- response_list_element_type.go
- response_list_type.go
- response_stage_type.go
- response_type.go
- restricted_status_type.go
- root_type.go
- sample_rate_ratio_type.go
- sample_rate_type.go
- second_type.go
- sensitivity_type.go
- site_type.go
- station_type.go
- station_xml.go
- symmetry.go
- type.go
- units_type.go
- voltage_type.go
Click to show internal directories.
Click to hide internal directories.