Class SunAndMoon
Assembly: AudioAnalysisTools.dll
[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
Declaration
public static FileInfo BrisbaneSunriseDatafile
Field Value
Methods
|
Improve this Doc
View Source
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
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
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
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
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
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
|
Improve this Doc
View Source
Declaration
public static double GetPhaseOfMoon(DateTimeOffset dto)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static DateTimeOffset ParseString2DateTime(string dtString)
Parameters
Type |
Name |
Description |
String |
dtString |
|
Returns
|
Improve this Doc
View Source
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
Returns