GithubHelp home page GithubHelp logo

order_vars Issue about icepyx HOT 5 CLOSED

datigeofisica avatar datigeofisica commented on September 28, 2024
order_vars Issue

from icepyx.

Comments (5)

JessicaS11 avatar JessicaS11 commented on September 28, 2024

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.

datigeofisica avatar datigeofisica commented on September 28, 2024

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.

JessicaS11 avatar JessicaS11 commented on September 28, 2024

@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.

rwegener2 avatar rwegener2 commented on September 28, 2024

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.

JessicaS11 avatar JessicaS11 commented on September 28, 2024

@datigeofisica We're unable to reproduce this error - please let us know if you're still experiencing any issues.

from icepyx.

Related Issues (20)

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.