Qoncussion
Well-Known Member
That valley/field is just over a mile long, from end to end. It's the perfect place to fly.Nice location and photo!
That valley/field is just over a mile long, from end to end. It's the perfect place to fly.Nice location and photo!
Then let's also bring QNH and QFE into play ..."what altitude are you at", with so many possible ways to interpret an answer,
Wait, do we have barometric altimeter on Mavic? LolThen let's also bring QNH and QFE into play ...![]()
def get_dji_meta( filepath ):
"""
Returns a dict with DJI-specific metadata stored in the XMB portion of the image
"""
# list of metadata tags
djimeta=["AbsoluteAltitude","RelativeAltitude","GimbalRollDegree","GimbalYawDegree",\
"GimbalPitchDegree","FlightRollDegree","FlightYawDegree","FlightPitchDegree"]
# read file in binary format and look for XMP metadata portion
fd = open(filepath,'rb')
d= fd.read()
xmp_start = d.find(b'<x:xmpmeta')
xmp_end = d.find(b'</x:xmpmeta')
# convert bytes to string
xmp_b = d[xmp_start:xmp_end+12]
xmp_str = xmp_b.decode()
fd.close()
# parse the XMP string to grab the values
xmp_dict={}
for m in djimeta:
istart = xmp_str.find(m)
ss=xmp_str[istart:istart+len(m)+10]
val = float(ss.split('"')[1])
xmp_dict.update({m : val})
return xmp_dict
Something I've happened to notice though - XMP data is stripped by LightRoom after exporting the jpegs. EXIF data is copied over, though.DJI stores some of the metadata in the XMP portion of the image...
For some reason, the python script you provided doesn't work for me.Something I've happened to notice though - XMP data is stripped by LightRoom after exporting the jpegs. EXIF data is copied over, though.
Also... kinda makes me wonder, whats better, the MP's AGL reading (which is relative to the take-off point, which may happen to be off some skyscraper balcony), or a calculated AGL (while the sources, such as open-elevation.com may be imprecise).
We use essential cookies to make this site work, and optional cookies to enhance your experience.