class_docstr: performs forward and inverse geodetic, or Great Circle,
  computations.  The forward computation (using the 'fwd' method)
  involves determining latitude, longitude and back azimuth of a
  terminus point given the latitude and longitude of an initial
  point, plus azimuth and distance. The inverse computation (using
  the 'inv' method) involves determining the forward and back
  azimuths and distance given the latitudes and longitudes of an
  initial and terminus point.
  
  Attributes
  ----------
  initstring: str
      The string form of the user input used to create the Geod.
  sphere: bool
      If True, it is a sphere.
  a: float
      The ellipsoid equatorial radius, or semi-major axis.
  b: float
      The ellipsoid polar radius, or semi-minor axis.
  es: float
      The 'eccentricity' of the ellipse, squared (1-b2/a2).
  f: float
      The ellipsoid 'flattening' parameter ( (a-b)/a ).
class_docstr_tok: ["performs","forward","and","inverse","geodetic",",","or","Great","Circle",",","computations",".","The","forward","computation","(","using","the","'fwd","'","method",")","involves","determining","latitude",",","longitude","and","back","azimuth","of","a","terminus","point","given","the","latitude","and","longitude","of","an","initial","point",",","plus","azimuth","and","distance",".","The","inverse","computation","(","using","the","'inv","'","method",")","involves","determining","the","forward","and","back","azimuths","and","distance","given","the","latitudes","and","longitudes","of","an","initial","and","terminus","point",".","Attributes","--","--","--","--","--","initstring",":","str","The","string","form","of","the","user","input","used","to","create","the","Geod",".","sphere",":","bool","If","True",",","it","is","a","sphere",".","a",":","float","The","ellipsoid","equatorial","radius",",","or","semi-major","axis",".","b",":","float","The","ellipsoid","polar","radius",",","or","semi-minor","axis",".","es",":","float","The","'eccentricity","'","of","the","ellipse",",","squared","(","1-b2\/a2",")",".","f",":","float","The","ellipsoid","'flattening","'","parameter","(","(","a-b",")","\/a",")","."]
docstr: .. versionadded:: 3.1.0 initial_idx, terminus_idx
  
  Given a single initial point and terminus point, returns
  a list of longitude/latitude pairs describing npts equally
  spaced intermediate points along the geodesic between the
  initial and terminus points.
  
  Similar to inv_intermediate(), but with less options.
  
  Example usage:
  
  >>> from pyproj import Geod
  >>> g = Geod(ellps='clrk66') # Use Clarke 1866 ellipsoid.
  >>> # specify the lat/lons of Boston and Portland.
  >>> boston_lat = 42.+(15./60.); boston_lon = -71.-(7./60.)
  >>> portland_lat = 45.+(31./60.); portland_lon = -123.-(41./60.)
  >>> # find ten equally spaced points between Boston and Portland.
  >>> lonlats = g.npts(boston_lon,boston_lat,portland_lon,portland_lat,10)
  >>> for lon,lat in lonlats: f'{lat:.3f} {lon:.3f}'
  '43.528 -75.414'
  '44.637 -79.883'
  '45.565 -84.512'
  '46.299 -89.279'
  '46.830 -94.156'
  '47.149 -99.112'
  '47.251 -104.106'
  '47.136 -109.100'
  '46.805 -114.051'
  '46.262 -118.924'
  >>> # test with radians=True (inputs/outputs in radians, not degrees)
  >>> import math
  >>> dg2rad = math.radians(1.)
  >>> rad2dg = math.degrees(1.)
  >>> lonlats = g.npts(
  ...    dg2rad*boston_lon,
  ...    dg2rad*boston_lat,
  ...    dg2rad*portland_lon,
  ...    dg2rad*portland_lat,
  ...    10,
  ...    radians=True
  ... )
  >>> for lon,lat in lonlats: f'{rad2dg*lat:.3f} {rad2dg*lon:.3f}'
  '43.528 -75.414'
  '44.637 -79.883'
  '45.565 -84.512'
  '46.299 -89.279'
  '46.830 -94.156'
  '47.149 -99.112'
  '47.251 -104.106'
  '47.136 -109.100'
  '46.805 -114.051'
  '46.262 -118.924'
  
  Parameters
  ----------
  lon1: float
      Longitude of the initial point
  lat1: float
      Latitude of the initial point
  lon2: float
      Longitude of the terminus point
  lat2: float
      Latitude of the terminus point
  npts: int
      Number of points to be returned
      (including initial and/or terminus points, if required)
  radians: bool, default=False
      If True, the input data is assumed to be in radians.
      Otherwise, the data is assumed to be in degrees.
  initial_idx: int, default=1
      if initial_idx==0 then the initial point would be included in the output
      (as the first point)
  terminus_idx: int, default=1
      if terminus_idx==0 then the terminus point would be included in the output
      (as the last point)
  Returns
  -------
  list of tuples:
      list of (lon, lat) points along the geodesic
      between the initial and terminus points.
