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

Add a helper script for cdo mergegrid #50

Open corviday opened 3 years ago

corviday commented 3 years ago

The cdo mergegrid command takes two input files with different spatial extents and outputs a file that has the data from both, except that, weirdly, it crops this file to the size of one of the input files. So if the files don't have the exact same latitude and longitude grids, one of them will get cut off in the output.

This script outputs a blank file with a spatial extent large enough to contain both inputs. This blank file can then be used as the extent-setting input to cdo mergegrid to make sure all the data makes it into the final output.