Skip to content

It is a client program accessing the Big Data Open Platform of Korea Institute of Geoscience and Mineral Resources.

License

Notifications You must be signed in to change notification settings

lowbontimp/stp-kigam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stp-kigam.pl

stp-kigam.pl is a version modified from stp-iris.pl for the Big Data Open Platform of Korea Institute of Geoscience and Mineral Resources.

Installation

Perl library

PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'install +LWP::UserAgent'
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'install +Date::Calc::XS'
PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'install +LWP::Protocol::https'

How to make a key (token)

Join the Big Data Open Platform at

https://data.kigam.re.kr/auth/join?lang=en

Some of terms for joininig it is written in Korean (21 March 2023).

Request an authorization key (token) at

https://data.kigam.re.kr/my-openapi/request/

You might need a static IP address.

Save your authorization key at the home

mkdir -p ~/.stp-kigam
echo your_token > ~/.stp-kigam/token
chmod 600 ~/.stp-kigam/token

How to use stp-kigam.pl

See the page of stp-iris.pl

FDSN Web services

The Big Data Open Platform can be also accessed in a general way after a slight modification of the HTTP's header, 'X-Open-Api-Token', as like a tutorial at https://data.kigam.re.kr/quake/data/web-services (written in Korean, accessed on 21 March 2023).

Self-controlling rate of connection

Guidelines for IRIS DMC services are requiring no more than 5 concurrent connections and no more than 10 connections per second. Avoid running too many processes of stp-iris.pl simultaneously. stp-iris.pl sleeps for a while when the averaged number of connections exceeds a threshold. Removing or changing this part in stp-iris.pl needs carefulness.

About

It is a client program accessing the Big Data Open Platform of Korea Institute of Geoscience and Mineral Resources.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published