docstr_tok: ["..","versionadded",":",":","3.1.0","initial_idx",",","terminus_idx","Given","a","single","initial","point","and","terminus","point",",","returns","a","list","of","longitude\/latitude","pairs","describing","npts","equally","spaced","intermediate","points","along","the","geodesic","between","the","initial","and","terminus","points",".","Similar","to","inv_intermediate","(",")",",","but","with","less","options",".","Example","usage",":",">",">",">","from","pyproj","import","Geod",">",">",">","g","=","Geod","(","ellps='clrk66","'",")","#","Use","Clarke","1866","ellipsoid",".",">",">",">","#","specify","the","lat\/lons","of","Boston","and","Portland",".",">",">",">","boston_lat","=","42.+","(","15.\/60",".",")",";","boston_lon","=","-71.-","(","7.\/60",".",")",">",">",">","portland_lat","=","45.+","(","31.\/60",".",")",";","portland_lon","=","-123.-","(","41.\/60",".",")",">",">",">","#","find","ten","equally","spaced","points","between","Boston","and","Portland",".",">",">",">","lonlats","=","g.npts","(","boston_lon",",","boston_lat",",","portland_lon",",","portland_lat,10",")",">",">",">","for","lon",",","lat","in","lonlats",":","f","'","{","lat",":",".3f","}","{","lon",":",".3f","}","'","'43.528","-75.414'","'44.637","-79.883'","'45.565","-84.512'","'46.299","-89.279'","'46.830","-94.156'","'47.149","-99.112'","'47.251","-104.106'","'47.136","-109.100'","'46.805","-114.051'","'46.262","-118.924'",">",">",">","#","test","with","radians=True","(","inputs\/outputs","in","radians",",","not","degrees",")",">",">",">","import","math",">",">",">","dg2rad","=","math.radians","(","1",".",")",">",">",">","rad2dg","=","math.degrees","(","1",".",")",">",">",">","lonlats","=","g.npts","(","...","dg2rad","*","boston_lon",",","...","dg2rad","*","boston_lat",",","...","dg2rad","*","portland_lon",",","...","dg2rad","*","portland_lat",",","...","10",",","...","radians=True","...",")",">",">",">","for","lon",",","lat","in","lonlats",":","f","'","{","rad2dg","*","lat",":",".3f","}","{","rad2dg","*","lon",":",".3f","}","'","'43.528","-75.414'","'44.637","-79.883'","'45.565","-84.512'","'46.299","-89.279'","'46.830","-94.156'","'47.149","-99.112'","'47.251","-104.106'","'47.136","-109.100'","'46.805","-114.051'","'46.262","-118.924'","Parameters","--","--","--","--","--","lon1",":","float","Longitude","of","the","initial","point","lat1",":","float","Latitude","of","the","initial","point","lon2",":","float","Longitude","of","the","terminus","point","lat2",":","float","Latitude","of","the","terminus","point","npts",":","int","Number","of","points","to","be","returned","(","including","initial","and\/or","terminus","points",",","if","required",")","radians",":","bool",",","default=False","If","True",",","the","input","data","is","assumed","to","be","in","radians",".","Otherwise",",","the","data","is","assumed","to","be","in","degrees",".","initial_idx",":","int",",","default=1","if","initial_idx==0","then","the","initial","point","would","be","included","in","the","output","(","as","the","first","point",")","terminus_idx",":","int",",","default=1","if","terminus_idx==0","then","the","terminus","point","would","be","included","in","the","output","(","as","the","last","point",")","Returns","--","--","--","-","list","of","tuples",":","list","of","(","lon",",","lat",")","points","along","the","geodesic","between","the","initial","and","terminus","points","."]
code: def npts(
      self,
      lon1: float,
      lat1: float,
      lon2: float,
      lat2: float,
      npts: int,
      radians: bool = False,
      initial_idx: int = 1,
      terminus_idx: int = 1,
  ) -> list:
      """
      .. versionadded:: 3.1.0 initial_idx, terminus_idx
  
      Given a single initial point and terminus point, returns
      a list of longitude/latitude pairs describing npts equally
      spaced intermediate points along the geodesic between the
      initial and terminus points.
  
      Similar to inv_intermediate(), but with less options.
  
      Example usage:
  
      >>> from pyproj import Geod
      >>> g = Geod(ellps='clrk66') # Use Clarke 1866 ellipsoid.
      >>> # specify the lat/lons of Boston and Portland.
      >>> boston_lat = 42.+(15./60.); boston_lon = -71.-(7./60.)
      >>> portland_lat = 45.+(31./60.); portland_lon = -123.-(41./60.)
      >>> # find ten equally spaced points between Boston and Portland.
      >>> lonlats = g.npts(boston_lon,boston_lat,portland_lon,portland_lat,10)
      >>> for lon,lat in lonlats: f'{lat:.3f} {lon:.3f}'
      '43.528 -75.414'
      '44.637 -79.883'
      '45.565 -84.512'
      '46.299 -89.279'
      '46.830 -94.156'
      '47.149 -99.112'
      '47.251 -104.106'
      '47.136 -109.100'
      '46.805 -114.051'
      '46.262 -118.924'
      >>> # test with radians=True (inputs/outputs in radians, not degrees)
      >>> import math
      >>> dg2rad = math.radians(1.)
      >>> rad2dg = math.degrees(1.)
      >>> lonlats = g.npts(
      ...    dg2rad*boston_lon,
      ...    dg2rad*boston_lat,
      ...    dg2rad*portland_lon,
      ...    dg2rad*portland_lat,
      ...    10,
      ...    radians=True
      ... )
      >>> for lon,lat in lonlats: f'{rad2dg*lat:.3f} {rad2dg*lon:.3f}'
      '43.528 -75.414'
      '44.637 -79.883'
      '45.565 -84.512'
      '46.299 -89.279'
      '46.830 -94.156'
      '47.149 -99.112'
      '47.251 -104.106'
      '47.136 -109.100'
      '46.805 -114.051'
      '46.262 -118.924'
  
      Parameters
      ----------
      lon1: float
          Longitude of the initial point
      lat1: float
          Latitude of the initial point
      lon2: float
          Longitude of the terminus point
      lat2: float
          Latitude of the terminus point
      npts: int
          Number of points to be returned
          (including initial and/or terminus points, if required)
      radians: bool, default=False
          If True, the input data is assumed to be in radians.
          Otherwise, the data is assumed to be in degrees.
      initial_idx: int, default=1
          if initial_idx==0 then the initial point would be included in the output
          (as the first point)
      terminus_idx: int, default=1
          if terminus_idx==0 then the terminus point would be included in the output
          (as the last point)
      Returns
      -------
      list of tuples:
          list of (lon, lat) points along the geodesic
          between the initial and terminus points.
      """
  
      res = self._inv_or_fwd_intermediate(
          lon1=lon1,
          lat1=lat1,
          lon2_or_azi1=lon2,
          lat2=lat2,
          npts=npts,
          del_s=0,
          radians=radians,
          initial_idx=initial_idx,
          terminus_idx=terminus_idx,
          flags=GeodIntermediateFlag.AZIS_DISCARD,
          out_lons=None,
          out_lats=None,
          out_azis=None,
          return_back_azimuth=False,
          is_fwd=False,
      )
      return list(zip(res.lons, res.lats))
  
imports: import math
  import warnings
  from typing import Any
  from pyproj._geod import Geod
  from pyproj._geod import GeodIntermediateReturn, geodesic_version_str
  from pyproj._geod import reverse_azimuth
  from pyproj.enums import GeodIntermediateFlag
  from pyproj.exceptions import GeodError
  from pyproj.list import get_ellps_map
  from pyproj.utils import DataType, _convertback, _copytobuffer
label_desc: Use image node_id 4 for calling the Geod obj's underlying member method code with example usage: obj.npts(lon1, lat1, lon2, lat2, npts, radians, initial_idx, terminus_idx) and returns: list