GithubHelp home page GithubHelp logo

jufemaiz / go-aemo Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 139 KB

A Go package for managing Australian Energy Market data formats.

License: MIT License

Dockerfile 0.20% Makefile 1.49% Go 98.31%
aemo golang

go-aemo's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ Iโ€™m currently working on Enosi's Powertracer platform
  • ๐ŸŒฑ Iโ€™m always learning
  • ๐Ÿ’ฌ Ask me about the intersection of technology and energy โ€“ I've spent nearly twenty years working on the tough challenges in this space!
  • ๐Ÿ“ซ How to reach me: reach out on ๐Ÿฆ @joelmcourtney or ๐Ÿ˜ @[email protected]
  • ๐Ÿ˜„ Pronouns: he/him/his
  • โšก Fun fact: I'm an avid rider of bicycles - even taking my bike with me on a work trip to Japan!

go-aemo's People

Contributors

jufemaiz avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

go-aemo's Issues

AEMO variation to MDM Data Stream Identifier in Standing Data for MSATS v5.0 effective at 2022-02-06

go-aemo/nem12/field.go

Lines 361 to 398 in 535d671

// Standing Data details:
//
// Metering Datastream identifier (for MDM). Identifies the Datastream as
// delivered to AEMO for settlements purposes. The value must be a valid suffix
// for this NMI and is active for this date range. The value must comply with
// requirements of the NMI Procedure.
//
// If the MeterInstallCode is COMMSn, MRIM, MRAM, VICAMI or UMCP, the Suffix
// value must be in the form `Nx` where DataStreamType is I or P for an interval
// Datastream. If the MeterInstallCode is BASIC, the Suffix value must be
// numeric.
//
// Ref:
//nolint:lll
// <https://www.aemo.com.au/-/media/Files/Electricity/NEM/Retail_and_Metering/Market_Settlement_And_Transfer_Solutions/2017/Standing-Data-for-MSATS.pdf>
func validateFieldMDMDataStreamIdentifier(v string) error {
if v == "" {
// No longer return an error. // return fmt.Errorf("field MDM data stream identifier: %w", ErrFieldNil)
return nil
}
runes := []rune(v)
for i, r := range runes {
switch i {
case 0:
if string(r) != "N" {
return fmt.Errorf("field MDM data stream identifier '%s': %w", v, ErrFieldMDMDataStreamIdentifierInvalid)
}
case 1:
if err := ValidateSuffixMeter(string(r)); err != nil {
return fmt.Errorf("field MDM data stream identifier '%s': %w", v, err)
}
}
}
return nil
}

image

The Metering Datastream identifier (for MDM). Identifies the ElectricityDataStream Suffix as delivered to AEMO for NEM Settlement calculations, profile peeloff, UFE analysis and Vic TUOS sites.

The value must be a valid as per Datastream suffix details specified in the NMI Procedure.

The value must match the MDMContributorySuffix value provided in an MDFF File.

Ref:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.