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

Creo: fix proj extension metadata retrieval from S3 #403

Open
jdries opened this issue Apr 24, 2023 · 0 comments
Open

Creo: fix proj extension metadata retrieval from S3 #403

jdries opened this issue Apr 24, 2023 · 0 comments
Assignees

Comments

@jdries
Copy link
Contributor

jdries commented Apr 24, 2023

Geotiff is written to S3, while gdalinfo tries to run on local posix path, this won't work.

{"name":"org.openeo.geotrellis.geotiff.package$","levelname":"INFO","message":"Writing geotiff to s3://OpenEO-data/batch_jobs/j-75a638311012466b9b9dab491c651716/openEO.tif with type uint16ud65535 and bands 2.0","created":1682316527.078992000,"filename":"package.scala","lineno":425,"job_id":"j-75a638311012466b9b9dab491c651716","user_id":"dfa678cb9ab17f65d4f025e30fac5e0d90116176e44fd17d703419322747cbbd@egi.eu"}
{"name":"geotrellis.spark.ContextRDD","levelname":"INFO","message":"Removing RDD 237 from persistence list","created":1682316529.954312000,"filename":"Logging.scala","lineno":61,"job_id":"j-75a638311012466b9b9dab491c651716","user_id":"dfa678cb9ab17f65d4f025e30fac5e0d90116176e44fd17d703419322747cbbd@egi.eu"}
{"message": "wrote 1 assets to /batch_jobs/j-75a638311012466b9b9dab491c651716/out", "levelname": "INFO", "name": "openeogeotrellis.deploy.batch_job", "created": 1682316529.9583066, "filename": "batch_job.py", "lineno": 878, "process": 74, "job_id": "j-75a638311012466b9b9dab491c651716", "user_id": "dfa678cb9ab17f65d4f025e30fac5e0d90116176e44fd17d703419322747cbbd@egi.eu"}
{"message": "Extracting result metadata from <openeo_driver.dry_run.DryRunDataTracer object at 0x7f648f706460>", "levelname": "INFO", "name": "openeogeotrellis.deploy.batch_job", "created": 1682316529.9588408, "filename": "batch_job.py", "lineno": 99, "process": 74, "job_id": "j-75a638311012466b9b9dab491c651716", "user_id": "dfa678cb9ab17f65d4f025e30fac5e0d90116176e44fd17d703419322747cbbd@egi.eu"}
{"message": "/opt/openeo/lib/python3.8/site-packages/pyproj/crs/crs.py:141: FutureWarning: '+init=<authority>:<code>' syntax is deprecated. '<authority>:<code>' is the preferred initialization method. When making the change, be mindful of axis order changes: https://pyproj4.github.io/pyproj/stable/gotchas.html#axis-order-changes-in-proj-6\n  in_crs_string = _prepare_from_proj_string(in_crs_string)\n", "levelname": "WARNING", "name": "py.warnings", "created": 1682316529.963238, "filename": "warnings.py", "lineno": 109, "process": 74, "job_id": "j-75a638311012466b9b9dab491c651716", "user_id": "dfa678cb9ab17f65d4f025e30fac5e0d90116176e44fd17d703419322747cbbd@egi.eu"}
{"message": "/opt/openeo/lib/python3.8/site-packages/openeo_driver/util/utm.py:70: FutureWarning: This function is deprecated. See: https://pyproj4.github.io/pyproj/stable/gotchas.html#upgrading-to-pyproj-2-from-pyproj-1\n  return pyproj.transform(proj_from, proj_to, x, y, always_xy=True)\n", "levelname": "WARNING", "name": "py.warnings", "created": 1682316529.9815457, "filename": "warnings.py", "lineno": 109, "process": 74, "job_id": "j-75a638311012466b9b9dab491c651716", "user_id": "dfa678cb9ab17f65d4f025e30fac5e0d90116176e44fd17d703419322747cbbd@egi.eu"}
{"message": "_export_result_metadata: asset_path='openEO.tif', file's MIME type: image/tiff; application=geotiff, job dir (based on output file): output_file.parent=PosixPath('/batch_jobs/j-75a638311012466b9b9dab491c651716')", "levelname": "INFO", "name": "openeogeotrellis.deploy.batch_job", "created": 1682316530.0419607, "filename": "batch_job.py", "lineno": 252, "process": 74, "job_id": "j-75a638311012466b9b9dab491c651716", "user_id": "dfa678cb9ab17f65d4f025e30fac5e0d90116176e44fd17d703419322747cbbd@egi.eu"}
{"message": "asset_path='openEO.tif', asset_md={'href': 's3://OpenEO-data/batch_jobs/j-75a638311012466b9b9dab491c651716/openEO.tif', 'type': 'image/tiff; application=geotiff', 'roles': ['data'], 'bands': [{'name': 'croptype', 'common_name': None, 'wavelength_um': None, 'aliases': None, 'gsd': None}, {'name': 'probability', 'common_name': None, 'wavelength_um': None, 'aliases': None, 'gsd': None}], 'nodata': 65535, 'datetime': None}", "levelname": "INFO", "name": "openeogeotrellis.deploy.batch_job", "created": 1682316530.0420656, "filename": "batch_job.py", "lineno": 257, "process": 74, "job_id": "j-75a638311012466b9b9dab491c651716", "user_id": "dfa678cb9ab17f65d4f025e30fac5e0d90116176e44fd17d703419322747cbbd@egi.eu"}
{"message": "__main__.get_abs_path_of_asset: asset_filename='openEO.tif', job_dir=PosixPath('/batch_jobs/j-75a638311012466b9b9dab491c651716'), Path.cwd()=PosixPath('/opt'), Path(job_dir).is_absolute()=True, Path(job_dir).exists()=True, Path(asset_filename).exists()=False", "levelname": "INFO", "name": "openeogeotrellis.deploy.batch_job", "created": 1682316530.0421975, "filename": "batch_job.py", "lineno": 392, "process": 74, "job_id": "j-75a638311012466b9b9dab491c651716", "user_id": "dfa678cb9ab17f65d4f025e30fac5e0d90116176e44fd17d703419322747cbbd@egi.eu"}
{"message": "asset_path='openEO.tif' maps to absolute path: abs_asset_path=PosixPath('/batch_jobs/j-75a638311012466b9b9dab491c651716/openEO.tif') , abs_asset_path.exists()=False", "levelname": "INFO", "name": "openeogeotrellis.deploy.batch_job", "created": 1682316530.0423033, "filename": "batch_job.py", "lineno": 279, "process": 74, "job_id": "j-75a638311012466b9b9dab491c651716", "user_id": "dfa678cb9ab17f65d4f025e30fac5e0d90116176e44fd17d703419322747cbbd@egi.eu"}
{"message": "__main__.read_projection_extension_metadata: asset_path=PosixPath('/batch_jobs/j-75a638311012466b9b9dab491c651716/openEO.tif')", "levelname": "INFO", "name": "openeogeotrellis.deploy.batch_job", "created": 1682316530.042347, "filename": "batch_job.py", "lineno": 450, "process": 74, "job_id": "j-75a638311012466b9b9dab491c651716", "user_id": "dfa678cb9ab17f65d4f025e30fac5e0d90116176e44fd17d703419322747cbbd@egi.eu"}
{"message": "__main__.read_gdal_info: asset_uri='/batch_jobs/j-75a638311012466b9b9dab491c651716/openEO.tif'", "levelname": "INFO", "name": "openeogeotrellis.deploy.batch_job", "created": 1682316530.042383, "filename": "batch_job.py", "lineno": 473, "process": 74, "job_id": "j-75a638311012466b9b9dab491c651716", "user_id": "dfa678cb9ab17f65d4f025e30fac5e0d90116176e44fd17d703419322747cbbd@egi.eu"}
{"message": "Could not get projection extension metadata, gdal.Info failed for following asset: '/batch_jobs/j-75a638311012466b9b9dab491c651716/openEO.tif' . Either file does not exist or else it is probably not a raster. Exception from GDAL: /batch_jobs/j-75a638311012466b9b9dab491c651716/openEO.tif: No such file or directory", "levelname": "WARNING", "name": "openeogeotrellis.deploy.batch_job", "created": 1682316530.0451915, "filename": "batch_job.py", "lineno": 485, "process": 74, "job_id": "j-75a638311012466b9b9dab491c651716", "user_id": "dfa678cb9ab17f65d4f025e30fac5e0d90116176e44fd17d703419322747cbbd@egi.eu"}

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

No branches or pull requests

2 participants