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

An error about the palettes #5

Open
caomy7 opened this issue Feb 6, 2024 · 1 comment
Open

An error about the palettes #5

caomy7 opened this issue Feb 6, 2024 · 1 comment

Comments

@caomy7
Copy link

caomy7 commented Feb 6, 2024

93 # Set visualisation parameters
94
---> 95 palettes = oeel.requireJS('users/gena/packages:palettes')
96 palette_DEM = palettes.kovesi.diverging_bwr_40_95_c42[7]
97

/usr/local/lib/python3.10/dist-packages/oeel/oeel.py in requireJS(self, libPath)
293 return external.externalEEjs(self.nodeSocket,os.getcwd()+'/'+libPath).libInterface;
294 else:
--> 295 raise self.oeelMissingRequireFile('No file at :'+os.getcwd()+'/'+libPath);
296 getattr = dotCall
297

oeelMissingRequireFile: No file at :/content/users/gena/packages:palettes

@12rambau
Copy link
Member

12rambau commented Feb 6, 2024

I checked the following code in my code editor and it's still working as expected:

var palettes = require('users/gena/packages:palettes');

// Load some raster data: CONUS mean daily max temperature for January 2010
var tmax = ee.Image('OREGONSTATE/PRISM/AN81m/201001').select('tmax');

// Get a palette: a list of hex strings
var palettes = require('users/gena/packages:palettes');
var palette = palettes.misc.tol_rainbow[7];
 
// Display max temp with defined palette stretched between selected min and max
Map.addLayer(tmax, {min: -11, max: 25, palette: palette}, 'tmax');

I guess the problem is not related to this repository and should be reported to https://github.com/open-geocomputing/OpenEarthEngineLibrary

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