Closed PaulWessel closed 9 months ago
I think that one issue with this recipe of mss
doesn't check is the original grid is already in the staging directory. So it is download every time that I run make earth-mss
.
Wait, is it going to be called earth-mss? If yes, that will break the logic of using underscores.
mss: Mean Sea Surface
Yes, I know. But I meant us that the grids should ba named earth_mss, not earth-mss
Sorry. earth-mss
is just form makefile. The recipe is earth_mss
No hyphens used in filenames, just the makefile.
Thanks, I was just playing safe.
Here is a first cut. Suggest you use this recipe, add a temporary exit in srv_downsamples_grid.c around line 142 and run it as
bash -xv scripts/srv_downsamples_grid.c earth_mss
amd examine output. The idea here is that (unfortunately) they called it *.nc so we are stuck with what SRC_CUSTOM and SRC_PROCESS allow. We want
make an orig copy if none exists in staging (this will happen once) RUn the custom command that reads the orig file and expands to -Rd with NaNs
The rest of the scripts should then handle things. WIP since I have not tested it yet and likely needs some changes.