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

Error when calling shaded_relief_ob = RFT(shaded_relief_rft) in shipwrecks_detection_using_bathymetric_data.ipynb #1882

Open
jonmarrs opened this issue Jul 31, 2024 · 1 comment
Assignees
Labels

Comments

@jonmarrs
Copy link

Describe the bug
I get the following error when I call: shaded_relief_ob = RFT(shaded_relief_rft)

Unable to find the arguments for the current raster function template. This might be because the server could not process the template or the template is invalid.(Ensure that the user account has access to Raster Utilities of the server. To share the Raster utilities to all user accounts. Please refer Sharing Raster Utilities section in https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.raster.functions.RFT.html )

To Reproduce
Steps to reproduce the behavior:

import os
from pathlib import Path
from datetime import datetime as dt

from arcgis.gis import GIS
from arcgis.raster.functions import RFT  
from arcgis.learn import prepare_data, MaskRCNN

gis = GIS('https://pythonapi.playground.esri.com/portal', 'arcgis_python', 'amazing_arcgis_123')

bathymetry_img = gis.content.get('442df8b8b26d41c598e4e8953e9257ca')
bathymetry_img

training_data_wrecks = gis.content.get('d9c02b5835b540e09e378c779ec3c17d')
training_data_wrecks

shaded_relief_rft = gis.content.get('b9b7c724601c4bd1946c8e2bfe4d640d')
shaded_relief_rft

shaded_relief_ob = RFT(shaded_relief_rft)

error:

Unable to find the arguments for the current raster function template. This might be because the server could not process the template or the template is invalid.(Ensure that the user account has access to Raster Utilities of the server. To share the Raster utilities to all user accounts. Please refer Sharing Raster Utilities section in https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.raster.functions.RFT.html )

Screenshots
image

Expected behavior
The RFT() function should work, but it returns an error message instead due to being unable to find the arguments for the current raster function template.

Platform (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome
  • Python API Version: 2.3.0

Additional context
Jupyter Notebook: shipwrecks_detection_using_bathymetric_data.ipynb
https://github.com/Esri/arcgis-python-api/blob/master/samples/04_gis_analysts_data_scientists/shipwrecks_detection_using_bathymetric_data.ipynb

@jonmarrs
Copy link
Author

jonmarrs commented Aug 9, 2024

One issue is that I think the data is missing from the server (https://pythonapi.playground.esri.com/portal).

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

No branches or pull requests

2 participants