GithubHelp home page GithubHelp logo

scikit-dataaccess's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scikit-dataaccess's Issues

no antenna_logs group in pbo_data.h5

I downloaded pbo using

skdaccess pbo

and got this error

Traceback (most recent call last):
File "/Users/cgammans/anaconda3/bin/skdaccess", line 11, in
sys.exit(skdaccess_script())
File "/Users/cgammans/anaconda3/lib/python3.6/site-packages/skdaccess/bin/skdaccess.py", line 50, in skdaccess_script
PBODF.downloadFullDataset(use_file=args.local_data)
File "/Users/cgammans/anaconda3/lib/python3.6/site-packages/skdaccess/geo/pbo/data_fetcher.py", line 384, in downloadFullDataset
anttext = zipfile.read('All_PBO_ants.eq').decode()
File "/Users/cgammans/anaconda3/lib/python3.6/zipfile.py", line 1314, in read
with self.open(name, "r", pwd) as fp:
File "/Users/cgammans/anaconda3/lib/python3.6/zipfile.py", line 1352, in open
zinfo = self.getinfo(name)
File "/Users/cgammans/anaconda3/lib/python3.6/zipfile.py", line 1281, in getinfo
'There is no item named %r in the archive' % name)
KeyError: "There is no item named 'All_PBO_ants.eq' in the archive"

However, this file is in fact in the zip file.

ls
All_PBO_ants.eq MR_1996All.PBO_fin_COCNT.ps MR_1996All.PBO_fin_hist_GAM.ps cwu.snips_nam08.vel.20170821110312 pbo.snips_igs08.txt.20170821110312
All_PBO_eqs.eq MR_1996All.PBO_fin_EASTC.ps MR_1996All.PBO_fin_hist_NUC.ps nmt.snaps_nam08.vel.20170821110312 pbo.snips_igs08.vel.20170821110312
All_PBO_igs08.apr MR_1996All.PBO_fin_LABAS.ps MR_1996All.PBO_fin_hist_PBO.ps nmt.snips_nam08.txt.20170821110312 pbo.snips_nam08.ps
All_PBO_nam08.apr MR_1996All.PBO_fin_NCALF.ps MR_1996All.PBO_fin_hist_USG.ps nmt.snips_nam08.vel.20170821110312 pbo.snips_nam08.txt.20170821110312
All_PBO_unkn.eq MR_1996All.PBO_fin_WUSSC.ps MR_2017_06.sum pbo.kalts_nam08.off pbo.snips_nam08.vel.20170821110312
MR_1996All.PBO_fin_ALASK.ps MR_1996All.PBO_fin_hist_COC.ps cwu.snaps_nam08.vel.20170821110312 pbo.snaps_igs08.vel.20170821110312
MR_1996All.PBO_fin_CENTL.ps MR_1996All.PBO_fin_hist_EXP.ps cwu.snips_nam08.txt.20170821110312 pbo.snaps_nam08.vel.20170821110312

When I run the pbo example from the manual I get the error
KeyError: 'No object named /antenna_logs in the file'

And when I look through the pbo_data.h5 file, it isn't there. All the data_[station] and meta_data groups are there though.

I've tried downloading the data a couple times and the first time I ran the skdaccess script the .skdaccess.conf update but the pbo header was [pbo.nams08.pos] which I changed to [pbo] for datafetcher to access and the pbo_data.h5 was missing from the data_location path. I removed the pbo info from .skdaccess.conf and with subsequent download attempts, the file didn't update to include the data_location.

Difficulty on import

I am having trouble importing scikit-dataaccess and was wondering if anyone had any suggestions.

I am trying to replicate one of the examples but am having trouble with imports this is the code I copied from here. I have also tried a few other examples but they all give me the same error.

from skdaccess.geo.pbo import DataFetcher as PBO_DF
from skdaccess.framework.param_class import *

This is the error I get:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-7-42ef5642d932> in <module>()
----> 1 from skdaccess.geo.pbo import DataFetcher as PBO_DF
      2 from skdaccess.framework.param_class import *

c:\users\splab-pc\anaconda3\envs\py3k\lib\site-packages\skdaccess\geo\pbo\__init__.py in <module>()
----> 1 from .data_fetcher import DataFetcher

c:\users\splab-pc\anaconda3\envs\py3k\lib\site-packages\skdaccess\geo\pbo\data_fetcher.py in <module>()
     28 
     29 # mithagi required Base,Utils imports
---> 30 from skdaccess.framework.data_class import DataFetcherStorage, TableWrapper
     31 from skdaccess.utilities import pbo_util
     32 

c:\users\splab-pc\anaconda3\envs\py3k\lib\site-packages\skdaccess\framework\data_class.py in <module>()
     41 from io import BytesIO
     42 from http.cookiejar import CookieJar
---> 43 import fcntl
     44 import struct
     45 

ModuleNotFoundError: No module named 'fcntl'

From the first few Google results it looks like fcntl is a Linux thing with no easy Windows 10 option. At the moment I am working on a Windows 10 computer, and was wondering if anyone had suggestions on the best way for me to proceed? I saw version 1.1 added Windows support, I just don't know if only some modules support Windows or if in theory they all should.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.