Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add notes about platform name and sensor to dev guide #3008

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

BENR0
Copy link
Collaborator

@BENR0 BENR0 commented Dec 5, 2024

  • Add guideline for readers dev to add platform_name and sensor attributes according to https://space.oscar.wmo.int/ to documentation
  • fix typo

Copy link

codecov bot commented Dec 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.10%. Comparing base (80c93cb) to head (76c1c67).
Report is 16 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3008      +/-   ##
==========================================
+ Coverage   96.08%   96.10%   +0.01%     
==========================================
  Files         377      377              
  Lines       55155    55162       +7     
==========================================
+ Hits        52997    53012      +15     
+ Misses       2158     2150       -8     
Flag Coverage Δ
behaviourtests 3.94% <ø> (-0.01%) ⬇️
unittests 96.19% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 12177642788

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 96.208%

Totals Coverage Status
Change from base Build 12165642437: 0.0%
Covered Lines: 53256
Relevant Lines: 55355

💛 - Coveralls

loaded dataset, or return None if the loading was unsuccessful.
loaded dataset, or return None if the loading was unsuccessful. If the reader
is reading satellite data the returned xarray.DataArrays should also have the
attributes ``platform_name`` and ``sensor`` with names according to https://space.oscar.wmo.int/.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this is true. Sure we try to match OSCAR but they've also changed names in their system in the past. Also we typically have sensor being lowercase and it can be a single string or a set object. I think we've also had some special cases but don't recall which ones off the top of my head.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For platform name I think that is pretty much ok, but for sensors we've used lowercase and have also replaced / with -. As an example AVHRR/3 is avhrr-3.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While I personally would like it to be like this, I did this PR to get this discussion started.

@pnuu replacing the / with - is good which is what space oscar uses. And uppercase/lowercase does not matter as well - or _. So at least for the URL it does not matter if you have AVHRR-3, avhrr-3, AVHRR_3 or avhrr_3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants