Giter Site home page Giter Site logo

iqbal-ipb / omp-ocean-mixing Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 224 KB

Menghitung dan menampilkan percampuran masa air dengan metode omptimum multiparameter analysis. Kode ini merupakan pengayaan dari kode yang sudah ada dari https://ocefpaf.github.io/python4oceanographers/blog/2014/03/24/watermass/

Python 100.00%

omp-ocean-mixing's Introduction

OMP (Optimum Multiparameter) Ocean Mixing

Menghitung dan menampilkan percampuran masa air dengan metode omptimum multiparameter analysis. Kode ini merupakan pengayaan dari kode yang sudah ada di situs https://ocefpaf.github.io/python4oceanographers/blog/2014/03/24/watermass/ .

Beberapa tambahan yang dibuat yaitu fleksibilitas jumlah masa air yang dihitung (2 atau 3 masa air), letak colorbar, letak peta insert dan diagram TS. Untuk lebih jelasnya dapat dilihat pada penjelasan difile test.py

deskripsi file:

  1. maluku.csv : contoh file data yang digunakan
  2. omp_ipb.py : file class untuk perhitungan omp
  3. test.py : contoh penggunaan class yang telah dibuat.

Installations:

sebelum menggunakan class ini install terlebih dahulu:

  1. python 3
  2. install anaconda
  3. install beberapa modul berikut: pandas, numpy, matplotlib, gsw, brewer2mpl, mpl_toolkits, scipy
  4. Download repo ini, kemudian jalankan test.py (anda dapat menggunakan spyder)

buka_csv(filenya, grid_kedalaman)

 filenya: masukan alamat file CSV anda
 grid_kedalaman : jumlah data dari kedalaman
 
 catatan: pastikan jumlah data keseluruhan = grid_kedalaman * jumlah_stasiun/transek

mixing(T, S, inds)

 T : nilai temperature
 S : Nilai salinitas
 ind : nilai batas masa air

gambar_utama(S, T, depth, latitude, masa_air)

 menghasilkan gambar contourf dari masa air
 
    T : nilai temperature
    S : Nilai salinitas
    depth : data kedalaman
    latitude : data latitude
    masa_air : nilai masa air (hasil dari fungsi mixing)

gambar_colorbar(fig, letak, label)

 menghasilkan colorbar dari setiap masa air
 
    fig : hasil output dari gambar_utama
    letak : 1 -> pojok kiri atas
            2 -> pojok kiri bawah
            3 -> pojok kanan bawah
            4 -> pojok kanan atas
    label  : nama-nama dari masa air

gambar_TS(ax, S, T, cores, labels, jumlah_garis_TS, posisi_judul)

 menghasilkan gambar diagram TS dari data yang diolah
 
    ax : gambar_utama
    S : salinitas
    T : temperature
    cores : nilai masa air
    labels : nama masa air
    jumlah_garis : jumlah garis TS
    posisi_judul : posisi judul sumbu-y (left atau right)

omp-ocean-mixing's People

Contributors

iqbal-ipb avatar

Stargazers

 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.