Skip to content

Releases: NCAS-CMS/cf-python

3.13.1

17 Oct 14:25
Compare
Choose a tag to compare

2022-10-17

  • Upgrade to allow cf to work with Python 3.10 (#419)
  • Fix bug when setting coordinate bounds with different units to their parent coordinates (#417)
  • Fixed bug that created incorrect hybrid height levels when reading UM fields that also have pseudolevels (#468)
  • Fixed bug when reading zero length netCDF or PP files caused cf-python to hang (#422)
  • Changed dependency: 1.9.0.4<=cfdm<1.9.1.0

3.13.0

23 Jun 17:50
Compare
Choose a tag to compare

2022-06-23

  • Fix bug in cf.read when reading PP or fields files for which the um keyword has been set, but without the 'version' key (#306)
  • Fix bug when setting the CFA "base" option to an empty string in cf.write (#346)
  • Fixed failure from cf.write when writing identical (auxiliary) coordinates to different data variables in different groups (#336)
  • Removed -g from the umread_lib/c-lib compiler options (#305)
  • Updated the deprecated distutils.version to packaging.version (#324)
  • Changed dependency: 1.9.0.3<=cfdm<1.9.1.0
  • New dependency: packaging>=20.0

3.12.0

17 Jan 23:38
Compare
Choose a tag to compare

2022-01-18

  • New method: cf.Field.grad_xy (#292)
  • New method: cf.Field.laplacian_xy (#292)
  • New function: cf.div_xy (#292)
  • New function: cf.curl_xy (#292)
  • Allow element-wise comparisons with None on cf.Data and cf.Field objects (#281)
  • Add missing closing parenthesis in cf.Query string representations (#279)
  • Fix cf.aggregate failures when using the dimension keyword parameter (#283)
  • Fix bug that raised error with subtraction of a cf.TimeDuration (#287)
  • Fix bug in cf.Field.derivative when wrapping with periodic coordinates (#289)
  • Changed dependency: 1.9.0.1<=cfdm<1.9.1.0
  • Changed dependency: cfunits>=3.3.4

3.11.0

24 Nov 11:55
Compare
Choose a tag to compare

2021-10-08

  • Python 3.6 support removed (#208)
  • Conversion of cf.Domain to a non-abstract that may be read from and written to a netCDF dataset (#220)
  • New method: cf.Domain.creation_commands
  • New method: cf.Domain.climatological_time_axes
  • New method: cf.AuxiliaryCoordinate.del_climatology
  • New method: cf.AuxiliaryCoordinate.get_climatology
  • New method: cf.AuxiliaryCoordinate.is_climatology
  • New method: cf.AuxiliaryCoordinate.set_climatology
  • New method: cf.DimensionCoordinate.del_climatology
  • New method: cf.DimensionCoordinate.get_climatology
  • New method: cf.DimensionCoordinate.is_climatology
  • New method: cf.DimensionCoordinate.set_climatology
  • New function: cf.unique_constructs
  • New function: cf.example_fields (#220)
  • New keyword parameter to cf.read: cdl_string (#171)
  • Improved verbose information output from cf.aggregate (#228)
  • Fix bug that causes a failure in cf.aggregate when otherwise aggregatable fields have non-valid units (#229)
  • Fix for cf.aggregate failures when a datum or coordinate conversion parameter has an array value (#230)
  • Allow for regridding using a destination field featuring size 1 dimension(s) (#250)
  • Fix bug that sometimes caused cf.Field.autocyclic to fail when setting a construct that is cyclic and has a defined period (#237)
  • Changed dependency: 1.9.0.0<=cfdm<1.9.1.0

3.10.0

10 Jun 16:06
Compare
Choose a tag to compare

2021-06-10

  • Improve performance by allowing a saved RegridOperator instance to define the regrid operator in cf.Field.regridc and cf.Field.regrids (#222)
  • Fix for incorrectly formatted logging.info statement sometimes causing a hang in cf.Field.collapse (#217)

3.9.0

25 May 07:02
Compare
Choose a tag to compare

2021-05-25

  • Construct access API changes (#201, #202, #203, #204)
  • Performance enhancements (#201, #202)
  • New write mode mode='a' for appending to, rather than over-writing, a netCDF file on disk (#30)
  • Temporarily removed the experimental ability to parallelize the collapse operation with MPI (#207)
  • Improved docstrings
  • Fix for unlimited dimensions read from a netCDF4 sub-group having zero size (NCAS-CMS/cfdm#113)
  • Fixes for changes in behaviour in cftime==1.4.0 (#184)
  • Better error message in the case of a numpy.ma.core.MaskError occurring upon reading of CDL files with only header or coordinate information (#197)
  • Changed dependency: 1.8.9.0<=cfdm<1.8.10.0
  • Changed dependency: cftime>=1.5.0
  • Changed dependency: cfunits>=3.3.3
  • Changed dependency: netCDF4>=1.5.4

3.8.0

24 May 14:52
Compare
Choose a tag to compare

2020-12-18

  • The setting of global constants can now be controlled by a context manager (#154)
  • Changed the behaviour of binary operations for constructs that have bounds (#146)
  • Changed the behaviour of unary operations for constructs that have bounds (#147)
  • New function: cf.bounds_combination_mode (#146)
  • New method: cf.Field.compute_vertical_coordinates (#142)
  • Fixed bug that prevented the verbosity from changing to any value specified as a verbose keyword parameter to cf.aggregate (only).
  • Fixed bug that caused a failure when writing a dataset that contains a scalar domain ancillary construct (#152)
  • Fixed bug that prevented aggregation of fields with external cell measures (#150 (comment))
  • Fixed bug that caused rows full of zeros to appear in WGDOS packed UM data that contain masked points (#161)
  • Changed dependency: 1.8.8.0<=cfdm<1.8.9.0
  • Changed dependency: cftime>=1.3.0
  • Changed dependency: cfunits>=3.3.1