You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the documentation, to_cf should return a description conforming to CF version ≥1.8. However, the resulting dictionary does not contain any key for "horizontal_datum_name". According to the CF Convenions, Appendix F, version 1.7 or greater:
reference_ellipsoid_name, prime_meridian_name, horizontal_datum_name and geographic_crs_name must be all defined if any one is defined.
The resulting dictionary does not contain horizontal_datum_name:
{'crs_wkt': 'GEOGCRS["WGS 84",ENSEMBLE["World Geodetic System 1984 ensemble",MEMBER["World Geodetic System 1984 (Transit)"],MEMBER["World Geodetic System 1984 (G730)"],MEMBER["World Geodetic System 1984 (G873)"],MEMBER["World Geodetic System 1984 (G1150)"],MEMBER["World Geodetic System 1984 (G1674)"],MEMBER["World Geodetic System 1984 (G1762)"],MEMBER["World Geodetic System 1984 (G2139)"],ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]],ENSEMBLEACCURACY[2.0]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],USAGE[SCOPE["Horizontal component of 3D system."],AREA["World."],BBOX[-90,-180,90,180]],ID["EPSG",4326]]',
'semi_major_axis': 6378137.0,
'semi_minor_axis': 6356752.314245179,
'inverse_flattening': 298.257223563,
'reference_ellipsoid_name': 'WGS 84',
'longitude_of_prime_meridian': 0.0,
'prime_meridian_name': 'Greenwich',
'geographic_crs_name': 'WGS 84',
'grid_mapping_name': 'latitude_longitude'}
Therefore, the description is not conforming with CF 1.8 or greater, despite the documentation claiming so. However, it is conform CF 1.6.
Expected Output
I expect a dictionary that includes a definition for horizontal_datum_name.
Conda environment information (if you installed with conda):
Environment (mamba list):
$ mamba list proj
# packages in environment at /data/gholl/mambaforge/envs/py311:
#
# Name Version Build Channel
proj 9.1.1 h8ffa02c_2 conda-forge
pyproj 3.4.1 py311h945b3ca_1 conda-forge
So just above that snippet it looks like crs.coordinate_operation is None so it never enters this if statement. The coordinate_operation is None because:
Code Sample, a copy-pastable example if possible
Problem description
According to the documentation,
to_cf
should return a description conforming to CF version ≥1.8. However, the resulting dictionary does not contain any key for"horizontal_datum_name"
. According to the CF Convenions, Appendix F, version 1.7 or greater:The resulting dictionary does not contain
horizontal_datum_name
:Therefore, the description is not conforming with CF 1.8 or greater, despite the documentation claiming so. However, it is conform CF 1.6.
Expected Output
I expect a dictionary that includes a definition for
horizontal_datum_name
.Environment Information
Installation method
Conda environment information (if you installed with conda):
Environment (
mamba list
):Details about
mamba
and system (mamba info
):The text was updated successfully, but these errors were encountered: