Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Z zarr_to_template
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Metrics
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Théo Chassanite
  • zarr_to_template
  • Issues
  • #1

Closed
Open
Created Nov 28, 2025 by Julien Demaria@jdemaria

Several attributes issues

https://gitlab.eopf.copernicus.eu/S3/OLCI/s3olci/-/snippets/11

  1. Remove all "undefined" for attrs short_name and standard_name wrongly added by zarr_to_template even when not present in IPF: sed -i '/\"undefined\"/d' file.jinja
  2. Remove extra "," before "}" (because of 3.): sed -i ':a;$!N;s/,\(\n[[:space:]]*\)*\n\([[:space:]]*}\)/\1\n\2/;ta;P;D' file.jinja
  3. It seems zarr_to_template wrongly (?) replaces the "dtype" values by other representations but preferable to stick to CPM values: sed -i -E 's/("dtype"\s*:\s*)"int8"/\1"<i1"/g; s/("dtype"\s*:\s*)"int16"/\1"<i2"/g; s/("dtype"\s*:\s*)"int32"/\1"<i4"/g; s/("dtype"\s*:\s*)"uint8"/\1"<u1"/g; s/("dtype"\s*:\s*)"uint16"/\1"<u2"/g; s/("dtype"\s*:\s*)"uint32"/\1"<u4"/g; s/("dtype"\s*:\s*)"float16"/\1"<f2"/g; s/("dtype"\s*:\s*)"float32"/\1"<f4"/g; s/("dtype"\s*:\s*)"float64"/\1"<f8"/g' file.jinja
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking