home
Intel386/Linux/Gnome/bash environment 4SM work environment





Call for business partners
My goal
is to bring to market a new and operational solution

to the use of multispectral or hyperspectral remote sensing imagery

for the assessment and management of the coastal zone habitats.


4SM presently has over 30,000 lines of ANSI C++ code in one single 4SM.c source code.  

  •   Plain programming: I am not a trained programmer.

  • Controlled by a bash script command line, no graphic interface yet.

  • Processed up to 17 wavebands fairly large hyperspectral mosaic

  • File structure: 4SM supports PCIgeomatica image formats File interleaving and Band interleaving.

  • Needs to be consolidated, to be made available to WinXP users, and to support some other upmarket image processing environments like ENVI, ERDAS, ERMAPPER, ...

up




My offer
apart from the four free 4SM tutorials:

  • CDROM: in the directory "test" of my CDROM (yeah! get hold of it, send a copy to your colleagues!), you can find my full work directory for the following images:
    • tutorials for tarawa, arcachon, tmnov and negril
    • TM and ETM
      • the data is not copyrighted
      • run/Modify my script for free
    • IKONOS: Clipperton, Dubai, Lee Stocking, and Heron: 
      • the 16U channels are void
      • if you hold the 16U data these images, import the 16U channels into database.pix and run/modify my script for free
  • More tutorials for a price
  • Your image: I want to work on your image, interact with you.

  • SUPER USER for two years: 
    • cpuid is a program to find the CPUID information of the Intel or AMD x86 processors
    • I can grant you unlimited and free use of executable 4SM for two years
      •  on your Intel or AMD x86 machine through Linux's cpuid command.
  • FTP upload: if you provide me with access to your ftp site, then I can upload my CDROM
  • FTP download: if you provide me with access to your ftp site, then I can download your image, process it on my machine, and then upload the result onto your ftp site hopefully the next day.

    • prefered format is .img or GEOTIF
    • raw U8 or U16 data, NOT atmospherically corrected, NOT enhanced
    • UTM georeferenced
    • with relevant seatruth data: 
      • depth sounding lines are prefered to depth soundings
  • Corporate VPN = PRIVACY 

    • I have some experience of working on a corporate computer  through a Virtual Private Network:
      • They had set up Linux/ggv/cpuid and PCI on their corporate MS-Windows Intel-386 system, and given me Read/Write/Execute permissions on one of their directories.
      • Through a broadband connection, I was able to open a session on their machine, and process several of  their hyperspectral images over the week end: they were ready for the next monday morning!
      • That was from my hotel room; it could as well have been from my home. I really enjoyed working this smartest of ways: it was most efficient.
    • ==> Send me the details for a VPN setup on my WinXP (or Ubuntu-Linux) session, and I shall endeavour to process your image in my allocated directory on your Intel-386 machine over a broadband connection. This needs the following system calls to work: gedit, ggv, chmod, rm, mkdir, dir, cp, zip, bzip2, gcc, whoami, cpuid
      • No fuss: your image/seatruth data are protected: I can't copy them out of my allocated directory
      • Monitor: you can monitor the progress as I process your image
      • Communication: we can interact  as I process your image
      • Fastest: you can inspect the results in real time
  • Free 4SM license: I want to grant you free 4SM license for your image, in exchange for a copy of your image and sea-truth data.
  • Free 4SM license: how about I get a copy of  five of your existing favorite images,  complete with a copy of your sea-truth data. In return:
    • I process these images, complete with sea-truth exercise 
    • I send you back the result of this work on CD, complete with  PCI file.pix,  4SM executable code,  4SM command line, and ancillary files
    • You grant me permission to use this work for promotional purpose
    • I grant you a free license for your next five images of comparable license cost.
  • Customized tutorials: I can put together 4SM tutorials for your favorite study cases.
  • Teaching students: I have experience in teaching shallow water modeling
    • This needs a full day, then one or two days for practicals.
    • Why not I teach your students through some kind of teleconferencing? 
    • We could even put together and advertise a tutorial DVD.
  • GPL: after so many years in isolation, I might as well release 4SM under some flavor of GPL license.  I just need some encouragements and support.
you name it: we need to talk
up


? Where is the market ? 

As of  january 2009, 4SM is a 14 years development.
Can you afford to invest in such a lengthy development? 

Shall you postpone your shallow water applications until something like 4SM comes in the open for free? 

Is it possible that there is no commercial potential in this application? 

