Coder Social home page Coder Social logo

cmip's Introduction

PyPI Conda Version Basic Model Interface Test Coverage Status

permamodel

Permamodel is a collection of numerical permafrost models. This repository contains source code and examples for two models:

  • Frost number
  • Ku

For more information, see the project home page: https://permamodel.github.io.

Installation

Permamodel can be installed with pip:

$ pip install permamodel

or with conda:

$ conda install -c conda-forge permamodel

We recommend installing permamodel into a Python virtual environment.

cmip's People

Contributors

mdpiper avatar sc0tts avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cmip's Issues

Get filenames for data with absolute paths

By default, the get_current_ncdata_filename method returns the relative path of a netCDF file in the package's data directory. It should instead return the absolute filepath; else, the file may not be found.

Example

The location of the installed package:

>>> import cmip
>>> cmip.__file__
'/home/csdms/wmt/_testing/conda/lib/python2.7/site-packages/bmi_cmip-0.1.0-py2.7.egg/cmip/__init__.pyc'

From some working directory, make an instance of the BMI-wrapped model:

>>> from cmip.bmi_cmip import BmiCMIPComponentMethod
>>> x = BmiCMIPComponentMethod()

Get the path to the sample config file:

>>> import os
>>> from cmip.tests import examples_directory
>>> cfg_file = os.path.join(examples_directory, 'sample_cmip.cfg')

Try to initialize the model:

>>> x.initialize(cfg_file)
***
print(self._temperature_nc_filename)
/data/SiB_PCF85/SiB_PCF85_data.t12.1902.nc
***
<stack trace omitted>
IOError: No such file or directory

Grid locations should be specified by latitude and longitude

When coupling this component with other components, the values from this model are associated with actual locations on the Earth. A general and grid-independent way to reference locations is latitude and longitude, so there should be a way to associate the grid cells with the latitude and longitude of the locations for which they have data.

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.