Skip to content

Calfire_taskgeom_creation.py: error: input_gdb must be a directory ending with .gdb #50

@robmarkcole

Description

@robmarkcole

Working through FinetuneOlmoEarthSegmentation

⚡ main ~/olmoearth_projects uv run  ./docs/tutorials/FinetuneOlmoEarthSegmentation/adhoc_scripts/Calfire_data_prep.py --data-dir $SRC_DATA_DIR --gap-width 150
INFO: Geodatabase not found, downloading fresh copy.
INFO: Downloading CAL FIRE archive to /teamspace/studios/this_studio/data/downloads/fire241gdb.zip
INFO: Extracting archive to /teamspace/studios/this_studio/data/label_data
INFO: Loading fire perimeters from /teamspace/studios/this_studio/data/label_data/fire24_1.gdb
/teamspace/studios/this_studio/olmoearth_projects/.venv/lib/python3.13/site-packages/pyogrio/raw.py:198: RuntimeWarning: organizePolygons() received a polygon with more than 100 parts. The processing may be really slow.  You can skip the processing by setting METHOD=SKIP, or only make it analyze counter-clock wise parts by setting METHOD=ONLY_CCW if you can assume that the outline of holes is counter-clock wise defined
  return ogr_read(
INFO: Reprojecting input to EPSG:4326
INFO: Kept 2022 fires with YEAR_ >= 2020
INFO: Generating unburnt rings.
INFO: Created 2008 unburnt polygons.
INFO: Formatting feature columns.
INFO: Saving GeoJSON to /teamspace/studios/this_studio/data/label_data/Calfire_2020-2025.json
INFO: Created 4,030 records
/teamspace/studios/this_studio/olmoearth_projects/./docs/tutorials/FinetuneOlmoEarthSegmentation/adhoc_scripts/Calfire_data_prep.py:295: UserWarning: Column names longer than 10 characters will be truncated when saved to ESRI Shapefile.
  gdf.to_file(output_path.with_suffix(".gdb"))
/teamspace/studios/this_studio/olmoearth_projects/.venv/lib/python3.13/site-packages/pyogrio/raw.py:723: RuntimeWarning: Field ALARM_DATE create as date field, though DateTime requested.
  ogr_write(
/teamspace/studios/this_studio/olmoearth_projects/.venv/lib/python3.13/site-packages/pyogrio/raw.py:723: RuntimeWarning: Field CONT_DATE create as date field, though DateTime requested.
  ogr_write(
/teamspace/studios/this_studio/olmoearth_projects/.venv/lib/python3.13/site-packages/pyogrio/raw.py:723: RuntimeWarning: Normalized/laundered field name: 'COMPLEX_NAME' to 'COMPLEX_NA'
  ogr_write(
/teamspace/studios/this_studio/olmoearth_projects/.venv/lib/python3.13/site-packages/pyogrio/raw.py:723: RuntimeWarning: Normalized/laundered field name: 'Shape_Length' to 'Shape_Leng'
  ogr_write(
/teamspace/studios/this_studio/olmoearth_projects/.venv/lib/python3.13/site-packages/pyogrio/raw.py:723: RuntimeWarning: Field start_time create as date field, though DateTime requested.
  ogr_write(
/teamspace/studios/this_studio/olmoearth_projects/.venv/lib/python3.13/site-packages/pyogrio/raw.py:723: RuntimeWarning: Field end_time create as date field, though DateTime requested.
  ogr_write(
INFO: Created 4,030 records
INFO: Final dataset shape: (4030, 24)

⚡ main ~/olmoearth_projects uv run ./docs/tutorials/FinetuneOlmoEarthSegmentation/adhoc_scripts/Calfire_taskgeom_creation.py $SRC_DATA_DIR/Calfp_2020-2025.gdb --min_box_size_pix 128
usage: Calfire_taskgeom_creation.py [-h] [-l LAYER] [-o OUTPUT_GDB] [--min_box_size_pix MIN_BOX_SIZE_PIX] input_gdb
Calfire_taskgeom_creation.py: error: input_gdb must be a directory ending with .gdb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions