pacificclimate / data-prep-actions

Data Preparation actions - record of ephemera used to prepare data for PCIC data portals and other tools
0 stars 0 forks source link

Update-and-replace metadata script #46

Open corviday opened 3 years ago

corviday commented 3 years ago

Many files in modelmeta have incorrect metadata. It is extremely laborious to update them - usually index_metadata detects a "conflict" when a file has updated metadata, so you have to remove it from the database, update it, reindex it, and re-add it to ensembles. It is slow and fussy work.

It would be easy to automate this process with a wrapper script that calls the various other tools.This script should:

Alternately, index_netcdf could be updated to handle "conflicts" in a more sophisticated fashion and allow updates to dataset metadata more easily.