Skip to content

Commit

Permalink
Add 'm' as another synonym for 'meter'
Browse files Browse the repository at this point in the history
The units for SR-ORG:6974 are 'm':
https://code.earthengine.google.com/d8af8855779a5fce91c23ab98df0d647

PiperOrigin-RevId: 585675470
  • Loading branch information
Xee authors committed Nov 27, 2023
1 parent 079b396 commit 49d82f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xee/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,14 @@ class EarthEngineStore(common.AbstractDataStore):
'degree': 1,
'metre': 10_000,
'meter': 10_000,
'm': 10_000,
}

DIMENSION_NAMES: Dict[str, Tuple[str, str]] = {
'degree': ('lon', 'lat'),
'metre': ('X', 'Y'),
'meter': ('X', 'Y'),
'm': ('X', 'Y'),
}

DEFAULT_MASK_VALUE = np.iinfo(np.int32).max
Expand Down

0 comments on commit 49d82f8

Please sign in to comment.