GCEL / CARDAMOM

The CARbon DAta MOdel FraMework. Computer software that retrieves terrestrial carbon (C) cycle variables by combining C cycle observations with a mass balance model.
GNU General Public License v3.0
2 stars 0 forks source link

[Example Issue] Write CARDAMOM output in GRIB2 format #1

Open dvalters opened 6 years ago

dvalters commented 6 years ago

(Only for illustrative purposes)

Example discussion of issue:

It would be good if we could save CARDAMOM output in GRIB2 format, as well as the standard output. I'm proposing to modify the foobar_outputification() function in the foobar.baz module. But would it break the netcdf_foo() function?

Here is the code I'm talking about:

def foobar_ouputification():
  with open("Output.grib", "wb") as gb:
    gb.writelines(datastuff)
# etc...

Any thoughts?

dvalters commented 6 years ago

(Subsequent heated discussion about the GRIB file format ensues...)