cftime icon indicating copy to clipboard operation
cftime copied to clipboard

Time-handling functionality from netcdf4-python.

Results 18 cftime issues
Sort by recently updated
recently updated
newest added

To report a non-security related issue, please provide: * the version of the software with which you are encountering an issue: current `master` branch * environmental information (i.e. Operating System,...

``` # Needed modules import xarray as xr import cftime, matplotlib.pyplot as plt # Open data on ESGF server d_tas = xr.open_dataset ("https://vesg.ipsl.upmc.fr/thredds/dodsC/cmip5/output1/IPSL/IPSL-CM5A-LR/rcp85/day/atmos/day/r1i1p1/v20111103/tas/tas_day_IPSL-CM5A-LR_rcp85_r1i1p1_20060101-22051231.nc", decode_times=True, use_cftime=True) # Define variable tas =...

Modules need to be rebuilt and released now that NumPy 2.0 *EDIT: RC1* is out. Importing current `cftime` from PyPI I get on Linux: ``` >>> import cftime A module...

Hi folks, I'm seeing something a bit strange on [geocat-comp logs](https://github.com/NCAR/geocat-comp/actions/runs/8730312012/job/23953899951). For python 3.12 only, cftime seems to be pulling the numpy release candidate by default. From https://github.com/NCAR/geocat-comp/issues/598: > For...

When I try to use the `num2date` function to compute "years since ..." it recommends that I can use `common_years` as the unit as long as I set `calendar='noleap'`. However...

It would be nice if the documentation included usage examples, as currently the only documentation are the docstrings for the public API. Even just adding examples to each docstring using...

[Type stubs](https://typing.readthedocs.io/en/latest/spec/distributing.html#stub-files) can add type information to a python package. Typing can make it easier to write code as IDEs will be able to give (better) suggestions and type checkers...

I notice that cftime does not support nanoseconds in the date2num and num2date: ``` In [10]: cftime.date2num(datetime.now(), "microseconds since 2024-08-28T12:00:00") Out[10]: np.int64(2835169629) In [11]: cftime.date2num(datetime.now(), "nanoseconds since 2024-08-28T12:00:00") --------------------------------------------------------------------------- ValueError...