[Thread Prev][Thread Next][Index]

Re: [las_users] Can't locate object method "getCategories"



OOps, 
sorry, I did not attach the correct file.
Here it is.

Hello,

I'am back with this bug which occurs on RedHat Linux Fedora core when
running make.

../xml/perl/genLas.pl las.xml
  ...
Serializing file:/usr/local/las-afrique/server/las.xml to database
Building indexes...
Resolving links...
Generating dataset Control run 1 Europe for historic time
Can't locate object method "getCategories" via package "LAS::CompVar" at
../xml/perl/LASServlet.pm line 2408.
make: *** [../ui/config.js] Error 255


I isolated a simple case that triggers this error message (see attached
las.xml file).

The error message disappears if I remove the vector variable or if I
move the <grids> and <axes> sections at the end of the file.

I cannot debug this problem because, when I run the Perl debugger, the
Perl script fails (dies) in another part of the program: the
XML::Parser. I don't know what to think about this. I am not used to
Perl language.

Please, if anyone could help me, it would be appreciated.
If anyone, running LAS on Linux RedHat, could test my sample test file,
I could see if did or did not install correctly all Perl modules.

Thanks,

-- 
Jean-Marie Epitalon
CERFACS
42, av Coriolis
31057 TOULOUSE Cedex
Tel: 05 61 19 30 72
<?xml version='1.0' ?>
<!DOCTYPE spec SYSTEM "spec.dtd" [

<!-- Declaration of operations files to be included -->
<!ENTITY oper SYSTEM "operations.xml">

<!-- Declaration of dataset files to be included -->
<!ENTITY Discendo_grids SYSTEM "Discendo_grids.xml">
<!ENTITY Medias_EP1_datasets SYSTEM "Medias_EP1_datasets.xml">
]>


<lasdata>

 <institution name="CERFACS (Centre Europeen de Recherche et de Formation Avances en Calcul Scientifique"
              url="http://www.cerfacs.fr"/>

 <!-- Default properties for this server -->
 <properties>
  <ferret>
   <land_type>contour</land_type>
   <fill_type>fill</fill_type>
  </ferret>
 </properties>

 <!-- Operations supported by this server -->
 <operations url="http://gascogne.cerfacs.fr/las-bin/LASserver.pl";>
   &oper;
 </operations>

<las_categories>
    <category name="Simulations in Europe (1950-1999)">

        <category name="EP --- Forcings:  Varying: SST                   Fixed (as 1950): GHG, Sul, Nat ">
            <!-- filtre les noms de fichier contenant "Control run" ou "control run" -->
            <filter action="apply-dataset" contains="ontrol run">
                <category name="EP --- Monthly means">
                    <!-- filtre les noms de variables contenant "Monthly" -->
                    <filter action="apply-variable" contains="Monthly">
                  </filter>
                </category>

            </filter>
        </category>

    </category>
</las_categories>

<grids>
 <Medias_volume_monthly_1950_1999_grid>
  <link match="/lasdata/axes/Medias_rectilinear_axis_lon"/>
  <link match="/lasdata/axes/Medias_rectilinear_axis_lat"/>
  <link match="/lasdata/axes/Discendo_level_axis"/>
  <link match="/lasdata/axes/monthly_1950_1999_time_counter"/>
 </Medias_volume_monthly_1950_1999_grid>
</grids>

<axes>

<!-- Time axis 1950 to 1999 -->
 <!-- Monthly -->
 <monthly_1950_1999_time_counter units="months" type="t">
  <arange start="1950-1-1 00:00:00" step="1" size="600"/>
 </monthly_1950_1999_time_counter>

 <!-- Vertical axis -->
 <Discendo_level_axis type="z" units="hPa">

  <v>10
  </v>
  <v>30
  </v>
  </Discendo_level_axis>

<!-- Axe des longitudes pour la grille recti-lineaire centree sur la Sicile -->
 <Medias_rectilinear_axis_lon units="degrees_east" type="x">
  <v>-178.75
  </v>
  <v>-176.25
  </v>
 </Medias_rectilinear_axis_lon>

<!-- Axe des latitudes pour la grille recti-lineaire centree sur la Sicile -->
 <Medias_rectilinear_axis_lat units="degrees_north" type="y">
  <v>-88.75
  </v>
  <v>-86.25
  </v>
 </Medias_rectilinear_axis_lat>

</axes>

<datasets>
<EP1_Historic_time.nc name="Control run 1 Europe for historic time" doc="">
  <properties>
    <ferret>
      <init_script>std_initialize_regrid</init_script>
      <grille>Medias</grille>
      <memsize>27</memsize>
    </ferret>
    <ui>
      <default>file:ui.xml#Discendo</default>
    </ui>
  </properties>

  <variables>

   <ua_1m name="EP1: Eastward wind (Monthly)" units="m.s-1"
    url="file:/home/glo_data/Europe/1950-1999/EP/EP1/ua_1m_195001_199912_EP1.nc#ua">
    <link match="/lasdata/grids/Medias_volume_monthly_1950_1999_grid"/>
   </ua_1m>

   <va_1m name="EP1: Northward wind (Monthly)" units="m.s-1"
    url="file:/home/glo_data/Europe/1950-1999/EP/EP1/va_1m_195001_199912_EP1.nc#va">
    <link match="/lasdata/grids/Medias_volume_monthly_1950_1999_grid"/>
   </va_1m>

</variables>

  <composite>
    <!-- Vecteurs de vents (Monthly) -->

    <wind_vectors_1m name="EP1: Wind vectors (Monthly)">
      <properties>
        <ui>
          <default>file:ui.xml#VecVariable</default>
        </ui>
      </properties>
      <link match="/lasdata/datasets/EP1_Historic_time.nc/variables/ua_1m"/>
      <link match="/lasdata/datasets/EP1_Historic_time.nc/variables/va_1m"/>
   </wind_vectors_1m>

  </composite>

</EP1_Historic_time.nc>
</datasets>

</lasdata>


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement