Sorry, it should be Ref(MTKt_Region())
.
Bingo! The latest version of that chk_ function is now
function chk_mtksetregionbypathblockrange()
misr_path = convert(Int32, 37)
misr_block1 = convert(Int32, 32)
misr_block2 = convert(Int32, 40)
region_ref = Ref(MTKt_Region())
status = mtksetregionbypathblockrange!(misr_path, misr_block1, misr_block2, region_ref)
region = region_ref[]
println("region.lat = ", region.lat)
println("region.lon = ", region.lon)
println("region.xlat = ", region.xlat)
println("region.ylon = ", region.ylon)
return status
end
and the outcome is as follows:
julia> Revise.retry()
julia> using MISRToolkit
julia> status = chk_mtksetregionbypathblockrange()
region.lat = 67.28628518822661
region.lon = -95.22204196033839
region.xlat = 633462.5
region.ylon = 307862.5
MTK_SUCCESS::MTKt_status = 0x00000000
julia>
which exactly matches the documentation of that toolkit. Thanks a lot indeed!