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
(latitude, longitude)
in thelatitude
andlongitude
coordinatesEMIT
Code snippet
EMIT demo
Beta Was this translation helpful? Give feedback.
All reactions