Why is nobody prepared to pay for a training in 4SM, for the use of  4SM?

We need to team up.

up


My workstation   
intel386 core duo 32 bits  Ubuntu Linux gnome desktop bash
  • My workstation: Toshiba P300  Intel 386 portable PC: Intel Centrino Core Duo 2.4 GHz, 4 GB RAM, 17" screen 1440*900.

  • My operating system:   Ubuntu Linux_32 bits/Gnome/bash.  Ubuntu Linux is "for human beings", it is free, it installs like a dream in "dual boot" on a Windows XP/Vista machine. I say: go for it!

  • 4SM code  is  proprietary ; it is written and compiled in ANSI C++.

  • 4SM system calls: 4SM calls some executables or Linux commands
    • gmtset , psbasemap, pstext , psxy, and psscale: 4SM  writes some scripts which call a few modules of  GMT from U. of Hawaii (please note that GMT may be installed using Ubuntu's Synaptic Package Manager). These executables are included in the     4sm.calls.zip zipfile
    • shp2text: using this executable, 4SM converts shapefiles to textfile SHP.txt, for use with the -Recode argument. This executable is included in the   4sm.calls.zip zipfile
    • wget, kghostview and cpuidinstall them  using Ubuntu's Synaptic Package Manager
    • kghostview: default PostScript viewer in 4SM. If you use another viewer, you have to place a -Calls/epsviewer_yourviewer argument in your commandline
    • firefox: default browser in 4SM. If you use another browser, you have to place a -Call/browser_yourbrowser argument in your commandline
    • gedit: default text editor in 4SM. If you use another texteditor, you have to  place a -Call/texteditor_yourtexteditor  argument in your commandline
    • chmod, rm, mkdir, dir, cp, zip, bzip2, whoami come with the Linux distribution
    • cpuid: if you want to become a superuser of 4SM
    • wget: if you want to download/update a mirror copy of 4SM website on your computer/network
  • Compiler: 4SM is compiled under Linux/Gnome/bash: " gcc -lm -w code.c o binary"
  • Image format: image.pix from PCIgeomatica, whether  band-interleaded or file-interleaved.

  • Image preparation and display: 

    • I formerly used ImageWorks and EASI from PCI

    • Now I only use OpenEV for image display.  I still need evidence that it is time and worth for me to purchase a PCI license.

    • I would like to develop a GUI with Qt Designer or GLADE in order to manage the 4SM command line.



4SM session screen, working on image Landsat tmnov.pix
This 1440*900 screen display shows
  • the tmnov tutorial command line script, 
  • the OPENEV display of the tmnov.pix image created through 4SM's_MakePIX, complete with georeferencing
  • and some of my XTERM terminal where tmnov.pix image is being processed.
  • This demonstrates that the OPENEV solution is workable for all, and FREE!
  • Accelerated X graphics is advisable though, as OPENEV tends to hang: see "OpenEV Performance Tuning: Accelerated OpenGL Support" in OPENEV's Help

Linux flavour
  • I tend to think that 4SM should work fine with any flavour of Linux.
    • I use the GNOME environment in 32-bits Ubuntu-Intrepid-Ibex dual-boot install
    • if at all possible, do the same, unless you have good reasons
  • Ask your computer admin to check  that 
    • 4SM.2.06 executable runs: your CPU must be able to run the executables that run on my own Intel Centrino CoreDuo CPU 32 bits Linux install: 
    • if in doubt, grab a Toshiba Satellite laptop or similar
    • 4SM's system calls can be satisfied:
      • gmtset , psbasemap, pstext , psxy, and psscale  work fine
      • shp2text works fine
      • gedit works fine
      • kghostview works fine
      • cpuid works fine
    • OPENEV works fine, FWTOOLS is only available in 32 bits for Linux or for Windows
  • Chances are that your local flavour of Linux should be OK.
  • UBUNTU: it's only that I was so much relieved when I came across Ubuntu three years ago, after years of meddling on my own with RedHat, then Fedora: now I can really be an administrator on my own laptop:
    • I only do basic things
    • almost everything basic in Ubuntu has been made "for human beings"!
64 bits
  • 64 bits is new ground to me.
    For now, 4SM, OPENEV and ancillary executables are all 32 bits executables for Linux.
    Your sysadmin is the one to teach us about these concerns.
  • Sorry: 64bits Ubuntu requires an AMD processor!  
  • Or may be not
  • My machine can do both 64 and 32 bits.
    When installing Ubuntu_Intrepid_Ibex  three months ago, I installed in 32
    bits. They also offer a 64 bits install: I should try that some day on my
    same P300 Toshiba machine.
  • 4SM executable
    • My present 4SM.2.06 executable on my website is compiled on a 32 bits
      dual-boot install of Ubuntu_Intrepid_Ibex.
  • System calls
    But then you have to worry whether the system calls will work: 
    • kghostview
    • the GMT executables: psbasemap, pstext, psxy, psscale, pstext, gmtset, 
    • shp2text
    • OPENEV
  • I think that's the end of it for now: stick tyo 32 bits!
Linux kernel
  • The Linux kernel sets the rules
  • Obviously you want to run 4SM.2.06 under a recent Linux version: mine is uptodate.
  • Running an old executable 
    • that had been compiled on my 10 years old Toshiba with a 10 years old outdated
      RedHat install
    • on my present setup 
    • showed that 
      • it started OK, 
      • then complained that it could not find some library, and aborted.
install Ubuntu over Windows
  • Three months ago, I tried to install Ubuntu over my MS-Vista 32 bits: that failed to install. I need to try harder.
  • Ubuntu is Ubuntu: I can't see why operating Ubuntu over Windows should prevent any of 4SM's executables to run properly.
    • That's worth checking, though
Screen resolution
  • Mine is 17" 1400 * 900: best is that you have similar resolution
    • a standard Toshiba Satellite L300 is 15.4" 1280 * 800
    • now I have to worry that other poeple might not have that much real estate on their screen!
  • I tend to use it liberally
    • shrinking my 4SM displays so that they fit a smaller screen resolution might take a lot of time.
  • You can reduce the font size of your GNOME terminal: 
    • mine is Monospace size 10
    • to configure your GNOME Terminal, choose "Edit ▸ Current Profile"


Path and aliases
some of my favorite /etc/bash.bashrc (I don't bother with .bashrc in my home directory)

PATH="$PATH:~/software/FWTools-1.1.0/bin_safe"
export PATH MANPATH

alias which="type -path"
alias bashrc=" sudo gedit /etc/bash.bashrc"
alias aliasetc="gedit /etc/bash.bashrc &"
alias sourcetc="source /etc/bash.bashrc "

alias gc="gnome-commander &"
alias te="gedit "
alias mv="mv -i  "
alias cp="cp -i  "
alias rm=" rm -i  "
alias rmforce="rm -f  "
alias getridof="rm -f -r  "
alias cpr="bzip2 "
alias ucp="bunzip2 "
alias dir="ls -l    -k --color "
alias dirw="ls -l    -k --color; pwd "
alias dira="ls -l -a -k --color "
alias dirs="ls    -a -k --color "
alias cmall="chmod a-x *; chmod a+x *sh*; chmod a+x 4SM*; chmod a+x .*; chmod a+rw *; dira"
alias df="df -m "
alias showdu="du -k  | sort -nr > du.txt; te du.txt &"
alias ym="cd /home/ymorel;   dira ; df; pwd "
alias home="cd /home/ymorel;   dira ; df; pwd "
alias openev="openev -h &"
alias freeview="wine /home/ymorel/.wine/drive_c/Program\ Files/Freeview_V100/exe/FreeView.exe &"
alias gimp="gimp &"
alias leg="/cp -r ~ymorel/leg ."
alias legsave="/cp -r leg ~ymorel/."
alias 4smgmt="cp ~ymorel/4SM/4smGMT/4sm.calls.zip ."


up


  WINDOWS USERS

  •  Either install Linux in dual boot on your machine, and use Wine or CrossOver or ... under Linux to run your WinXP PCI license. I use Wine to run PCI's FreeView.

  • Or install a Linux-like environment  CygWin or CyGnome under Windows to execute 4SM under bash.

    • I have used a simple install of CygWin under WinXP to compile and execute 4SM successfully.
    • I should better like to use a real install of CyGnome.
PCI's FreeView display under Linux/wine
This 1440*900 screen display shows
  • the arcachon tutorial command line script, 
  • the OPENEV display of the arcachon.pix image created through 4SM's_MakePIX, 
  • and some of my XTERM terminal where arcachon.pix image is being processed.
This demonstrates that you can use your MS-Windows PCI license
while working under Linux!

It could as well be your ERDAS, ERMAPPER, ENVI, IDRISSI, ILLWIS, TIN, or ... 
license for
MS-Windows,
provided it can import or view a PCIDSK formated image.


home up