Search Results for

    Show / Hide Table of Contents

    Class SunAndMoon

    Inheritance
    Object
    SunAndMoon
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: AudioAnalysisTools
    Assembly: AudioAnalysisTools.dll
    Syntax
    [Obsolete("This class is not generalizeable and shouldn't be used until it can be made so.")]
    public static class SunAndMoon

    Fields

    | Improve this Doc View Source

    BrisbaneSunriseDatafile

    Declaration
    public static FileInfo BrisbaneSunriseDatafile
    Field Value
    Type Description
    FileInfo

    Methods

    | Improve this Doc View Source

    AddSunRiseSetLinesToImage(Image<Rgb24>, FileInfo, Int32, Int32, Int32)

    Declaration
    public static void AddSunRiseSetLinesToImage(Image<Rgb24> image, FileInfo sunriseSetData, int startdayOfYear, int endDayOfYear, int pixelStep)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> image
    FileInfo sunriseSetData
    Int32 startdayOfYear
    Int32 endDayOfYear
    Int32 pixelStep
    | Improve this Doc View Source

    AddSunTrackToImage(Int32, FileInfo, Int32, Int32, String)

    This method assumes that the argument "dayValue" will not take zero value i.e. dayValue=1 represents January 1st.

    Declaration
    public static Image<Rgb24> AddSunTrackToImage(int width, FileInfo sunriseSetData, int year, int dayValue, string moonPhase = null)
    Parameters
    Type Name Description
    Int32 width
    FileInfo sunriseSetData
    Int32 year
    Int32 dayValue
    String moonPhase
    Returns
    Type Description
    SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24>
    | Improve this Doc View Source

    AddSunTrackToImage(Int32, Nullable<DateTimeOffset>, FileInfo)

    TODO TODO work on this method using website and javascript referred to by Anthony. (suncalc.net) This method requires a properly formatted csv file containing sunrise/sunset data.

    Declaration
    public static Image<Rgb24> AddSunTrackToImage(int width, DateTimeOffset? dateTimeOffset, FileInfo sunriseDatafile)
    Parameters
    Type Name Description
    Int32 width
    Nullable<DateTimeOffset> dateTimeOffset
    FileInfo sunriseDatafile
    Returns
    Type Description
    SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24>
    | Improve this Doc View Source

    ConvertMoonPhaseToString(Double)

    the moon phsae value is assumed to be between 0 and 1. 0 = new moon. 1 = newmoon. 0.5 = full moon.

    Declaration
    public static string ConvertMoonPhaseToString(double phase)
    Parameters
    Type Name Description
    Double phase
    Returns
    Type Description
    String
    | Improve this Doc View Source

    GetPhaseOfMoon(DateTimeOffset)

    The data for establishing the exact startDTO for the phase of moon in 2010 was obtained at the folowing website: http://www.timeanddate.com/moon/phases/australia/brisbane.

    Declaration
    public static double GetPhaseOfMoon(DateTimeOffset dto)
    Parameters
    Type Name Description
    DateTimeOffset dto
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    ParseString2DateTime(String)

    Declaration
    public static DateTimeOffset ParseString2DateTime(string dtString)
    Parameters
    Type Name Description
    String dtString
    Returns
    Type Description
    DateTimeOffset
    | Improve this Doc View Source

    ReadGeorgiaTidalInformation(FileInfo)

    This method is a quick and dirty hack to rad in some tidal info about Georgia Coast and add into spectrogram images. The method is not efficient - just enough to the job done!.

    Declaration
    public static SunAndMoon.SunMoonTides[] ReadGeorgiaTidalInformation(FileInfo file)
    Parameters
    Type Name Description
    FileInfo file
    Returns
    Type Description
    SunAndMoon.SunMoonTides[]
    • Improve this Doc
    • View Source
    In This Article
    Generated by DocFX AP docs version: 21.7.0.4-master-e26127a50d7bd7472d47288f10e61014fb981f7f-DIRTY-CI:144 Back to top