Thread: Flinn-Engdahl implementation

Started: 2012-10-25 00:11:12
Last activity: 2012-10-26 00:17:23
Topics: Web Services
Fabien Engels
2012-10-25 00:11:12
Hi,

I would like to translate this script to Python :
ftp://hazards.cr.usgs.gov/feregion/fe_1995/feregion.pl
This is already a Python implementation (though ObsPy) allowing to
query Iris webservice but it can be slow for a bunch of coordinates so
I would like to resolve coordinate to region locally.

What is the language used for the webservice implementation ? If it's
Python, does the code is open ? (To be added to ObsPy)

Cheers,
Fabien


--
Fabien Engels - fabien.engels<at>unistra.fr
Reseau National de Surveillance Sismique
Ecole et Observatoire des Sciences de la Terre
5 Rue Rene Descartes - 67084 Strasbourg France
Tel: +33(0)3.68.85.00.57

  • Rich Karstens
    2012-10-24 15:55:25
    Hello Fabien,

    The IRIS Flinn-Engdahl service's underlying code is indeed the
    feregion.pl PERL script you mention in your email.

    So, it is just PERL under the hood and not Python.

    Regards,

    Rich Karstens

    Fabien Engels <fabien.engels<at>unistra.fr>
    October 24, 2012 8:11 AM
    Hi,

    I would like to translate this script to Python :
    ftp://hazards.cr.usgs.gov/feregion/fe_1995/feregion.pl
    This is already a Python implementation (though ObsPy) allowing to
    query Iris webservice but it can be slow for a bunch of coordinates so
    I would like to resolve coordinate to region locally.

    What is the language used for the webservice implementation ? If it's
    Python, does the code is open ? (To be added to ObsPy)

    Cheers,
    Fabien



    • Fabien Engels
      2012-10-26 00:17:23
      2012/10/24 Rich Karstens <rich<at>iris.washington.edu>

      Hello Fabien,

      The IRIS Flinn-Engdahl service's underlying code is indeed the feregion.plPERL script you mention in your email.

      So, it is just PERL under the hood and not Python.

      Regards,

      Rich Karstens

      Fabien Engels <fabien.engels<at>unistra.fr>
      October 24, 2012 8:11 AM
      Hi,

      I would like to translate this script to Python :
      ftp://hazards.cr.usgs.gov/feregion/fe_1995/feregion.pl
      This is already a Python implementation (though ObsPy) allowing to
      query Iris webservice but it can be slow for a bunch of coordinates so
      I would like to resolve coordinate to region locally.

      What is the language used for the webservice implementation ? If it's
      Python, does the code is open ? (To be added to ObsPy)

      Cheers,
      Fabien



      Thank you for the answer, by any chance do you know the licence of data
      files ?

      --
      Fabien Engels - fabien.engels<at>unistra.fr
      Reseau National de Surveillance Sismique
      Ecole et Observatoire des Sciences de la Terre
      5 Rue Rene Descartes - 67084 Strasbourg France
      Tel: +33(0)3.68.85.00.57

  • Anthony Lomax
    2012-10-25 14:16:12
    Hi Fabien,

    I have a translation to C if this is of interest to you.

    Ciao,

    Anthony


    feregion.c :

    /*

    20110120 AJL - Converted to C from perl source at ftp://hazards.cr.usgs.gov/feregion/fe_1995/

    #!/usr/local/bin/perl -w

    # feregion.pl - returns Flinn-Engdahl Region name from decimal lon,lat values given on command line.

    # Version 0.2 - Bob Simpson January, 2003 <simpson<at>usgs.gov>
    # With fix supplied by George Randall <ger<at>geophysics.lanl.gov> 2003-02-03
    */


    ----- Original Message -----
    From: "Fabien Engels" <fabien.engels<at>unistra.fr>
    To: webservices<at>iris.washington.edu
    Sent: Wednesday, 24 October, 2012 5:11:12 PM
    Subject: [webservices] Flinn-Engdahl implementation

    Hi,

    I would like to translate this script to Python :
    ftp://hazards.cr.usgs.gov/feregion/fe_1995/feregion.pl
    This is already a Python implementation (though ObsPy) allowing to
    query Iris webservice but it can be slow for a bunch of coordinates
    so
    I would like to resolve coordinate to region locally.

    What is the language used for the webservice implementation ? If it's
    Python, does the code is open ? (To be added to ObsPy)

    Cheers,
    Fabien


    --
    Fabien Engels - fabien.engels<at>unistra.fr
    Reseau National de Surveillance Sismique
    Ecole et Observatoire des Sciences de la Terre
    5 Rue Rene Descartes - 67084 Strasbourg France
    Tel: +33(0)3.68.85.00.57
    _______________________________________________
    webservices mailing list
    webservices<at>iris.washington.edu
    http://www.iris.washington.edu/mailman/listinfo/webservices


    --
    =================================================================================
    Anthony Lomax 
    161 Allée du Micocoulier, 06370 Mouans-Sartoux, France 
    tel: +33 (0)4 93 75 25 02     e-mail: alomax<at>free.fr   web: http://www.alomax.net 
    ---------------------------------------------------------------------------------
    ALomax Scientific    http://www.alomax.net/alss   
    Science & Special Topics   http://www.alomax.net/science   
    =================================================================================



    • Fabien Engels
      2012-10-26 00:07:52
      That's could help :)

      Merci d'avance

      2012/10/25 Anthony Lomax <alomax<at>free.fr>:
      Hi Fabien,

      I have a translation to C if this is of interest to you.

      Ciao,

      Anthony


      feregion.c :

      /*

      20110120 AJL - Converted to C from perl source at ftp://hazards.cr.usgs.gov/feregion/fe_1995/

      #!/usr/local/bin/perl -w

      # feregion.pl - returns Flinn-Engdahl Region name from decimal lon,lat values given on command line.

      # Version 0.2 - Bob Simpson January, 2003 <simpson<at>usgs.gov>
      # With fix supplied by George Randall <ger<at>geophysics.lanl.gov> 2003-02-03
      */


      ----- Original Message -----
      From: "Fabien Engels" <fabien.engels<at>unistra.fr>
      To: webservices<at>iris.washington.edu
      Sent: Wednesday, 24 October, 2012 5:11:12 PM
      Subject: [webservices] Flinn-Engdahl implementation

      Hi,

      I would like to translate this script to Python :
      ftp://hazards.cr.usgs.gov/feregion/fe_1995/feregion.pl
      This is already a Python implementation (though ObsPy) allowing to
      query Iris webservice but it can be slow for a bunch of coordinates
      so
      I would like to resolve coordinate to region locally.

      What is the language used for the webservice implementation ? If it's
      Python, does the code is open ? (To be added to ObsPy)

      Cheers,
      Fabien


      --
      Fabien Engels - fabien.engels<at>unistra.fr
      Reseau National de Surveillance Sismique
      Ecole et Observatoire des Sciences de la Terre
      5 Rue Rene Descartes - 67084 Strasbourg France
      Tel: +33(0)3.68.85.00.57
      _______________________________________________
      webservices mailing list
      webservices<at>iris.washington.edu
      http://www.iris.washington.edu/mailman/listinfo/webservices


      --
      =================================================================================
      Anthony Lomax
      161 Allée du Micocoulier, 06370 Mouans-Sartoux, France
      tel: +33 (0)4 93 75 25 02 e-mail: alomax<at>free.fr web: http://www.alomax.net
      ---------------------------------------------------------------------------------
      ALomax Scientific http://www.alomax.net/alss
      Science & Special Topics http://www.alomax.net/science
      =================================================================================


      _______________________________________________
      webservices mailing list
      webservices<at>iris.washington.edu
      http://www.iris.washington.edu/mailman/listinfo/webservices



      --
      Fabien Engels - fabien.engels<at>unistra.fr
      Reseau National de Surveillance Sismique
      Ecole et Observatoire des Sciences de la Terre
      5 Rue Rene Descartes - 67084 Strasbourg France
      Tel: +33(0)3.68.85.00.57


Page built 01:54:55 | v.090361a2