Comments (7)
That will be something inside pyspharm. Can you provide details on how you installed windspharm and pyspharm please, and which versions of each you are using.
from windspharm.
Also the full traceback would be helpful.
from windspharm.
I pip installed them. I'm using windspharm version 1.5.1 and pyspharm version 1.0.8. Here is the full traceback:
AttributeError Traceback (most recent call last)
in ()
----> 1 w = windspharm.standard.VectorWind(uwnd, vwnd)
/home/qy003299/canopy-env/lib/python2.7/site-packages/windspharm-1.5.1-py2.7.egg/windspharm/standard.pyc in init(self, u, v, gridtype, rsphere)
103 self.gridtype = gridtype.lower()
104 self.s = Spharmt(nlon, nlat, gridtype=self.gridtype,
--> 105 rsphere=rsphere)
106 except ValueError:
107 if self.gridtype not in ('regular', 'gaussian'):
/home/qy003299/canopy-env/lib/python2.7/site-packages/spharm/spharm.pyc in init(self, nlon, nlat, rsphere, gridtype, legfunc)
244 lshaes = (n1n2(nlat + nlat - n1 + 1))/2 + nlon + 15
245 lwork = 5nlatn2 + 3*((n1 - 2)*(nlat + nlat - n1 -1))/2
--> 246 wshaes, ierror = _spherepack.shaesi(nlat, nlon, lshaes, lwork, nlat+1)
247 if ierror != 0:
248 msg = 'In return from call to shaesi in Spharmt.init ierror = %d' % ierror
AttributeError: 'module' object has no attribute 'shaesi'
from windspharm.
Are you sure the pip install of pyspharm was successful? shaesi
is a fortran subroutine wrapped by f2py, and should always be present in a successful build.
from windspharm.
I just tried pip uninstalling pyspharm, and then pip installing it again and it says it installed successfully. It's still not working though, so presumably something's going wrong somewhere during installation.
from windspharm.
I can't even pip install it, looks like the download link on PyPI isn't there... I don't know what's going on there. Anyway, I suggest downloading from github and installing from source.
I usually recommend conda + conda-forge for installing these packages as it takes the pain out of it.
from windspharm.
I tried downloading it from github and it still didn't work - not sure why but I've now installed both pyspharm and windspharm using Anaconda and it's all working - thanks for your help!
from windspharm.
Related Issues (20)
- numpy.float64 object cannot be interpreted as an index HOT 1
- Class instance fails if u and v are just lat,long arrays with no other (eg time) dimension HOT 3
- Memory conservation: legfunc kwarg HOT 2
- Conda Install Packages Not Found HOT 3
- Enhancement - including APIs for adding filters HOT 1
- Curious issue creating WindVector from 2D arrays HOT 2
- divergence is not right? HOT 4
- Calculating shear and stretch deform using windspharm HOT 4
- take divergence and vorticity as input HOT 1
- Issue attempting to import Windspharm in script HOT 2
- Importing JRA-55 files with windspharm
- Problem with computing vorticity of NWP model output
- ValueError: Cube 'U velocity' must contain a single 1D x coordinate. HOT 1
- Typo in windspharm.xarray docs
- windspharm future
- prep_data occur TypeError: unhashable type: 'list' HOT 1
- Possible issue with windspharm package's calculations of irrotational winds
- installation on Apple silicon HOT 2
- windspharm.iris.VectorWind fails with Numpy v1.24 HOT 1
- ValueError: equally-spaced latitudes are invalid (they may be non-global) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windspharm.