diff --git a/cscripts/csfootprint.py b/cscripts/csfootprint.py index b0f981c..c3f31d9 100755 --- a/cscripts/csfootprint.py +++ b/cscripts/csfootprint.py @@ -600,7 +600,7 @@ class csfootprint(ctools.cscript): fig.text(0.5, 0.925, subtitle, fontsize=11, ha='center') # Set plot margins - fig.subplots_adjust(left=0.07, bottom=0.07, right=0.97, top=0.88, + fig.subplots_adjust(left=0.08, bottom=0.07, right=0.97, top=0.88, wspace=0.1, hspace=0.2) # Divide figure diff --git a/doc/source/users/environment.rst b/doc/source/users/environment.rst index baf8640..794d695 100755 --- a/doc/source/users/environment.rst +++ b/doc/source/users/environment.rst @@ -71,93 +71,167 @@ display the content of this file using the ``csfootprint`` script: Stop time for report (UTC string, JD, MJD or MET in seconds) [NONE] Output graphics file (NONE if no graphics should be generated) [NONE] ... - 2022-02-20T14:38:29: +===================+ - 2022-02-20T14:38:29: | Global statistics | - 2022-02-20T14:38:29: +===================+ - 2022-02-20T14:38:29: Creation date .............: 2022-02-19T22:09:05 - 2022-02-20T14:38:29: Last statistics update ....: 2022-02-20T14:35:20 - 2022-02-20T14:38:29: Statistics date interval ..: 2022-02-18T22:21:56 - 2022-02-20T14:35:17 - 2022-02-20T14:38:29: Used date interval ........: 2022-02-18T22:21:56 - 2022-02-20T14:35:17 - 2022-02-20T14:38:29: Duration of used interval .: 40.222 hours - 2022-02-20T14:38:29: Total number of ctool runs : 3104 - 2022-02-20T14:38:29: Total wall clock time .....: 34.200 minutes - 2022-02-20T14:38:29: Total CPU time ............: 27.543 minutes - 2022-02-20T14:38:29: Average CPU load ..........: 80.5 % - 2022-02-20T14:38:29: Total carbon footprint ....: 1.623 g CO2e - 2022-02-20T14:38:29: Average carbon intensity ..: 3.535 g CO2e / CPU hour - 2022-02-20T14:38:29: Average daily footprint ...: 0.968 g CO2e / day - 2022-02-20T14:38:29: Expected annual footprint .: 353.632 g CO2e / year - 2022-02-20T14:38:29: - 2022-02-20T14:38:29: +==================+ - 2022-02-20T14:38:29: | Daily statistics | - 2022-02-20T14:38:29: +==================+ - 2022-02-20T14:38:29: === Carbon footprint === - 2022-02-20T14:38:29: 2022-02-18 ................: 1.336 g CO2e - 2022-02-20T14:38:29: 2022-02-19 ................: 0.010 g CO2e - 2022-02-20T14:38:29: 2022-02-20 ................: 0.277 g CO2e - 2022-02-20T14:38:29: === ctools or cscript calls === - 2022-02-20T14:38:29: 2022-02-18 ................: 2895 - 2022-02-20T14:38:29: 2022-02-19 ................: 80 - 2022-02-20T14:38:29: 2022-02-20 ................: 129 - 2022-02-20T14:38:29: === Used wall clock time === - 2022-02-20T14:38:29: 2022-02-18 ................: 25.483 minutes - 2022-02-20T14:38:29: 2022-02-19 ................: 1.033 minutes - 2022-02-20T14:38:29: 2022-02-20 ................: 7.683 minutes - 2022-02-20T14:38:29: === Used CPU time === - 2022-02-20T14:38:29: 2022-02-18 ................: 22.682 minutes - 2022-02-20T14:38:29: 2022-02-19 ................: 9.895 seconds - 2022-02-20T14:38:29: 2022-02-20 ................: 4.695 minutes - 2022-02-20T14:38:29: - 2022-02-20T14:38:29: +================================+ - 2022-02-20T14:38:29: | ctools and cscripts statistics | - 2022-02-20T14:38:29: +================================+ - 2022-02-20T14:38:29: === Carbon footprint === - 2022-02-20T14:38:29: ctlike ....................: 0.318 g CO2e - 2022-02-20T14:38:29: cspull ....................: 0.186 g CO2e - 2022-02-20T14:38:29: csbkgmodel ................: 0.178 g CO2e - 2022-02-20T14:38:29: ctobssim ..................: 0.172 g CO2e - 2022-02-20T14:38:29: ctobssim ..................: 0.087 g CO2e - 2022-02-20T14:38:29: comobsbin .................: 0.081 g CO2e - 2022-02-20T14:38:29: comlixmap .................: 0.069 g CO2e - 2022-02-20T14:38:29: ctulimit ..................: 0.064 g CO2e - 2022-02-20T14:38:29: cstsdist ..................: 0.058 g CO2e - 2022-02-20T14:38:29: ctselect ..................: 0.044 g CO2e - 2022-02-20T14:38:29: ... (list truncated after 10 entries) ... - 2022-02-20T14:38:29: === ctools or cscript calls === - 2022-02-20T14:38:29: ctobssim ..................: 1795 - 2022-02-20T14:38:29: ctlike ....................: 220 - 2022-02-20T14:38:29: ctselect ..................: 87 - 2022-02-20T14:38:29: csfootprint ...............: 80 - 2022-02-20T14:38:29: cscaldb ...................: 79 - 2022-02-20T14:38:29: csscs .....................: 55 - 2022-02-20T14:38:29: ctulimit ..................: 54 - 2022-02-20T14:38:29: ctcubemask ................: 51 - 2022-02-20T14:38:29: csphagen ..................: 46 - 2022-02-20T14:38:29: ctbin .....................: 31 - 2022-02-20T14:38:29: ... (list truncated after 10 entries) ... - 2022-02-20T14:38:29: === Used wall clock time === - 2022-02-20T14:38:29: ctlike ....................: 5.367 minutes - 2022-02-20T14:38:29: cspull ....................: 3.817 minutes - 2022-02-20T14:38:29: csbkgmodel ................: 3.067 minutes - 2022-02-20T14:38:29: ctobssim ..................: 2.967 minutes - 2022-02-20T14:38:29: csfootprint ...............: 2.300 minutes - 2022-02-20T14:38:29: ctobssim ..................: 1.483 minutes - 2022-02-20T14:38:29: comobsbin .................: 1.367 minutes - 2022-02-20T14:38:29: cstsdist ..................: 1.300 minutes - 2022-02-20T14:38:29: comlixmap .................: 1.183 minutes - 2022-02-20T14:38:29: ctselect ..................: 1.083 minutes - 2022-02-20T14:38:29: ... (list truncated after 10 entries) ... - 2022-02-20T14:38:29: === Used CPU time === - 2022-02-20T14:38:29: ctlike ....................: 5.392 minutes - 2022-02-20T14:38:29: cspull ....................: 3.157 minutes - 2022-02-20T14:38:29: csbkgmodel ................: 3.029 minutes - 2022-02-20T14:38:29: ctobssim ..................: 2.921 minutes - 2022-02-20T14:38:29: ctobssim ..................: 1.469 minutes - 2022-02-20T14:38:29: comobsbin .................: 1.367 minutes - 2022-02-20T14:38:29: comlixmap .................: 1.169 minutes - 2022-02-20T14:38:29: ctulimit ..................: 1.086 minutes - 2022-02-20T14:38:29: cstsdist ..................: 58.978 seconds - 2022-02-20T14:38:29: ctselect ..................: 45.005 seconds - 2022-02-20T14:38:29: ... (list truncated after 10 entries) ... + 2022-03-11T15:12:58: +===================+ + 2022-03-11T15:12:58: | Global statistics | + 2022-03-11T15:12:58: +===================+ + 2022-03-11T15:12:58: Creation date .............: 2022-02-21T10:55:46 + 2022-03-11T15:12:58: Last statistics update ....: 2022-03-11T15:11:43 + 2022-03-11T15:12:58: Statistics date interval ..: 2022-02-21T09:55:58 - 2022-03-11T15:08:00 + 2022-03-11T15:12:58: Used date interval ........: 2022-02-21T09:55:58 - 2022-03-11T15:08:00 + 2022-03-11T15:12:58: Duration of used interval .: 437.2 hours + 2022-03-11T15:12:58: Total number of ctool runs : 61250 + 2022-03-11T15:12:58: Total wall clock time .....: 9418.0 hours + 2022-03-11T15:12:58: Total CPU time ............: 9418.2 hours + 2022-03-11T15:12:58: Average CPU load ..........: 100.0 % + 2022-03-11T15:12:58: Total carbon footprint ....: 33.3 kg CO2e + 2022-03-11T15:12:58: due to power consumption .: 12.1 kg CO2e (57.1 g CO2e / kWh) + 2022-03-11T15:12:58: due to infrastructure ....: 21.2 kg CO2e + 2022-03-11T15:12:58: Average carbon intensity ..: 3.5 g CO2e / CPU hour + 2022-03-11T15:12:58: Average daily footprint ...: 1.8 kg CO2e / day + 2022-03-11T15:12:58: Expected annual footprint .: 667.5 kg CO2e / year + 2022-03-11T15:12:58: + 2022-03-11T15:12:58: +==================+ + 2022-03-11T15:12:58: | Daily statistics | + 2022-03-11T15:12:58: +==================+ + 2022-03-11T15:12:58: === Carbon footprint === + 2022-03-11T15:12:58: 2022-02-21 ................: 3.6 g CO2e + 2022-03-11T15:12:58: 2022-02-22 ................: 239.6 g CO2e + 2022-03-11T15:12:58: 2022-02-23 ................: 1.4 kg CO2e + 2022-03-11T15:12:58: 2022-02-24 ................: 2.1 kg CO2e + 2022-03-11T15:12:58: 2022-02-25 ................: 2.2 kg CO2e + 2022-03-11T15:12:58: 2022-02-26 ................: 2.6 kg CO2e + 2022-03-11T15:12:58: 2022-02-27 ................: 2.6 kg CO2e + 2022-03-11T15:12:58: 2022-02-28 ................: 2.2 kg CO2e + 2022-03-11T15:12:58: 2022-03-01 ................: 1.9 kg CO2e + 2022-03-11T15:12:58: 2022-03-02 ................: 1.2 kg CO2e + 2022-03-11T15:12:58: 2022-03-03 ................: 853.8 g CO2e + 2022-03-11T15:12:58: 2022-03-04 ................: 723.2 g CO2e + 2022-03-11T15:12:58: 2022-03-05 ................: 372.5 g CO2e + 2022-03-11T15:12:58: 2022-03-06 ................: 300.7 g CO2e + 2022-03-11T15:12:58: 2022-03-08 ................: 1.9 kg CO2e + 2022-03-11T15:12:58: 2022-03-09 ................: 4.1 kg CO2e + 2022-03-11T15:12:58: 2022-03-10 ................: 6.0 kg CO2e + 2022-03-11T15:12:58: 2022-03-11 ................: 2.8 kg CO2e + 2022-03-11T15:12:58: === ctools or cscript calls === + 2022-03-11T15:12:58: 2022-02-21 ................: 52 + 2022-03-11T15:12:58: 2022-02-22 ................: 545 + 2022-03-11T15:12:58: 2022-02-23 ................: 2372 + 2022-03-11T15:12:58: 2022-02-24 ................: 3097 + 2022-03-11T15:12:58: 2022-02-25 ................: 3520 + 2022-03-11T15:12:58: 2022-02-26 ................: 3813 + 2022-03-11T15:12:58: 2022-02-27 ................: 3606 + 2022-03-11T15:12:58: 2022-02-28 ................: 2985 + 2022-03-11T15:12:58: 2022-03-01 ................: 2412 + 2022-03-11T15:12:58: 2022-03-02 ................: 1322 + 2022-03-11T15:12:58: 2022-03-03 ................: 911 + 2022-03-11T15:12:58: 2022-03-04 ................: 747 + 2022-03-11T15:12:58: 2022-03-05 ................: 356 + 2022-03-11T15:12:58: 2022-03-06 ................: 284 + 2022-03-11T15:12:58: 2022-03-08 ................: 5850 + 2022-03-11T15:12:58: 2022-03-09 ................: 11850 + 2022-03-11T15:12:58: 2022-03-10 ................: 13015 + 2022-03-11T15:12:58: 2022-03-11 ................: 4513 + 2022-03-11T15:12:58: === Used wall clock time === + 2022-03-11T15:12:58: 2022-02-21 ................: 51.2 minutes + 2022-03-11T15:12:58: 2022-02-22 ................: 67.8 hours + 2022-03-11T15:12:58: 2022-02-23 ................: 400.1 hours + 2022-03-11T15:12:58: 2022-02-24 ................: 584.9 hours + 2022-03-11T15:12:58: 2022-02-25 ................: 625.2 hours + 2022-03-11T15:12:58: 2022-02-26 ................: 732.0 hours + 2022-03-11T15:12:58: 2022-02-27 ................: 723.2 hours + 2022-03-11T15:12:58: 2022-02-28 ................: 621.0 hours + 2022-03-11T15:12:58: 2022-03-01 ................: 524.5 hours + 2022-03-11T15:12:58: 2022-03-02 ................: 329.3 hours + 2022-03-11T15:12:58: 2022-03-03 ................: 241.6 hours + 2022-03-11T15:12:58: 2022-03-04 ................: 204.6 hours + 2022-03-11T15:12:58: 2022-03-05 ................: 105.4 hours + 2022-03-11T15:12:58: 2022-03-06 ................: 85.1 hours + 2022-03-11T15:12:58: 2022-03-08 ................: 535.9 hours + 2022-03-11T15:12:58: 2022-03-09 ................: 1159.5 hours + 2022-03-11T15:12:58: 2022-03-10 ................: 1693.2 hours + 2022-03-11T15:12:58: 2022-03-11 ................: 783.9 hours + 2022-03-11T15:12:58: === Used CPU time === + 2022-03-11T15:12:58: 2022-02-21 ................: 1.0 hours + 2022-03-11T15:12:58: 2022-02-22 ................: 67.8 hours + 2022-03-11T15:12:58: 2022-02-23 ................: 400.1 hours + 2022-03-11T15:12:58: 2022-02-24 ................: 584.9 hours + 2022-03-11T15:12:58: 2022-02-25 ................: 625.2 hours + 2022-03-11T15:12:58: 2022-02-26 ................: 732.0 hours + 2022-03-11T15:12:58: 2022-02-27 ................: 723.2 hours + 2022-03-11T15:12:58: 2022-02-28 ................: 621.0 hours + 2022-03-11T15:12:58: 2022-03-01 ................: 524.5 hours + 2022-03-11T15:12:58: 2022-03-02 ................: 329.3 hours + 2022-03-11T15:12:58: 2022-03-03 ................: 241.6 hours + 2022-03-11T15:12:58: 2022-03-04 ................: 204.6 hours + 2022-03-11T15:12:58: 2022-03-05 ................: 105.4 hours + 2022-03-11T15:12:58: 2022-03-06 ................: 85.1 hours + 2022-03-11T15:12:58: 2022-03-08 ................: 535.9 hours + 2022-03-11T15:12:58: 2022-03-09 ................: 1159.5 hours + 2022-03-11T15:12:58: 2022-03-10 ................: 1693.2 hours + 2022-03-11T15:12:58: 2022-03-11 ................: 783.9 hours + 2022-03-11T15:12:58: + 2022-03-11T15:12:58: +================================+ + 2022-03-11T15:12:58: | ctools and cscripts statistics | + 2022-03-11T15:12:58: +================================+ + 2022-03-11T15:12:58: === Carbon footprint === + 2022-03-11T15:12:58: comobsback ................: 13.5 kg CO2e + 2022-03-11T15:12:58: comlixfit .................: 8.1 kg CO2e + 2022-03-11T15:12:58: comobsmodel ...............: 5.2 kg CO2e + 2022-03-11T15:12:58: comobsres .................: 5.2 kg CO2e + 2022-03-11T15:12:58: comlixmap .................: 364.9 g CO2e + 2022-03-11T15:12:58: ctlike ....................: 319.7 g CO2e + 2022-03-11T15:12:58: cttsmap ...................: 205.8 g CO2e + 2022-03-11T15:12:58: comobsbin .................: 165.1 g CO2e + 2022-03-11T15:12:58: csspec ....................: 130.7 g CO2e + 2022-03-11T15:12:58: comobssim .................: 116.1 g CO2e + 2022-03-11T15:12:58: ... (list truncated after 10 entries) ... + 2022-03-11T15:12:58: === ctools or cscript calls === + 2022-03-11T15:12:58: comobsbin .................: 15352 + 2022-03-11T15:12:58: comobsmodel ...............: 14856 + 2022-03-11T15:12:58: comobsback ................: 11439 + 2022-03-11T15:12:58: comobsres .................: 11428 + 2022-03-11T15:12:58: comlixfit .................: 3525 + 2022-03-11T15:12:58: comobssim .................: 3458 + 2022-03-11T15:12:58: ctlike ....................: 1048 + 2022-03-11T15:12:58: cscaldb ...................: 63 + 2022-03-11T15:12:58: comobsselect ..............: 20 + 2022-03-11T15:12:58: csfootprint ...............: 17 + 2022-03-11T15:12:58: ... (list truncated after 10 entries) ... + 2022-03-11T15:12:58: === Used wall clock time === + 2022-03-11T15:12:58: comobsback ................: 3810.6 hours + 2022-03-11T15:12:58: comlixfit .................: 2282.3 hours + 2022-03-11T15:12:58: comobsmodel ...............: 1480.6 hours + 2022-03-11T15:12:58: comobsres .................: 1471.7 hours + 2022-03-11T15:12:58: comlixmap .................: 103.2 hours + 2022-03-11T15:12:58: ctlike ....................: 90.4 hours + 2022-03-11T15:12:58: cttsmap ...................: 58.2 hours + 2022-03-11T15:12:58: comobsbin .................: 46.7 hours + 2022-03-11T15:12:58: csspec ....................: 37.0 hours + 2022-03-11T15:12:58: comobssim .................: 32.9 hours + 2022-03-11T15:12:58: ... (list truncated after 10 entries) ... + 2022-03-11T15:12:58: === Used CPU time === + 2022-03-11T15:12:58: comobsback ................: 3810.6 hours + 2022-03-11T15:12:58: comlixfit .................: 2282.3 hours + 2022-03-11T15:12:58: comobsmodel ...............: 1480.7 hours + 2022-03-11T15:12:58: comobsres .................: 1471.7 hours + 2022-03-11T15:12:58: comlixmap .................: 103.2 hours + 2022-03-11T15:12:58: ctlike ....................: 90.4 hours + 2022-03-11T15:12:58: cttsmap ...................: 58.2 hours + 2022-03-11T15:12:58: comobsbin .................: 46.7 hours + 2022-03-11T15:12:58: csspec ....................: 37.0 hours + 2022-03-11T15:12:58: comobssim .................: 32.9 hours + 2022-03-11T15:12:58: ... (list truncated after 10 entries) ... + +The ``csfootprint`` script optionally generates a graphical representation +of the carbon footprint if a file name other than ``NONE`` is provided for the +output graphics file. The ``matplotlib`` Python module is required to produce +the representation. If the module is not installed the graphical output will +be skipped. Below is an example of graphics produced by ``csfootprint``: + +.. figure:: footprint.png + :width: 800px + :align: center + + *Carbon footprint statistics generated by csfootprint* diff --git a/doc/source/users/footprint.png b/doc/source/users/footprint.png new file mode 100644 index 0000000..aef5961 --- /dev/null +++ b/doc/source/users/footprint.png