Skip to content

songgz/fvcom-py

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to fvcom-py!

Introduction

fvcom-py is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM.

Prerequisites

Optionally:

  • ipython, version 0.10.2. This makes for a good development environment, particularly when invocated with the -pylab argument, which automatically imports matplotlib.pylab and numpy.

Provides

  • cst_tools - create coastline files for SMS from shapefiles or DHI MIKE arcs.

    • readESRIShapeFile
    • readArcMIKE
  • grid_tools - tools to parse SMS, DHI MIKE and FVCOM unstructured grids.

    • parseUnstructuredGridSMS
    • parseUnstructuredGridFVCOM
    • parseUnstructuredGridMIKE
    • writeUnstructuredGridSMS
    • writeUnstructuredGridSMSBathy
    • writeUnstructuredGridMIKE
    • plotUnstructuredGrid
    • plotUnstructuredGridProjected
    • findNearestPoint
    • elementSideLengths
    • fixCoordinates
    • plotCoast
  • ll2utm - available from http://robotics.ai.uiuc.edu/~hyoon24/LatLongUTMconversion.py.

  • process_FVCOM_results - perform some analyses on FVCOM data read in using read_FVCOM_results.

    • calculateTotalCO2
    • CO2LeakBudget
    • dataAverage
    • unstructuredGridVolume
    • animateModelOutput
    • residualFlow
  • read_FVCOM_results - parse the NetCDF model output and extract a subset of the variables.

    • readFVCOM
    • getSurfaceElevation
  • stats_tools - some basic statistics tools.

    • calculateRegression
    • calculatePolyfit
    • coefficientOfDetermination
  • tide_tools - tools to use and abuse tidal data from an SQLite database of tidal time series.

    • julianDay
    • addHarmonicResults
    • getObservedData
    • getObservedMetadata
    • cleanObservedData
    • runTAPPy
    • parseTAPPyXML
    • getHarmonics
    • getHarmonicsPOLPRED

Installing

In principle, python setup.py should install fvcom-py, though it is untested. Alternatively, download the fvcom-py directory, and add its contents to your PYTHONPATH.

Running

See some examples at https://github.com/pwcazenave/pml-irish-sea/tree/master/python.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published