ISOBand
ISOBand
Object of R6Class
for modelling an ISOBand
R6Class
object.
maxValue
[numeric
]
minValue
[numeric
]
units
peakResponse
[numeric
]
bitsPerValue
[integer
]
toneGradation
[integer
]
scaleFactor
[numeric
]
offset
[numeric
]
new(xml)
This method is used to instantiate an ISOBand
setMaxValue(maxValue)
Sets the maximum value
setMinValue(minValue)
Sets the minimum value
setUnits(units)
Sets the unit, object of class GMLUnitDefinition
setPeakResponse(peakResponse)
Sets the peak response
setBitsPerValue(bitsPerValue)
Sets the bits per value
setToneGradation
Sets the tone gradation
setScaleFactor(scaleFactor)
Sets the scale factor
setOffset(offset)
Sets the offset
# NOT RUN {
#create band range dimension
md <- ISOBand$new()
md$setSequenceIdentifier(ISOMemberName$new(aName = "name", attributeType = "type"))
md$setDescriptor("descriptor")
md$setMaxValue(10)
md$setMinValue(1)
gml <- GMLBaseUnit$new(id = "ID")
gml$setDescriptionReference("someref")
gml$setIdentifier("identifier", "codespace")
gml$addName("name1", "codespace")
gml$addName("name2", "codespace")
gml$setQuantityTypeReference("someref")
gml$setCatalogSymbol("symbol")
gml$setUnitsSystem("somelink")
md$setUnits(gml)
md$setPeakResponse(9)
md$setBitsPerValue(5)
md$setToneGradation(100)
md$setScaleFactor(1)
md$setOffset(4)
xml <- md$encode()
# }
Run the code above in your browser using DataLab