Skip to content

Commit

Permalink
SarCommonFrequencyBandName
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelmathot committed Oct 2, 2020
1 parent 8519c7b commit 1aa6868
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
15 changes: 15 additions & 0 deletions src/DotNetStac/Extensions/Sar/SarCommonFrequencyBandName.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
namespace Stac.Extensions.Sar
{
public enum SarCommonFrequencyBandName
{

P,
L,
S,
C,
X,
Ku,
K,
Ka
}
}
8 changes: 4 additions & 4 deletions src/DotNetStac/Extensions/Sar/SarStacExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ public class SarStacExtension : AssignableStacExtension, IStacExtension
public const string ObservationDirectionField = "observation_direction";


public SarStacExtension(string instrumentMode, string frequencyBand, string[] polarizations, string productType) : base(Prefix)
public SarStacExtension(string instrumentMode, SarCommonFrequencyBandName frequencyBandName, string[] polarizations, string productType) : base(Prefix)
{
InstrumentMode = instrumentMode;
FrequencyBand = frequencyBand;
FrequencyBand = frequencyBandName;
Polarizations = polarizations;
ProductType = productType;
}
Expand All @@ -41,9 +41,9 @@ public string InstrumentMode
set { base.SetField(InstrumentModeField, value); }
}

public string FrequencyBand
public SarCommonFrequencyBandName FrequencyBand
{
get { return base.GetField<string>(FrequencyBandField); }
get { return base.GetField<SarCommonFrequencyBandName>(FrequencyBandField); }
set { base.SetField(FrequencyBandField, value); }
}

Expand Down

0 comments on commit 1aa6868

Please sign in to comment.