johnnybwell commited on
Commit
d1cd507
·
verified ·
1 Parent(s): b969c53

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +50 -16
README.md CHANGED
@@ -26,12 +26,15 @@ Which product maps to which folder/table/interval is defined in
26
  needed for the PhenoCam script or `neon_site_availability.py`, which only
27
  hits NEON's open `/sites` metadata endpoint).
28
 
29
- **Current data status: all 11 sensor products and both PhenoCam series
30
- have been downloaded** (~3.1 GB sensor data, ~1.8 MB PhenoCam -- pulled
31
- 2026-10-05, see [Data currently on hand](#5-data-currently-on-hand) below
32
- for the real per-product numbers). `processed/` is still empty. Eddy
33
- covariance (`DP4.00200.001`) is cataloged but **has not been pulled** --
34
- that's a separate, size-sensitive step, not yet run for this site.
 
 
 
35
 
36
  OSBS's own PhenoCam ROI structure turned out to be noticeably more
37
  complex than CPER's or CLBJ's (9 and 6 ROI codes vs. 1-4) -- live
@@ -79,7 +82,7 @@ neon_OSBS/
79
  │ ├── phenocam/
80
  │ │ ├── understory/ # NEON.D03.OSBS.DP1.00042 (ROIs GR_1000+GR_2000 stitched -- HAS DATA)
81
  │ │ └── canopy/ # NEON.D03.OSBS.DP1.00033 (ROIs EN_1000+EN_2000 stitched -- HAS DATA)
82
- │ └── eddy_covariance/ # DP4.00200.001 -- EMPTY, not pulled yet (separate, size-sensitive step)
83
  └── processed/ # empty; for derived/analysis outputs you create from raw/ (not written to by any script)
84
  ```
85
 
@@ -177,14 +180,20 @@ fixed trailing window instead of full history.)
177
  step** (potentially large -- check the size estimate first):
178
 
179
  ```bash
180
- python3 scripts/neon_site_availability.py --site OSBS # note the DP4.00200.001 row -- not yet confirmed
181
- python3 scripts/download_eddy_covariance.py --site OSBS --start <start> --end <end>
182
  ```
183
 
184
  `download_eddy_covariance.py` estimates total download size and checks
185
  free disk space *before downloading anything*, aborting if the estimate
186
  exceeds 90% of free space -- confirm the estimate it prints looks
187
- reasonable before letting it proceed.
 
 
 
 
 
 
188
 
189
  **Step 4 -- PhenoCam, always run separately from the above** (no token
190
  needed):
@@ -254,10 +263,22 @@ not a summarized fetch) on 2026-10-05:
254
  | canopy (`NEON.D03.OSBS.DP1.00033`) | `EN_1000`+`EN_2000` | 3,559 | 2016-12-15 -> 2026-10-04 | One 22-day gap at the generation hand-off (2026-02-24 -> 2026-03-17). `EN_1000` alone runs gap-free 2016-12-15 -> 2026-02-23; `EN_2000` is a new generation starting right after. |
255
  | understory (`NEON.D03.OSBS.DP1.00042`) | `GR_1000`+`GR_2000` | 3,546 | 2016-12-14 -> 2026-10-04 | One 36-day gap at the hand-off (2025-12-10 -> 2026-01-14). **`UN_0001` -- the semantically obvious name match -- was checked and rejected**: it's a short series that stops 2018-03-11 (453 rows), the same pattern as CPER's abandoned understory camera. `GR_1000`+`GR_2000` gives vastly better coverage. |
256
 
257
- **Eddy covariance (DP4.00200.001): not pulled.** Cataloged and confirmed
258
- available (2017-02 -> 2026-08 per `neon_site_availability.py`), but this
259
- is a separate, potentially multi-GB HDF5 pull (see CPER's/CLBJ's
260
- experience) that hasn't been requested for this site yet.
 
 
 
 
 
 
 
 
 
 
 
 
261
 
262
  ### 6. Uploading to HuggingFace
263
 
@@ -291,8 +312,21 @@ Carried forward from `neon_CPER`/`neon_CLBJ`, confirmed to still apply:
291
  retry via `download_neon_product.py` cleared all 5. Same pattern CPER
292
  documented -- don't assume a bad token/site code if this recurs.
293
 
294
- New, OSBS-specific finding from this repo's setup (2026-10-05):
295
-
 
 
 
 
 
 
 
 
 
 
 
 
 
296
  - **PhenoCam's semantically-obvious ROI name was the wrong pick.**
297
  `UN_0001` ("UN" = understory, matching CLBJ's `UN_1000` naming for the
298
  same product) looked like the right choice by convention, but direct
 
26
  needed for the PhenoCam script or `neon_site_availability.py`, which only
27
  hits NEON's open `/sites` metadata endpoint).
28
 
29
+ **Current data status: all 11 sensor products, both PhenoCam series, and
30
+ eddy covariance have been downloaded** (~3.1 GB sensor data, ~1.8 MB
31
+ PhenoCam, 14 MB final eddy covariance CSV -- pulled 2026-10-05, see
32
+ [Data currently on hand](#5-data-currently-on-hand) below for the real
33
+ per-product numbers). `processed/` is still empty. The eddy covariance
34
+ pull hit a genuine schema-incompatibility bug on one month (2017-02,
35
+ produced under an older NEON processing revision) that crashes
36
+ `neonutilities`'s `stack_eddy()` -- worked around by excluding that one
37
+ file; see [Known issues](#7-known-issues-and-gotchas) below.
38
 
39
  OSBS's own PhenoCam ROI structure turned out to be noticeably more
40
  complex than CPER's or CLBJ's (9 and 6 ROI codes vs. 1-4) -- live
 
82
  │ ├── phenocam/
83
  │ │ ├── understory/ # NEON.D03.OSBS.DP1.00042 (ROIs GR_1000+GR_2000 stitched -- HAS DATA)
84
  │ │ └── canopy/ # NEON.D03.OSBS.DP1.00033 (ROIs EN_1000+EN_2000 stitched -- HAS DATA)
85
+ │ └── eddy_covariance/ # DP4.00200.001 -- HAS DATA (100/101 site-months; 2017-02 excluded, schema bug)
86
  └── processed/ # empty; for derived/analysis outputs you create from raw/ (not written to by any script)
87
  ```
88
 
 
180
  step** (potentially large -- check the size estimate first):
181
 
182
  ```bash
183
+ python3 scripts/neon_site_availability.py --site OSBS # DP4.00200.001: 2017-02 -> 2026-08 (confirmed 2026-10-05)
184
+ python3 scripts/download_eddy_covariance.py --site OSBS --start 2017-02 --end 2026-08
185
  ```
186
 
187
  `download_eddy_covariance.py` estimates total download size and checks
188
  free disk space *before downloading anything*, aborting if the estimate
189
  exceeds 90% of free space -- confirm the estimate it prints looks
190
+ reasonable before letting it proceed. **For OSBS specifically, this
191
+ script's own `stack_eddy()` call will crash on the 2017-02 file** (see
192
+ [Known issues](#7-known-issues-and-gotchas)) -- the script does not
193
+ currently work around this automatically; the fix used here was manual
194
+ (move that one file out of the staging dir, re-run `stack_eddy()` on the
195
+ rest). If re-running this pull from scratch, expect to repeat that
196
+ workaround.
197
 
198
  **Step 4 -- PhenoCam, always run separately from the above** (no token
199
  needed):
 
263
  | canopy (`NEON.D03.OSBS.DP1.00033`) | `EN_1000`+`EN_2000` | 3,559 | 2016-12-15 -> 2026-10-04 | One 22-day gap at the generation hand-off (2026-02-24 -> 2026-03-17). `EN_1000` alone runs gap-free 2016-12-15 -> 2026-02-23; `EN_2000` is a new generation starting right after. |
264
  | understory (`NEON.D03.OSBS.DP1.00042`) | `GR_1000`+`GR_2000` | 3,546 | 2016-12-14 -> 2026-10-04 | One 36-day gap at the hand-off (2025-12-10 -> 2026-01-14). **`UN_0001` -- the semantically obvious name match -- was checked and rejected**: it's a short series that stops 2018-03-11 (453 rows), the same pattern as CPER's abandoned understory camera. `GR_1000`+`GR_2000` gives vastly better coverage. |
265
 
266
+ **Eddy covariance (DP4.00200.001)**: requested 2017-02 -> 2026-08 (115
267
+ site-months); `zips_by_product()` actually returned 101 site-months
268
+ (~18 GB raw HDF5). Of those, **one file (2017-02) crashed
269
+ `stack_eddy()`** with a column-shape error -- its generation timestamp
270
+ (Dec 2022) was far older than every other month's (Jan 2026+), meaning
271
+ it was produced under an incompatible older NEON processing schema. Not
272
+ a download/network/disk issue; re-pulling it would hit the same error.
273
+ Worked around by excluding that one file and stacking the remaining 100
274
+ (2017-03 -> 2025-06-30, 146,112 unfiltered rows). After the NEE QC filter
275
+ (`qfqm.fluxCo2.nsae.qfFinl == 0`, which dropped 78.8% of rows -- 115,124
276
+ of 146,112), the final output is **14 MB, 30,988 rows**
277
+ (`raw/eddy_covariance/OSBS_eddy_covariance_2017-03_2026-08.csv`).
278
+ Notably, the QC-passing rows don't start until **2019-09-15** -- every
279
+ row from 2017-03 through 2019-09-14 was flagged bad by the NEE quality
280
+ flag, not simply absent; real usable coverage is 2019-09-15 ->
281
+ 2025-06-28.
282
 
283
  ### 6. Uploading to HuggingFace
284
 
 
312
  retry via `download_neon_product.py` cleared all 5. Same pattern CPER
313
  documented -- don't assume a bad token/site code if this recurs.
314
 
315
+ New, OSBS-specific findings from this repo's setup (2026-10-05):
316
+
317
+ - **One eddy covariance month has an incompatible schema and crashes
318
+ `stack_eddy()`.** The 2017-02 HDF5 file was generated under an older
319
+ NEON processing revision (timestamp Dec 2022, vs. Jan 2026+ for every
320
+ other month) and has a different column layout that
321
+ `neonutilities==2.0.1`'s `stack_eddy()` can't merge alongside the
322
+ newer files (`ValueError: setting an array element with a
323
+ sequence... inhomogeneous shape`). Not a network/disk/token issue --
324
+ re-downloading changes nothing. Fixed by excluding that one file from
325
+ the staging directory before stacking the rest. If re-running this
326
+ pull, check for a `.h5.gz` file that never got auto-decompressed
327
+ (another symptom of the same file) and/or a generation timestamp that
328
+ stands out from the rest, and exclude it rather than assuming the
329
+ whole pull is broken.
330
  - **PhenoCam's semantically-obvious ROI name was the wrong pick.**
331
  `UN_0001` ("UN" = understory, matching CLBJ's `UN_1000` naming for the
332
  same product) looked like the right choice by convention, but direct