@@ -295,7 +295,7 @@ cdef class _CLib:
295295 msg = < char * > epr_get_last_err_message()
296296 epr_clear_err()
297297 raise ImportError (
298- f" unable to inizialize EPR API library: "
298+ f" unable to initialize EPR API library: "
299299 f" {_to_str(msg, 'ascii')}"
300300 )
301301
@@ -531,7 +531,7 @@ cdef class Field(EprObject):
531531 offset += info.tot_size
532532
533533 if not found:
534- raise EPRError(" inable to compute field offset" )
534+ raise EPRError(" unable to compute field offset" )
535535 elif absolute:
536536 offset += self ._parent._get_offset(absolute)
537537
@@ -688,7 +688,7 @@ cdef class Field(EprObject):
688688 the field
689689 """
690690 cdef void * buf = NULL
691- cdef int nd = 1
691+ cdef int ndim = 1
692692 cdef np.npy_intp shape[1 ]
693693 cdef np.ndarray out
694694 cdef EPR_Time* t = NULL
@@ -759,7 +759,7 @@ cdef class Field(EprObject):
759759 elif etype == e_tid_string:
760760 if shape[0 ] != 1 :
761761 raise ValueError (f" unexpected number of elements: {shape[0]}" )
762- nd = 0
762+ ndim = 0
763763 dtype = np.NPY_STRING
764764 buf = < char * > epr_get_field_elem_as_str(self ._ptr)
765765 if buf is NULL :
@@ -771,7 +771,7 @@ cdef class Field(EprObject):
771771 else :
772772 raise ValueError (" invalid field type" )
773773
774- out = np.PyArray_SimpleNewFromData(nd , shape, dtype, < void * > buf)
774+ out = np.PyArray_SimpleNewFromData(ndim , shape, dtype, < void * > buf)
775775 # np.PyArray_CLEARFLAG(out, NPY_ARRAY_WRITEABLE) # new in numpy 1.7
776776 # Make the ndarray keep a reference to this object
777777 np.set_array_base(out, self )
@@ -1047,13 +1047,13 @@ cdef class Record(EprObject):
10471047 # elif isinstance(self._parent, Product):
10481048 (< Product> self ._parent)._check_write_mode()
10491049
1050- cdef inline uint _get_offset(self , bint absolure = 0 ):
1050+ cdef inline uint _get_offset(self , bint absolute = 0 ):
10511051 cdef EPR_RecordInfo* info = < EPR_RecordInfo* > self ._ptr.info
10521052 cdef uint offset = self ._index * info.tot_size
10531053
10541054 # assert self._index is not None
10551055
1056- if absolure :
1056+ if absolute :
10571057 offset += (< Dataset> self ._parent)._get_offset()
10581058
10591059 return offset
@@ -1363,7 +1363,7 @@ cdef class Raster(EprObject):
13631363 :param y:
13641364 the (zero-based) Y coordinate of the pixel
13651365 :returns:
1366- the typed value at the given co-ordinate
1366+ the typed value at the given coordinate
13671367 """
13681368 if (x < 0 or < uint> x >= self ._ptr.raster_width or
13691369 y < 0 or < uint> y >= self ._ptr.raster_height):
@@ -1808,15 +1808,15 @@ cdef class Band(EprObject):
18081808 src_width = scene_width
18091809 elif src_width > scene_width:
18101810 raise ValueError (
1811- f" requeted raster width ({src_width}) is too large for the "
1811+ f" requested raster width ({src_width}) is too large for the "
18121812 f" Band (scene_width={scene_width})"
18131813 )
18141814
18151815 if src_height == 0 :
18161816 src_height = scene_height
18171817 elif src_height > scene_height:
18181818 raise ValueError (
1819- f" requeted raster height ({src_height}) is too large for the "
1819+ f" requested raster height ({src_height}) is too large for the "
18201820 f" Band (scene_height={scene_height})"
18211821 )
18221822
@@ -1852,16 +1852,16 @@ cdef class Band(EprObject):
18521852
18531853 The source-region is a defined part of the whole ENVISAT
18541854 product image, which shall be read into a raster.
1855- In this routine the co-ordinates are specified, where the
1855+ In this routine the coordinates are specified, where the
18561856 source-region to be read starts.
18571857 The dimension of the region and the sub-sampling are attributes
18581858 of the raster into which the data are read.
18591859
18601860 :param xoffset:
1861- across-track source co-ordinate in pixel co-ordinates
1861+ across-track source coordinate in pixel coordinates
18621862 (zero-based) of the upper right corner of the source-region
18631863 :param yoffset:
1864- along-track source co-ordinate in pixel co-ordinates
1864+ along-track source coordinate in pixel coordinates
18651865 (zero-based) of the upper right corner of the source-region
18661866 :param raster:
18671867 :class:`Raster` instance set with appropriate parameters to
@@ -1921,7 +1921,7 @@ cdef class Band(EprObject):
19211921
19221922 The source-region is a defined part of the whole ENVISAT
19231923 product image, which shall be read into a raster.
1924- In this routine the co-ordinates are specified, where the
1924+ In this routine the coordinates are specified, where the
19251925 source-region to be read starts.
19261926 The dimension of the region and the sub-sampling are attributes
19271927 of the raster into which the data are read.
@@ -1933,10 +1933,10 @@ cdef class Band(EprObject):
19331933 the height (along track dimension) of the source to be read
19341934 into the raster. If not provided reads as much as possible
19351935 :param xoffset:
1936- across-track source co-ordinate in pixel co-ordinates
1936+ across-track source coordinate in pixel coordinates
19371937 (zero-based) of the upper right corner of the source-region
19381938 :param yoffset:
1939- along-track source co-ordinate in pixel co-ordinates
1939+ along-track source coordinate in pixel coordinates
19401940 (zero-based) of the upper right corner of the source-region
19411941 :param xstep:
19421942 the sub-sampling step across track of the source when
@@ -2571,10 +2571,10 @@ cdef class Product(EprObject):
25712571 ``NOT flags.WATER AND flags.TURBID_S``
25722572
25732573 :param xoffset:
2574- across-track co-ordinate in pixel co-ordinates (zero-based)
2574+ across-track coordinate in pixel coordinates (zero-based)
25752575 of the upper right corner of the source-region
25762576 :param yoffset:
2577- along-track co-ordinate in pixel co-ordinates (zero-based)
2577+ along-track coordinate in pixel coordinates (zero-based)
25782578 of the upper right corner of the source-region
25792579 :param raster:
25802580 the raster for the bit-mask. The data type of the raster
0 commit comments