Comments (5)
Hello @datigeofisica! Thanks for reporting this issue. Could you please provide the first few lines of code you are using to set up your query object (i.e. everything up to region_a.order_vars.append(var_list=['lat_ph','lon_ph','h_ph', "geoid", "signal_conf_ph", "quality_ph"])
)? This, combined with the information you've already provided, will allow me to try and reproduce the error. Thanks!
from icepyx.
Hello @JessicaS11,
thank you for your answer!
This is the script that we used until now: (MyUser and MyEmail are from our account)
I think that these are the same lines of code suggested in the Accessing ICESat-2 Data Examples (https://icepyx.readthedocs.io/en/latest/example_notebooks/IS2_data_access.html)
import icepyx as ipx
import os
import shutil
short_name = 'ATL03'
spatial_extent = [(9,44), (9,45), (10,45), (10,44), (9,44)]
date_range = ['2019-01-01','2021-12-31']
region_a = ipx.Query(short_name, spatial_extent, date_range)
region_a.avail_granules()
earthdata_uid = 'MyUser'
email = '[email protected]'
region_a.earthdata_login(earthdata_uid, email)
region_a.order_vars.append(var_list=['lat_ph','lon_ph','h_ph'])
This script always worked until 18th of November. The last line of code can be wathever function of order_vars (i.e. append, avail or the others).
I tried the script on all the computer that I have in our office and the script error is always the same.
Thank you again,
R.N.
from icepyx.
@rwegener2 this would be a great first issue to (1) see if it's still an issue and you can reproduce it (2) get to know the basics of icepyx. The notebook linked by the user has the updated syntax for the login step (everything else should be the same, and this should still run, it's just simpler now).
from icepyx.
Main diagnosis - seems to work in icepyx 0.7.0
This example seems to work in icepyx version 0.7.0. The updated code I used was:
import icepyx as ipx
# 1 - define search params
short_name = 'ATL03'
spatial_extent = [(9,44), (9,45), (10,45), (10,44), (9,44)]
date_range = ['2019-01-01','2021-12-31']
region_a = ipx.Query(short_name, spatial_extent, date_range)
# 2 - login
region_a.earthdata_login()
# 3 - add variables
region_a.order_vars.append(var_list=['lat_ph','lon_ph','h_ph'])
My metric for "it works" is that is that the last line (region_a.order_vars.append()
) runs without error and that region_a.order_vars.wanted
changes before and after running the last line.
Side comment: logging in with icepyx 0.6.4
I tried to reproduce this error with icepyx 0.6.4 and got blocked by being unable to sign in with my Earthdata credentials in that version. The environment I was using was a conda-produced Python 3.11.4 that had icepyx=0.6.4
installed. Running the .earthdata_login()
function with my uid
and username
gave a JSONDecodeError
. I can follow up with a full slacktrace in a separate issue, but since this is an issue with an older version of icepyx
I didn't assume it was necessarily worth it to track this error down.
from icepyx.
@datigeofisica We're unable to reproduce this error - please let us know if you're still experiencing any issues.
from icepyx.
Related Issues (20)
- Modularizing authentication HOT 1
- add some projection handling and checks
- debug tests behind EDL - failing builds for PRs to main HOT 1
- do not run uml updates on PRs into main
- Make Variables an independent class HOT 1
- Unable to call Argo scripts with Quest query object HOT 2
- calls to OpenAltimetry API 404 HOT 6
- Intermittent Error on order_granules
- ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it HOT 2
- ValueError: cannot reindex or align along dimension 'delta_time' because of conflicting dimension sizes: {1112, 1098} HOT 2
- icepyx required variables
- only add requested beams for required variables
- improve QUEST documentation HOT 2
- figure out where the codecov reports went HOT 2
- become PEP8 compliant HOT 1
- NSIDC request url generation currently includes duplicate keywords HOT 4
- Allow generating variables wanted from a list of h5 paths HOT 4
- Editable install instructions on contributing page could be clearer HOT 7
- remove metadata fix after next ATL{11,14,15} version up
- Add Examples Directory 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 icepyx.