add option to cut Feb 29 in leap years
This commit is contained in:
parent
2b43f43006
commit
4a44c45ace
@ -37,6 +37,7 @@ enable:
|
|||||||
build_natura_raster: false
|
build_natura_raster: false
|
||||||
retrieve_natura_raster: true
|
retrieve_natura_raster: true
|
||||||
custom_busmap: false
|
custom_busmap: false
|
||||||
|
drop_leap_days: true
|
||||||
|
|
||||||
electricity:
|
electricity:
|
||||||
voltages: [220., 300., 380.]
|
voltages: [220., 300., 380.]
|
||||||
|
@ -625,4 +625,8 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
add_nice_carrier_names(n, snakemake.config)
|
add_nice_carrier_names(n, snakemake.config)
|
||||||
|
|
||||||
|
if snakemake.config['enable'].get('drop_leap_days', True):
|
||||||
|
leap_days = (n.snapshots.day == 29) & (n.snapshots.month == 2)
|
||||||
|
n.set_snapshots(n.snapshots[~leap_days])
|
||||||
|
|
||||||
n.export_to_netcdf(snakemake.output[0])
|
n.export_to_netcdf(snakemake.output[0])
|
||||||
|
Loading…
Reference in New Issue
Block a user