Welcome, Guest
Username: Password: Remember me

TOPIC: UTM Zone 31 error

UTM Zone 31 error 5 years 2 months ago #34566

  • olslewfoot
  • olslewfoot's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 132
  • Thank you received: 3
Hi All
I have just started using v8p0r2 for an existing T3D simulation (from v7p3r1)

On parsing the steering file, I get a python error with the UTM zone selection 31 when I run with V8P0R2:

The value for ZONE NUMBER IN GEOGRAPHIC SYSTEM (31)is not among the choices:
{'-1': 'NO DEFAULT VALUE', '2': 'LAMBERT 2 CENTER', '1': 'LAMBERT 1 NORTH', '4': 'LAMBERT 4 CORSICA', '93': 'LAMBERT 93', '22': 'LAMBERT 2 EXTENDED', '3': 'LAMBERT 3 SOUTH', '30': 'UTM ZONE, E.G.'}

Im using python 2.7. When using v7p3r1 the model runs successfully. Are there any script amendments? This should be an allowable option I think?

Best Regards
John
The administrator has disabled public write access.

UTM Zone 31 error 5 years 2 months ago #34570

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1559
  • Thank you received: 602
Hello,

Since v8p0, there has been a script that checks the choices in the dictionary if there are allowed or not. If the choice is not present, you may get this error message. As there are 60 choices for UTM, they are not all written. One solution for you is to delete the groups of lines with the CHOIX and CHOIX1 in the dictionary, i.e. deleting the following lines in sources/telemac3d/telemac3d.dico and sources/telemac2d/telemac2d.dico if you also use TELEMAC-2D:

CHOIX =
'-1="PAS DE VALEUR PAR DEFAUT"';
'1="LAMBERT 1 NORD"';
'2="LAMBERT 2 CENTRE"';
'3="LAMBERT 3 SUD"';
'4="LAMBERT 4 CORSE"';
'22="LAMBERT 2 ETENDU"';
'93="LAMBERT 93"';
'30="ZONE UTM, PAR EXEMPLE"'
CHOIX1 =
'-1="NO DEFAULT VALUE"';
'1="LAMBERT 1 NORTH"';
'2="LAMBERT 2 CENTER"';
'3="LAMBERT 3 SOUTH"';
'4="LAMBERT 4 CORSICA"';
'22="LAMBERT 2 EXTENDED"';
'93="LAMBERT 93"';
'30="UTM ZONE, E.G."'

Hope this helps,

Chi-Tuan
The administrator has disabled public write access.
The following user(s) said Thank You: olslewfoot, cyamin

UTM Zone 31 error 5 years 2 months ago #34571

  • olslewfoot
  • olslewfoot's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 132
  • Thank you received: 3
Thank you very much - that will solve the problem.
The administrator has disabled public write access.
Moderators: pham

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.