Comments (3)
I have re-run the linked notebook with icepyx version 0.7.0 and for me it runs fine through the line ds = reader.load()
. The only changes I needed to make to the notebook for it to run through that point are:
- update to my own Earthdata Login credentials
- change the
root_path
variable to a filepath on my own machine - I used the second
pattern
string (commented by default) to match all three of the downloaded files
Moving to the next line to extract a single profile it seems the variable names have changed. I changed the line profile = ds.sel(spot=1).isel(gran_idx=0)
to profile = ds.sel(profile='profile_1').isel(gran_idx=0)
and the plot then gets rendered nicely.
I suggest we update this line of the docs, but otherwise it appears that this example notebook is running smoothly.
from icepyx.
@rwegener2 I can't assign you yet since I just sent your org invite. I believe this issue is resolved, but confirming that would give you a good chance to go through the linked workflow notebook and get a sense for using icepyx to read in data.
from icepyx.
mam
now i use
from colab
with the data from earth data cloud
filename_1 = "/content/processed_ATL03_20200531180255_10110706_005_01.h5" #@param {type:"string"}
filename_2 = "/content/processed_ATL03_20200211111433_07140602_005_01.h5" #@param {type:"string"}
tr_1 = "gt1l" #@param ["gt1l", "gt1r", "gt2l", "gt2r", "gt3l", "gt3r"]
tr_2 = "gt1r" #@param ["gt1l", "gt1r", "gt2l", "gt2r", "gt3l", "gt3r"]
################################################################################
def get_height_lat_lon(filename, track_name):
# Open the HDF5 file and extract data
f = h5py.File(filename, 'r')
h_ph_data = f['/'+str(track_name)+'/heights/h_ph']
lat_ph_data = f['/'+str(track_name)+'/heights/lat_ph']
lon_ph_data = f['/'+str(track_name)+'/heights/lon_ph']
return h_ph_data, lat_ph_data, lon_ph_data
################################################################################
h_ph_data1, lat1, lon1 = get_height_lat_lon(filename_1, tr_1)
h_ph_data2, lat2, lon2 = get_height_lat_lon(filename_2, tr_2)
but thank yu for replying
from icepyx.
Related Issues (20)
- Download fails when ATL06 data larger than around 500 MB HOT 2
- accept all vector file inputs
- order_vars Issue HOT 5
- geolocation variables reset? HOT 7
- cannot import 'icesat2data' from 'icepyx' HOT 3
- ipx.Read.load() not working with ATL09 beam profile names HOT 4
- reinstate ATL13 visualization module tests HOT 1
- ATL11 granule ID empty list HOT 3
- IndexError: array index out of range HOT 13
- create interactive data access
- SSLError HOT 6
- add automatic authorization to order/download HOT 1
- update ICESat-2 resource guide HOT 1
- improve Zenodo releases
- EarthData authentication HOT 1
- improve temporal module
- No display when trying to visualize ATL06 elevations
- ATL06 r_eff read error HOT 1
- Modularizing authentication 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.