Giter Site home page Giter Site logo

gogcmd's Introduction

gogcmd

Golang API to fetch GCMD Keywords and format them in a particular way. Applicable for a specific use case only.

GCMD Keywords: https://earthdata.nasa.gov/earth-observation-data/find-data/idn/gcmd-keywords

How to use

If you have Go installed on your system

You can run the script as is. This also gives you the flexibility to generate only some categories by editing the 'concepts' variable.

git clone [email protected]:HarrySng/gogcmd.git
cd gogcmd
mkdir files terms
go run gcmd.go
cd terms
ls -l

If you do not have Go installed on your system

Execute the binary based on your OS and system architecture. Windows 64 bit: gogcmd_windows_amd64.exe Linux 64 bit: gogcmd_linux_amd64

git clone [email protected]:HarrySng/gogcmd.git
cd gogcmd
mkdir files terms
gogcmd_linux_amd64 # Change binary based on your system
cd terms
ls -l

How It Works

  • Keywords are first downloaded in csv format from the static page here: https://gcmd.earthdata.nasa.gov/static/kms/
  • Each category is stores as a separate file in ./files/ by its name.
  • Each record in the csv file is then converted into this specific format:
Raw record: 
"EARTH SCIENCE SERVICES","DATA ANALYSIS AND VISUALIZATION","CALIBRATION/VALIDATION","CALIBRATION","","","","ecf29317-bd5e-447b-b911-f8bfb153c83b"

Formatted record: 
ecf29317-bd5e-447b-b911-f8bfb153c83b
EARTH SCIENCE SERVICES > DATA ANALYSIS AND VISUALIZATION > CALIBRATION/VALIDATION > CALIBRATION
  • The formatted records are written to txt files in ./terms/ by category names.

Contact

For any queries, please reach out to me at [email protected]

gogcmd's People

Contributors

harrysng avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.