miniufo / xgrads

Parse and read ctl and associated binary file commonly used by GrADS into xarray
https://xgrads.readthedocs.io/
MIT License
71 stars 27 forks source link

open multiple ctl files #9

Closed miniufo closed 4 years ago

miniufo commented 4 years ago

Although multiple binary data files can be described by a single .ctl file using template keyword, sometimes one may need to deal with multiple .ctl files and corresponding multiple .dat files. So I think it would be convenient to add a method open_mfdataset('./test/*.ctl'), which is similar to xarray.open_mfdataset('*.nc'), for dealing with multiple .ctl and binary files in consecutive times. This may not be too complicated using xarray.concat.

miniufo commented 4 years ago

It is done now. Please see here

onnyyonn commented 2 years ago

It seems the version published at PyPI doesn't have it yet. Can you please release a new version?

miniufo commented 2 years ago

Hi, the latest PyPI version is 0.2.0, which is released on Jun 22, 2022. The support of template should be already included in this version.