Comments (4)
Dear Zhang Chi,
Indeed the way to setup the database path is different from that used in irfu-matlab. In the current version of pyrfu, you need to pass and extra argument to the mms.get_data() routine (see https://pyrfu.readthedocs.io/en/latest/_generated/pyrfu.mms.get_data.html).
Hope this will help.
from irfu-python.
Dear Richard,
there are stil some problems in here.
should we revise the data path in config.py?
CONFIG = {"local_data_dir": "F:/MMS/mms_db/data/",
'mirror_data_dir': None, # e.g., '/Volumes/data_network/data/mms'
'debug_mode': False,
'download_only': False,
'no_download': False}
or in the get_data.py?
def get_data(var_str, tint, mms_id, verbose: bool = True,
data_path='F:/MMS/mms_db/data/'):
I have tried both of them, but still no files can be found.
from irfu-python.
Dear Zhang Chi,
I uploaded the version 2.3.9 to the python index. This new version contains a routine, named mms.db_init, that setup the path in the configuration file (config.json). Hence, you don't need to give the data_path to the mms.get_data anymore.
Besides, if I'm correct you are using a Windows machine, so I think that the problem you are facing may be due to the different path convention on Windows. You should check the path using os.path.normpath('F:/MMS/mms_db/data/') == 'F:/MMS/mms_db/data/'. Note that the new mms.db_init uses os.path.normpath, so in principle you will not face such problem anymore.
Hope this will work fine.
from irfu-python.
Dear Richard,
it works well now, thanks a lot!
This code will significantly help us to analyze the data!
best regards
from irfu-python.
Related Issues (11)
- Enable reading data from SDC for MMS's FEEPS, EIS and remove_edist_background routines
- Problems using mms.get_data() without restarting Kernel HOT 2
- metadata-generation-failed when installing Pyrfu 2.4.12 to a conda environment
- plot_projection() is unable to plot VDFs where energy bins are equivalent to less than the spacecraft potential HOT 1
- Fix pandas read_csv depreciation warning
- Creat the time series data for the magnetic field
- pyrfu/mms/make_model_vdf.py import error HOT 1
- Some Question HOT 1
- mms_keys.json missing perp/parallel ion moments HOT 1
- Update requirements to numba 0.59.0 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 irfu-python.