newfluxdata.rst 999 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
################################################
How to add a new type of flux data to be processed by the CIF into a model's inputs
################################################

.. role:: bash(code)
   :language: bash

0. Have a yaml file ready with a simulation that works with a known flux plugin. For the :bash:`obsoperator`, choose the option :bash:`onlyinit` so that only the inputs are computed, not the whole simulation.

.. code-block:: yaml
    
   obsoperator:
       plugin:
           name: standard
           version: std
       onlyinit: True 

1. Following the instructions for :doc:`adding and registrering a new plugin</devtutos/newplugin/newplugin>`, add and register an empty plugin for the new type of flux data - the example deals with the INS data.

.. code-block:: bash

    cd pycif/plugins/fluxes
    mkdir ins
    cd ins
    touch __init__.py

then, add name and version in __init__.py:

.. code-block:: python
   
   _name = "INS"
   _version = "2012web"

XXXXXXXX