ED: Make met2model entirely skip complete years#2363
ED: Make met2model entirely skip complete years#2363tonygardella merged 1 commit intoPecanProject:developfrom
Conversation
Unless `overwrite = TRUE`, don't extract met for years for which every required target file is present. This should make `met2model.ED2` run much faster when extending an existing met record.
41e5f00 to
8fb70d2
Compare
serbinsh
left a comment
There was a problem hiding this comment.
Looks good. So we can still force an update if we think the source data has changed by using overwrite=TRUE, seems reasonable to me!!
Does this mean this functionality has to be implemented on a model by model basis instead of at the level of the met process?? Or I guess what this means is that when met process calls the model specific code that is where we need to make sure we recycle existing data
Yup -- with
I think it has to be because of how different met formats are across models. For example, Something like this is conceptually impossible for SiPNET because its met driver is a single text file. |
Description
Unless
overwrite = TRUE, don't extract met for years for which every required target file is present. This should makemet2model.ED2run much faster when extending an existing met record.Tagging @istfer, @mdietze, @serbinsh, and @femeunier as major ED users.
Motivation and Context
When updating existing ED met,
met2modelwould extract variables, etc. for all years, including those for which files are already present. This can add up to a lot of wasted time.Review Time Estimate
Types of changes
Checklist: