Coder Social home page Coder Social logo

pirate's Introduction

PIRATE

Probabilistic InteRpretation of Altimeter and in-siTu obsErvations

This is a repo with codes for my contribution to the PIRATE project (OST-ST, 2017-2021) on work package entitled: Which observations/locations/timescales are most affected by Low-Frequency Chaotic Intrinsic Variability ?

Content

analysis contains example of scripts to analyse the OCCIPUT data.

src contains the pirate python package to be imported by your scripts.

Usage

Create a dataset where we aggregate all members for a small region and a given month:

import os, glob
import pirate as pr

# List all member files from 1 month:
src_path = "../data/OBS.y2014m06/"
flist = glob.glob(os.path.join(src_path + "ORCA025.L75-OCCITENS.*_enact_fdbk.nc"))

# Create and collect data of the ensemble:
ens = pr.agg.ensemble(flist, lon=[-85, -50], lat=[20, 35])
ds = ens.collect() # This can take a while for a large region

and plot some profile ensemble statistics:

i_obs = 1
pr.plot.ensemble_profiles(ds, i_obs, vnames=['POTM', 'PSAL'])

Local Profiles

i_obs = 3
pr.plot.ensemble_profile_pdf(ds, i_obs, N=15, vname="POTM", obscolor='r')

Local PDF

Sample data

One sample of data can be downloaded from here:

https://storage.googleapis.com/pirate_data/ENS/y2014m06/ORCA025.L75-OCCITENS.y2014m06_EDWregion.nc

Dependencies

The following modules are required: numpy, pandas, xarray

pirate's People

Contributors

gmaze avatar

Watchers

 avatar  avatar  avatar  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.