Error while running SPHY v2.2.1

124 views
Skip to first unread message

pradeep s

unread,
May 24, 2024, 8:29:53 AM5/24/24
to SPHY-model-user
Hi all,

I get a Python error when running the SPHY model version 2.2.1. The model is run using Anaconda with Python version 2.7.18 and PC raster 4.1.0.
 
The error is :
TypeError: cannot do label indexing on <class 'pandas.core.indexes.base.Index'> with these indexers [8] of <type 'int'> 


Kindly help me to resolve the issue.

Thanks,
Pradeep
Screenshot 2024-05-22 231443.png

WilcoTerink

unread,
Jun 14, 2024, 1:40:46 PM6/14/24
to SPHY-model-user
Hi,

My guess is that there is something wrong with the glacier input table or associated maps. Have you tried running it without the glacier module on?

pradeep s

unread,
Jun 14, 2024, 2:03:04 PM6/14/24
to SPHY-model-user
Hi Wilco,

Thank you for the response. 

I found out the cause for the error. There was a mistake in the T_lapse file I was providing as input. I had mention the names of the month instead of giving them as integer numbers. Once I changed it to numbers, the issue was resolved.

Regards,
Pradeep

Reply all
Reply to author
Forward
0 new messages