Difference between revisions of "Welcome to Geosciences Modeling Wiki"

From mn/geo/geoit
Jump to: navigation, search
(Editing Source Code)
Line 48: Line 48:
  
 
# use the <nowiki><code> ... </code></nowiki> to show some simple code snippets: <code>def foo(): return</code>
 
# use the <nowiki><code> ... </code></nowiki> to show some simple code snippets: <code>def foo(): return</code>
# The source code extension has been installed, so you can wrap source code examples in <nowiki><source></nowiki> tags. This is helpful for documenting a code example and supports many languages. Usage is simple. Here's an example of how to display some 'Hello World' source code examples:
+
# The source code extension has been installed, so you can wrap source code examples in <nowiki><syntaxhighlight></nowiki> tags. This is helpful for documenting a code example and supports many languages. Usage is simple. Here's an example of how to display some 'Hello World' source code examples:
  
 
<pre><nowiki>
 
<pre><nowiki>
<source lang='cs'>
+
<syntaxhighlight lang='cs'>
 
//Hello World in C#
 
//Hello World in C#
 
class HelloWorld
 
class HelloWorld
Line 61: Line 61:
 
}
 
}
  
</source>
+
</syntaxhighlight>
<source lang='cpp'>
+
<syntaxhighlight lang='cpp'>
 
// Hello World in C++ (pre-ISO)
 
// Hello World in C++ (pre-ISO)
  
Line 75: Line 75:
  
  
</source>
+
</syntaxhighlight>
<source lang='py'>
+
<syntaxhighlight lang='python'>
 
# Hello World in Python
 
# Hello World in Python
 
print("Hello World")
 
print("Hello World")
</source>
+
</syntaxhighlight>
 
</nowiki></pre>
 
</nowiki></pre>
  
 
Results in:
 
Results in:
  
<source lang='cs'>
+
<syntaxhighlight lang='cs'>
 
//Hello World in C#
 
//Hello World in C#
 
class HelloWorld
 
class HelloWorld
Line 96: Line 96:
 
C++
 
C++
 
Back to index
 
Back to index
</source>
+
</syntaxhighlight>
<source lang='cpp'>
+
<syntaxhighlight lang='cpp'>
 
// Hello World in C++ (pre-ISO)
 
// Hello World in C++ (pre-ISO)
  
Line 110: Line 110:
  
  
</source>
+
</syntaxhighlight>
<source lang='py'>
+
<syntaxhighlight lang='python'>
 
# Hello World in Python
 
# Hello World in Python
 
print("Hello World")
 
print("Hello World")
</source>
+
</syntaxhighlight>
  
 
====Other Resources====
 
====Other Resources====

Revision as of 12:02, 2 April 2014

Welcome to the Geosciences LATTICE Wiki. The purpose of these pages is to provide information on software tools available for data analysis and scientific program for LATTICE and other relevant projects. Overall, the objective of this site is to create a 'go to' location where incoming students who will be working with modeling can find tips for getting started.


NOTE: While we are requiring registration, and have the pages hidden from anonymous viewers, the pages are public facing, meaning they may be visible to users outside of NILU. Please be thoughtful when posting scripts or information on the system infrastructure. Jfb 12:50, 14 September 2011 (CEST)

Make a contribution

Here is a list of NeededUpdates. Feel free to tackle something from the list!


Tools and Topics

FLEXPART_Model

Information and resources for running and setting up FLEXPART. Mostly geared toward the ATMOS users.

FLEXINVERT

Bayesian inversion code for use with FLEXPART

ECMWF

Decriptions of how to get data in various ways from the ECMWF server.

Python

A starting point for all-things Python. Provides information on best practices, different packages that are frequently used, and other information to make using Python at NILU easier.

Tools for WorkingOnServers at NILU.

An important resource for anyone using the servers.

General Fortran Tips

Some general usage tips for coding in FORTRAN.

Matlab (Not open source, but extensively used)

Contributions from MATLAB users (mostly related to FLEXPART)

Plone

Content managment system used for displaying FLEXPART forecasts

Editing pages on the niluOS MediaWiki

A good starting place for markup reference can be found here: http://meta.wikimedia.org/wiki/Help:Wikitext_examples

Note that these MediaWiki pages contain a mix of RestructuredText and MediaWiki Markup. RestructuredText is a powerful markup language, and particularly useful for documenting Python code, especially when coupled with Python/Sphinx for making code documentation. However, to gain the navigation features of MediaWiki, it is recommended to use the mediawiki default markup here. Still, if you would prefer RestructuredText then you can use it as well by simply placing your markup between <rst> ... </rst> tags.

Another point is that this wiki is using Subpages, so in places you'll see reference to a <subpages .> tag. This just means that the list of subpages will be dynamically generated in that location.

Editing Source Code

Note that for the purposes of documenting source code there are two important features:

  1. use the <code> ... </code> to show some simple code snippets: def foo(): return
  2. The source code extension has been installed, so you can wrap source code examples in <syntaxhighlight> tags. This is helpful for documenting a code example and supports many languages. Usage is simple. Here's an example of how to display some 'Hello World' source code examples:
<syntaxhighlight lang='cs'>
//Hello World in C#
class HelloWorld
{
    static void Main()
    {
        System.Console.WriteLine("Hello, World!");
    }
}

</syntaxhighlight>
<syntaxhighlight lang='cpp'>
// Hello World in C++ (pre-ISO)

#include <iostream.h>

main()
{
    cout << "Hello World!" << endl;
    return 0;
}



</syntaxhighlight>
<syntaxhighlight lang='python'>
# Hello World in Python
print("Hello World")
</syntaxhighlight>

Results in:

//Hello World in C#
class HelloWorld
{
    static void Main()
    {
        System.Console.WriteLine("Hello, World!");
    }
}

C++
	Back to index
// Hello World in C++ (pre-ISO)

#include <iostream.h>

main()
{
    cout << "Hello World!" << endl;
    return 0;
}
# Hello World in Python
print("Hello World")

Other Resources

Consult the User's Guide for information on using the wiki software. See Also:


/Reference