Skip to content

Commit 702868d

Browse files
committed
Update docs with info about ILVIS2 data's multiple sets of lat/lon/elev
1 parent 84fefce commit 702868d

File tree

2 files changed

+46
-3
lines changed

2 files changed

+46
-3
lines changed

docs/altimetry-data-overview.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,36 @@ guides or contact NSIDC user services at [email protected]
130130
131131
```
132132

133+
### ILVIS2 data
134+
135+
ILVIS2 contain multiple sets of latitude/longitude/elevation values.
136+
137+
- `GLAT`/`GLON`/`GZ` represent the center of the lowest mode in the waveform.
138+
- `HLAT`/`HLON`/`HZ` represent the center of the highest detected mode within
139+
the waveform. Both of these sets of lat/lon/elev are available across v1 and
140+
v2 ILIVS data.
141+
142+
ILVIS V1 data:
143+
144+
- `CLAT`/`CLON`/`ZC` represent the centroid of the corresponding LVIS Level-1B
145+
waveform.
146+
147+
ILVIS V2 data:
148+
149+
- `TLAT`/`TLON`/`ZT`, which represent the highest detected signal.
150+
151+
By default, `iceflow` will use `GLAT`/`GLON`/`GZ` as the primary
152+
latitude/longitude/elevation fields in `IceflowDataFrame`s. Use the
153+
`ilvis2_coordinate_set` kwarg on `read_iceflow_datafile(s)` or
154+
`make_iceflow_parquet` to select an different primary set of
155+
latitude/longitude/elevation fields. Alternatively, manually set the fields:
156+
157+
```
158+
# TLAT/TLON/TZ are only available in ILVIS2v2 data:
159+
sel_ilvis2v2 = data.dataset == "ILVIS2v2"
160+
data.loc[sel_ilvis2v2, ["latitude", "longitude", "elevation"]] = data.loc[sel_ilvis2v2, ["TLAT", "TLON", "ZT"]]
161+
```
162+
133163
## Challenges
134164

135165
The wealth of data from these missions presents an opportunity to study the

docs/getting-started.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,15 @@ from nsidc.iceflow import make_iceflow_parquet
101101
parquet_path = make_iceflow_parquet(
102102
data_dir=Path("/path/to/data/dir/"),
103103
target_itrf="ITRF2014",
104+
ilvis2_coordinate_set="low_mode",
104105
)
105106
df = dd.read_parquet(parquet_path)
106107
```
107108

108109
Note that `make_iceflow_parquet` creates a parquet datastore for the data in the
109110
provided `data_dir` with the data transformed into a common
110-
[ITRF](https://itrf.ign.fr/) to facilitate analysis. Only datetime, lat, lon,
111-
and elevation fields are preserved in the parquet datastore.
111+
[ITRF](https://itrf.ign.fr/) to facilitate analysis. Only datetime, latitude,
112+
longitude, elevation, and dataset fields are preserved in the parquet datastore.
112113

113114
To access and analyze the full data record in the source files, use
114115
[`read_iceflow_datafiles`](nsidc.iceflow.read_iceflow_datafiles):
@@ -117,7 +118,10 @@ To access and analyze the full data record in the source files, use
117118
from nsidc.iceflow import read_iceflow_datafiles
118119
119120
# Read all of the data in the source files - not just lat/lon/elev.
120-
df = read_iceflow_datafiles(downloaded_files)
121+
df = read_iceflow_datafiles(
122+
downloaded_files,
123+
ilvis2_coordinate_set="low_mode",
124+
)
121125
122126
# Optional: transform lat/lon/elev to common ITRF:
123127
from nsidc.iceflow import transform_itrf
@@ -130,3 +134,12 @@ df = transform_itrf(
130134
Note that `read_iceflow_datafiles` reads all of the data from the given
131135
filepaths. This could be a large amount of data, and could cause your program to
132136
crash if physical memory limits are exceeded.
137+
138+
#### Special considerations for ILVIS2 data
139+
140+
Users of ILVIS2 data should be aware that ILVIS2 data contains multiple sets of
141+
lat/lon/elev that may be of interest. By default, the `low_mode` set is used as
142+
the primary set of latitude/longitude/elevation used by `iceflow`.
143+
144+
See [ILVIS2 data](./altimetry-data-overview.md#ilvis2-data) for more
145+
information.

0 commit comments

Comments
 (0)