NOAA-MDL / grib2io

Python interface to the NCEP G2C Library for reading and writing GRIB2 messages.
https://noaa-mdl.github.io/grib2io
MIT License
30 stars 11 forks source link

Added mode="x" new to open #151

Closed TimothyCera-NOAA closed 3 months ago

TimothyCera-NOAA commented 4 months ago

Added "x" to available open modes and set that to the new default where "x" is new file that will not overwrite, "w" is a new file that will overwrite and "a" is for appending. This mimics the allowable modes for builtins.open used in grib2io.open.