Replies: 2 comments 3 replies
-
If I look at the original Level-2 files from EMIT, it has a similar structure as PACE/OCI level-2 products.
Do you know where to find how the EMIT product you have from opengeos/datasets was processed to a rectilinear grid? |
Beta Was this translation helpful? Give feedback.
-
These are a bit out of date, but they are my examples for loading EMIT: https://github.com/auspatious/hyperspectral-notebooks To be opinionated, we should be consistent in calling the variables Then you can select with something like Sorry, but I'm not much help here with the PACE data... I haven't worked with it. This looks like the cause of the issue, though? dataset = xr.Dataset(
{
"Rrs": (("latitude", "longitude", "wavelengths"), Rrs.data)
},
coords={
"latitude": (("latitude", "longitude"), lat.data),
"longitude": (("latitude", "longitude"), lon.data),
"wavelengths": ("wavelengths", wavelengths.data)
}
)
dataset Is there any reason you don't do: dataset = xr.Dataset(
{
"Rrs": (("latitude", "longitude", "wavelengths"), Rrs.data)
},
coords={
"latitude": ("latitude", lat.data),
"longitude": ("latitude", lon.data),
"wavelengths": ("wavelengths", wavelengths.data)
}
)
dataset |
Beta Was this translation helpful? Give feedback.
-
Cross posted NASA/EMIT-Data-Resources
Thank you for the excellent notebook examples from the repo. @bingqing-liu and I are building a Python package called HyperCoast for visualizing NASA Hyperspectral data interactively with a few lines of code. Here is a notebook example for visualizing EMIT data interactively. However, we run into issues with reading PACE data. The
latitude
andlongitude
coordinates are in the format of(latutude, longitude)
. We need to turn them into one dimension like the EMIT dataset shown in the example below. The goal is the turn the xarray dataset into a rasterio dataset so that we can plot it on the interactive map.Any advice? @alexgleith @betolink @BriannaLind
PACE
Code snippet
Note the two dimensions
![image](https://private-user-images.githubusercontent.com/5016453/326880553-cc5a4849-6acc-4f0b-9c5f-9e327931b6f3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk2NDI5ODksIm5iZiI6MTcxOTY0MjY4OSwicGF0aCI6Ii81MDE2NDUzLzMyNjg4MDU1My1jYzVhNDg0OS02YWNjLTRmMGItOWM1Zi05ZTMyNzkzMWI2ZjMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjlUMDYzMTI5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MTRhNjAxMTU1NzlmZTFjMGJkNTYwNTE4NTEzNjk5NDc1M2Q1OGM4OTgxN2JmYTZkYjY4NzZlMTgxOThiMzE5YiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.B3TdARMt0yHg-1iMexj8nzoUIf9_dQxdlZeN0VQuoHM)
(latitude, longitude)
in thelatitude
andlongitude
coordinatesEMIT
Code snippet
EMIT demo
Beta Was this translation helpful? Give feedback.
All reactions