@@ -469,8 +469,8 @@ def cf_healpix_bounds(
469469 a ,
470470 indexing_scheme ,
471471 refinement_level = None ,
472- lat = False ,
473- lon = False ,
472+ latitude = False ,
473+ longitude = False ,
474474 pole_longitude = None ,
475475):
476476 """Calculate HEALPix cell bounds.
@@ -511,10 +511,10 @@ def cf_healpix_bounds(
511511 ``'nested_unique'`` (in which case *refinement_level* may
512512 be `None`).
513513
514- lat : `bool`, optional
514+ latitude : `bool`, optional
515515 If True then return latitude bounds.
516516
517- lon : `bool`, optional
517+ longitude : `bool`, optional
518518 If True then return longitude bounds.
519519
520520 pole_longitude: `None` or number
@@ -532,21 +532,21 @@ def cf_healpix_bounds(
532532 **Examples**
533533
534534 >>> cf.data.dask_utils.cf_healpix_bounds(
535- ... np.array([0, 1, 2, 3]), 'nested', 1, lat =True
535+ ... np.array([0, 1, 2, 3]), 'nested', 1, latitude =True
536536 )
537537 array([[41.8103149 , 19.47122063, 0. , 19.47122063],
538538 [66.44353569, 41.8103149 , 19.47122063, 41.8103149 ],
539539 [66.44353569, 41.8103149 , 19.47122063, 41.8103149 ],
540540 [90. , 66.44353569, 41.8103149 , 66.44353569]])
541541 >>> cf.data.dask_utils.cf_healpix_bounds(
542- ... np.array([0, 1, 2, 3]), 'nested', 1, lon =True
542+ ... np.array([0, 1, 2, 3]), 'nested', 1, longitude =True
543543 )
544544 array([[45. , 22.5, 45. , 67.5],
545545 [90. , 45. , 67.5, 90. ],
546546 [ 0. , 0. , 22.5, 45. ],
547547 [45. , 0. , 45. , 90. ]])
548548 >>> cf.data.dask_utils.cf_healpix_bounds(
549- ... np.array([0, 1, 2, 3]), 'nested', 1, lon =True,
549+ ... np.array([0, 1, 2, 3]), 'nested', 1, longitude =True,
550550 ... pole_longitude=3.14159
551551 )
552552 array([[45. , 22.5 , 45. , 67.5 ],
@@ -573,9 +573,9 @@ def cf_healpix_bounds(
573573 f"healpix_index array has one dimension. Got shape { a .shape } "
574574 )
575575
576- if lat :
576+ if latitude :
577577 pos = 1
578- elif lon :
578+ elif longitude :
579579 pos = 0
580580
581581 if indexing_scheme == "ring" :
@@ -639,7 +639,7 @@ def cf_healpix_bounds(
639639
640640
641641def cf_healpix_coordinates (
642- a , indexing_scheme , refinement_level = None , lat = False , lon = False
642+ a , indexing_scheme , refinement_level = None , latitude = False , longitude = False
643643):
644644 """Calculate HEALPix cell centre coordinates.
645645
@@ -674,10 +674,10 @@ def cf_healpix_coordinates(
674674 ``'nested_unique'`` (in which case *refinement_level* may
675675 be `None`).
676676
677- lat : `bool`, optional
677+ latitude : `bool`, optional
678678 If True then return latitude coordinates.
679679
680- lon : `bool`, optional
680+ longitude : `bool`, optional
681681 If True then return longitude coordinates.
682682
683683 :Returns:
@@ -688,11 +688,11 @@ def cf_healpix_coordinates(
688688 **Examples**
689689
690690 >>> cf.data.dask_utils.cf_healpix_coordinates(
691- ... np.array([0, 1, 2, 3]), 'nested', 1, lat =True
691+ ... np.array([0, 1, 2, 3]), 'nested', 1, latitude =True
692692 )
693693 array([19.47122063, 41.8103149 , 41.8103149 , 66.44353569])
694694 >>> cf.data.dask_utils.cf_healpix_coordinates(
695- ... np.array([0, 1, 2, 3]), 'nested', 1, lon =True
695+ ... np.array([0, 1, 2, 3]), 'nested', 1, longitude =True
696696 )
697697 array([45. , 67.5, 22.5, 45. ])
698698
@@ -714,9 +714,9 @@ def cf_healpix_coordinates(
714714 f"healpix_index array has one dimension. Got shape { a .shape } "
715715 )
716716
717- if lat :
717+ if latitude :
718718 pos = 1
719- elif lon :
719+ elif longitude :
720720 pos = 0
721721
722722 match indexing_scheme :
0 commit comments