Changing LOD-Level Of Detail of Terrain with Camera Movement

I am using following code for increasing LOD(level of detail) with mouse movement: (as per Panda3D Manual)

[i]terrain.setBlockSize(32)
terrain.setNear(40)
terrain.setFar(100)
terrain.setFocalPoint(base.camera)

def updateTask(task):
terrain.update()
return task.cont
taskMgr.add(updateTask, “update”)[/i]

But I want to move camera all over my terrain (by base.cam.PosIntervals and sequence ) and wanted that as camera moves area under camera should have highest LOD and rest areas should have lower LOD

Please suggest me what should be done to achieve this objective.