Coder Social home page Coder Social logo

archive-test's Introduction

An archive system

Supports metadata and versions

Create a dataset

archive dataset "My Dataset"

# Enter dataset metadata manually

Put a file into the archive
archive put $file --dataset "My Dataset"
Get a file from the archive
archive get $file
Find a dataset

archive find --title "Sample title" --variable "tas" --all-versions

ab123.nc "Title" "Summary"
v20180301T1200 [sha256]
cd456.nc "Title 2" "Summary"
v20180301T1200 [sha256] v20150301T1205 [sha256]

Internal storage is by file content hash for large files

mdss ls archive/objects/ab/cdefi123456

or in a tarball for small files

mdss ls archive/datasets/MyDataset/0000.tar

The dataset directory contains a sqlite database index.db describing the contents

This gets downloaded into a cache directory when performing operations

Database Schema

File id sha256 location put_date get_date get_count

FileMetadata id filename title summary keywords time_start time_end

VariableMetadata id file_id name standard_name units dimensions

  • Handle storing data fresh from a model run

    archive put --dataset ${RUNID} ${FILES}

  • Get stats

    archive usage

    Show usage by dataset Including old files

  • Web interface to search through catalouge?

MVP:

archive init --dataset ${ID} archive put --dataset ${ID} ${FILE} archive get --dataset ${ID} ${FILE} archive list

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.