<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.wiki.mohid.com/index.php?action=history&amp;feed=atom&amp;title=LAS</id>
		<title>LAS - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.wiki.mohid.com/index.php?action=history&amp;feed=atom&amp;title=LAS"/>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=LAS&amp;action=history"/>
		<updated>2026-04-04T20:39:28Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=LAS&amp;diff=385&amp;oldid=prev</id>
		<title>Guillaume: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=LAS&amp;diff=385&amp;oldid=prev"/>
				<updated>2008-12-03T10:27:11Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 10:27, 3 December 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;' lang='en'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Guillaume</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=LAS&amp;diff=384&amp;oldid=prev</id>
		<title>192.168.20.177: /* How to initialize the tomcat server */</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=LAS&amp;diff=384&amp;oldid=prev"/>
				<updated>2008-06-23T13:49:06Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;How to initialize the tomcat server&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[LAS]] is an [http://en.wikipedia.org/wiki/Acronym acronym] for '''L'''ive '''A'''ccess '''S'''erver. It's an [http://en.wikipedia.org/wiki/User_interface UI] oriented to serve large datafiles. It uses [[OpenDAP]]. The [[MOHID]] uses [[LAS]] in order to distribute its datafiles to project partners or other endusers. The [[LAS]] official webpage is found at http://ferret.wrc.noaa.gov/Ferret/LAS/.&lt;br /&gt;
&lt;br /&gt;
== Quick start user's guide ==&lt;br /&gt;
&lt;br /&gt;
=== From [http://www.epic.noaa.gov/java/ncBrowse/ ncBrowse] ===&lt;br /&gt;
&lt;br /&gt;
# Download and install the latest version of the [http://java.sun.com/j2se/ Java platform] from [http://java.sun.com/ Sun].&lt;br /&gt;
# Download and install the latest version of [http://www.epic.noaa.gov/java/ncBrowse/ ncBrowse].&lt;br /&gt;
# Run [http://www.epic.noaa.gov/java/ncBrowse/ ncBrowse].&lt;br /&gt;
# Go to ''file --&amp;gt; LAS'' and enter the [http://en.wikipedia.org/wiki/Url URL] http://data.mohid.com/las-bin/LASserver.pl.&lt;br /&gt;
# Select the desired dataset.&lt;br /&gt;
# Select a desired variable.&lt;br /&gt;
# You can now browse the variable at will in ncBrowse.&lt;br /&gt;
&lt;br /&gt;
=== From a web-browser ===&lt;br /&gt;
&lt;br /&gt;
# Open your favorite web-browser and write down http://data.mohid.com:8080/las/servlets/dataset.&lt;br /&gt;
# Select a dataset.&lt;br /&gt;
# Select variables then clik ''next''.&lt;br /&gt;
# Select a region with the interactive map, a time window and a [[ROI]] (or view).&lt;br /&gt;
# Select the desired output. It can be in binary or ascii format, or it can be a color plot.&lt;br /&gt;
# Click ''next'' and you should get in a few moments the results.&lt;br /&gt;
&lt;br /&gt;
Note: the color plot is delivered [http://en.wikipedia.org/wiki/On_the_fly on-the-fly] by [http://ferret.wrc.noaa.gov/Ferret/ Ferret]. It can be customized.&lt;br /&gt;
&lt;br /&gt;
== Developper's guide ==&lt;br /&gt;
&lt;br /&gt;
This guide is intended to intranet users only.&lt;br /&gt;
&lt;br /&gt;
=== How to login to data.mohid.com ===&lt;br /&gt;
&lt;br /&gt;
[http://en.wikipedia.org/wiki/Ssh Ssh] data.mohid.com (guest:guest). Then enter as root (''su root''). You are now able to manage the LAS server. Windows users are recommended to use [http://en.wikipedia.org/wiki/PuTTY PuTTy ].&lt;br /&gt;
&lt;br /&gt;
=== How to initialize the [[tomcat]] server ===&lt;br /&gt;
&lt;br /&gt;
Sometimes the [[tomcat]] server may be down even if you made a clean reboot. You have then to initialize it manually. To do so, perform the start command below.&lt;br /&gt;
&lt;br /&gt;
* start: /home/guillaume/public_html/las/startserver.pl&lt;br /&gt;
* stop: /home/guillaume/public_html/las/stopserver.pl&lt;br /&gt;
&lt;br /&gt;
Or you could initialize it from the http://data.mohid.com/las.xml page.&lt;br /&gt;
&lt;br /&gt;
=== How to properly initialize the LAS ===&lt;br /&gt;
* Make sure the prerequisites are met.&lt;br /&gt;
* &amp;gt;./configure&lt;br /&gt;
The configure script will install a lot of perl modules. Should they fail, then install them manually. Use ''perl -MCPAN -e shell; install [module];'' or ''yum [perl-mod-rpm-package]''.&lt;br /&gt;
*Add the following lines to ''httpd.conf'' accordingly to your installation directory:&lt;br /&gt;
 ScriptAlias  /las-bin/ /home/guillaume/public_html/las/server/&lt;br /&gt;
 Alias /las-output/ /home/guillaume/public_html/las/server/output/&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;Directory &amp;quot;/home/guillaume/public_html/las/server&amp;quot;&amp;gt;&lt;br /&gt;
     AllowOverride None&lt;br /&gt;
     Options ExecCGI&lt;br /&gt;
     Order allow,deny&lt;br /&gt;
     Allow from all&lt;br /&gt;
 &amp;lt;/Directory&amp;gt;&lt;br /&gt;
*Un/commented the following lines in ''httpd.conf'' (this step may be superfluous):&lt;br /&gt;
 &amp;lt;IfModule mod_userdir.c&amp;gt;&lt;br /&gt;
     ...&lt;br /&gt;
     #UserDir disable&lt;br /&gt;
     ...&lt;br /&gt;
     UserDir public_html&lt;br /&gt;
     ...&lt;br /&gt;
 &amp;lt;/IfModule&amp;gt;&lt;br /&gt;
*Restart ''httpd''&lt;br /&gt;
*Perform the following permissions in ''/home'':&lt;br /&gt;
 &amp;gt; [[sudo]] chown -R guillaume:apache guillaume&lt;br /&gt;
 &amp;gt; sudo chmod -R 755 guillaume&lt;br /&gt;
*Restart the las tomcat&lt;br /&gt;
*Perform a simple test from ''/home/guillaume/public_html/las'':&lt;br /&gt;
 &amp;gt; ./bin/lasget.pl  -x -10:10 -y -30:-20 -z 0 -f txt -o salt.txt &lt;br /&gt;
 http://data.mohid.com/las-bin/LASserver.pl levitus_climatology_cdf salt&lt;br /&gt;
*Whenever an httpd error occurs, check the log file:&lt;br /&gt;
 &amp;gt; sudo tail -f /var/log/httpd/error_log&lt;br /&gt;
'''NOTE: typically, the issue comes down to permission problems: make sure the group of the full las path is the httpd group (apache) and make sure the full las path gets 755 permissions.'''&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
'''Can't create debug file log/debug (protection problem?)'''&lt;br /&gt;
The CGI process that creates the plots needs permission to write in the las/server directory and a  few of its sub-directories. &lt;br /&gt;
The best way to do that is to give group ownership and group write  permission to match the group that the Apache HTTPD process is running under. &lt;br /&gt;
The following  commands run in the $lasroot/ directory should do the trick, where &amp;quot;group&amp;quot; is the  group as above.&lt;br /&gt;
  &lt;br /&gt;
 &amp;gt; chgrp group server server/log server/output server/dods server/dods/.dods_cache&lt;br /&gt;
 &amp;gt; chgrp group server/log/* server/output/* server/dods/.dods_cache/*&lt;br /&gt;
 &amp;gt; chgrp group server/dods/.dodsrc&lt;br /&gt;
 &amp;gt; chmod g+w server server/log server/output server/dods server/dods/.dods_cache&lt;br /&gt;
 &amp;gt; chmod g+w server/log/* server/output/* server/dods/.dods_cache/*&lt;br /&gt;
 &amp;gt; chmod g+w server/dods/.dodsrc&lt;br /&gt;
&lt;br /&gt;
=== How to add datasets in LAS ===&lt;br /&gt;
Make sure that ''mohid.nc'', the dataset to share, exists in /var/data/mohid.nc. Then perform the following operations:&lt;br /&gt;
 &amp;gt; source /usr/local/ferret_paths&lt;br /&gt;
 &amp;gt; cd $lasroot/server&lt;br /&gt;
 &amp;gt; addXml.pl -n http://data.mohid.com/opendap/nph-dods/mohid.nc -x las.xml mohid&lt;br /&gt;
Change the las.xml file so it includes the mohid.xml&lt;br /&gt;
 &amp;gt; touch las.xml&lt;br /&gt;
 &amp;gt; make&lt;br /&gt;
That should do it!&lt;br /&gt;
&lt;br /&gt;
However for purposes of operational models, such as Mercator-IST, you can simply actualize the [[LAS]] from the web page http://data.mohid.com/las.xml. Find and use the las.php script.&lt;br /&gt;
&lt;br /&gt;
=== How to change the categories in LAS ===&lt;br /&gt;
&lt;br /&gt;
Key files: &lt;br /&gt;
* $lasroot/server/las.xml. This file contains the las configuration. The datasets xml files and the categories xml file are includes.&lt;br /&gt;
* $lasroot/server/catex.xml. This file is the xml to include in las.xml that defines the categories.&lt;br /&gt;
&lt;br /&gt;
Actions:&lt;br /&gt;
#  &amp;gt; source /usr/local/ferret_paths&lt;br /&gt;
#  &amp;gt; cd $lasroot/server&lt;br /&gt;
# Edit the las.xml and catex.xml at will. See the [http://ferret.pmel.noaa.gov/LASdoc/serve/cache/33.html LAS documentation].&lt;br /&gt;
#  &amp;gt; touch las.xml&lt;br /&gt;
#  &amp;gt; make&lt;br /&gt;
# That's it. Go to http://data.mohid.com:8080/las/servlets/dataset to see if it worked. If errors appear then go to #2.&lt;br /&gt;
&lt;br /&gt;
=== How to change options in the LAS ui ===&lt;br /&gt;
&lt;br /&gt;
Key file:&lt;br /&gt;
* $ lasroot/server/ui.xml. This file contains the user-interface configuration.&lt;br /&gt;
* $ lasroot/server/options.xml. This file contains the user-interface options configuration.&lt;br /&gt;
Actions:&lt;br /&gt;
#  &amp;gt; source /usr/local/ferret_paths&lt;br /&gt;
#  &amp;gt; cd $lasroot/server&lt;br /&gt;
# Edit the options.xml at will. See the [http://ferret.wrc.noaa.gov/Ferret/LAS/Documentation/manual/xmlconfig.html LAS documentation].&lt;br /&gt;
#  &amp;gt; touch las.xml&lt;br /&gt;
#  &amp;gt; make&lt;br /&gt;
# That's it. Go to http://data.mohid.com:8080/las/servlets/dataset to see if it worked. If errors appear then go to #2.&lt;br /&gt;
&lt;br /&gt;
=== How to change Ferret default properties ===&lt;br /&gt;
Here's how to change the default value in the options ui for the ferret land_fill option (you can see this [http://ferret.wrc.noaa.gov/Ferret/LAS/Documentation/manual/customize.html#Ferret_properties document]).&lt;br /&gt;
Edit the ''las.xml'' and add the properties tag&lt;br /&gt;
 &amp;lt;lasdata&amp;gt;&lt;br /&gt;
   &amp;lt;properties&amp;gt;&lt;br /&gt;
        &amp;lt;ferret&amp;gt;&lt;br /&gt;
            &amp;lt;land_type&amp;gt;none&amp;lt;/land_type&amp;gt;&lt;br /&gt;
        &amp;lt;/ferret&amp;gt;&lt;br /&gt;
   &amp;lt;properties&amp;gt;&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
=== Where to find ferret scripts ===&lt;br /&gt;
&lt;br /&gt;
LAS ferret scripts are to be found in&lt;br /&gt;
 $ lasroot/las/server/jnls&lt;br /&gt;
&lt;br /&gt;
=== How to add a banner in the LAS website ===&lt;br /&gt;
&lt;br /&gt;
Edit the &lt;br /&gt;
 $lasroot/las/las_servlet/jakarta/webapps/las/VM_global_library.vm&lt;br /&gt;
Here's an example:&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
  &amp;lt;!------  Begin of Banner ------&amp;gt;&lt;br /&gt;
      &amp;lt;form method=&amp;quot;POST&amp;quot; name=&amp;quot;search&amp;quot; action=&amp;quot;search&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td valign=&amp;quot;center&amp;quot; align=&amp;quot;right&amp;quot; background=&amp;quot;../images/Mohid_Logo_banner_small.gif&amp;quot;&amp;gt;&lt;br /&gt;
               &amp;lt;a href=&amp;quot;$req.getContextPath()-FDS/LAS/&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;OPeNDAP (FDS)&amp;lt;/a&amp;gt; |&lt;br /&gt;
               &amp;lt;a  href=&amp;quot;javascript:showInfo('THREDDS Catalog')&amp;quot;&lt;br /&gt;
                         onMouseOver=&amp;quot;window.status='Click for help'; return true&amp;quot;&lt;br /&gt;
                         onMouseOut=&amp;quot;window.status=''; return true&amp;quot;&lt;br /&gt;
                        &amp;gt;THREDDS&amp;lt;/a&amp;gt; |&lt;br /&gt;
                &amp;lt;a href=&amp;quot;index&amp;quot;&amp;gt;Index&amp;lt;/a&amp;gt; | Search: &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;terms&amp;quot;&amp;gt;&lt;br /&gt;
                &amp;lt;a href=&amp;quot;&amp;quot; onMouseOver=&amp;quot;status='Search';return true&amp;quot; onClick=&amp;quot;return stuffForm('search','search')&amp;quot;&amp;gt;&amp;lt;image border=&amp;quot;0&amp;quot; src=&amp;quot;../images/go.gif&amp;quot; alt=&amp;quot;Go&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;hidden&amp;quot; name=&amp;quot;nexturl&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;td&amp;gt;&amp;lt;img src=&amp;quot;../images/no.gif&amp;quot; width=&amp;quot;0&amp;quot; height=&amp;quot;75&amp;quot;&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
      &amp;lt;/tr&amp;gt;&lt;br /&gt;
      &amp;lt;/form&amp;gt;&lt;br /&gt;
  &amp;lt;!------    End of Banner ------&amp;gt;&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
'''Problem: The LAS server goes down (along with the tomcat/jakarta server) when the java option is disabled in the web-browser. In other working LASes, this error doesnt happens. The tomcat logs give&lt;br /&gt;
 Gtk-WARNING **: cannot open display'''&lt;br /&gt;
&lt;br /&gt;
Solution: Install the java virtual machine from sun, and activate the java option in the web-browsers. However this solution isn't entirely satisfactory.&lt;br /&gt;
&lt;br /&gt;
'''Problem: When I restart the LAS from php and bash scripts I get javaclass exception errors.'''&lt;br /&gt;
&lt;br /&gt;
Solution: There's a 90% chance that this is a permission error. Probably some critical file got owned by root and now your apache-owned scripts don't work. Here's how you can check it out:&lt;br /&gt;
From the las root type:&lt;br /&gt;
 &amp;gt; ll -R | grep root&lt;br /&gt;
 &amp;gt; ll -R | grep maretec&lt;br /&gt;
No results should have returned. Otherwise if some root owned file returned, then you need to give them back to user apache of group apache:&lt;br /&gt;
 &amp;gt; sudo chown -R apache:apache *&lt;br /&gt;
Now you can return to [http://data.mohid.com/las.xml] and click on the reboot link and see if it worked.&lt;br /&gt;
&lt;br /&gt;
'''Problem: The las.php script returns an error about one of the datasets when restarting and the LAS interface is down.'''&lt;br /&gt;
&lt;br /&gt;
Solution: 40% of chance that the netcdf dataset file is invalid. Another 40% of chance that the netcdf dataset was invalid but was meanwhile replaced with by a valid dataset, and yet, the error still persists when ''las.php'' script is run. To solve the latter persistent problem, you need to remove the persistent LAS xml file corresponding to that dataset:&lt;br /&gt;
 &amp;gt; cd /home/guillaume/public_html/las/server&lt;br /&gt;
 &amp;gt; mv mercator200?????DomainProperty.xml mercator200?????DomainProperty.xml.bak &lt;br /&gt;
Then run the ''las.php'' again, and you should be fine.&lt;br /&gt;
&lt;br /&gt;
==External references==&lt;br /&gt;
*[http://ferret.pmel.noaa.gov/Ferret/LAS/ LAS homepage]&lt;br /&gt;
*[http://ferret.pmel.noaa.gov/LASdoc/serve/cache/42.html LAS error messages]&lt;br /&gt;
&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	</feed>
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  ga('create', 'UA-56589921-5', 'auto');
  ga('send', 'pageview');
</script>