aodn / content

Tracks AODN Portal content and configuration issues
0 stars 0 forks source link

ANMN - `reference_datum` attribute not correctly documented after magnetic declination correction #374

Open ggalibert opened 5 years ago

ggalibert commented 5 years ago

This impacts all ADCP files that have undergone magnetic declination correction by the toolbox prior to version 2.5.40. Could be manually corrected by AODN PO (like me!).

One way to find the impacted files is to look in the history global attribute:

select url from anmn_metadata.indexed_file f
inner join anmn_metadata.file_metadata m
on m.file_id = f.id
and m.deleted is FALSE
inner join anmn_metadata.global_attribute g
on g.file_id = m.file_id
where g.name = 'history' 
and g.value like '%magneticDeclinationPP%'
order by url

Any variable impacted should have its variable attribute reference_datum set to "true north" instead of "magnetic north".

ggalibert commented 5 years ago

See https://github.com/aodn/imos-toolbox/issues/514