ESMG / pyroms

Python tools for the Regional Ocean Modeling System (ROMS)
Other
138 stars 88 forks source link

pyroms.tools has no attribute 'section' #17

Closed han348661657 closed 5 years ago

han348661657 commented 5 years ago

In the pyroms/tools.py, the latslice() function used pyroms.tools.section() to get the latslice, but there is no section() in the tools.py. How did to rebuild pyroms.tools.section() ?

bilgetutak commented 5 years ago

I believe it should be pyroms.tools.transect() function. As far as I can remember, I modified it to be transect() function and it works without problem.

han348661657 commented 5 years ago

Thinks, I changed pyroms.tools.section to pyroms.tools.transect in tools.py, and modified near = np.zeros(((j1-j0+1),4)) to near = np.zeros(((j1-j0+1),4), dtype=int). Now, it works!