Difference between revisions of "Windows hints, tips, and tricks"

From CoolWiki
Jump to navigationJump to search
m
Line 21: Line 21:
 
We are assuming most MOPEX users are on a unix-based (unix, linux, mac) machine, which is recommended not just for the tricks and things listed in the other pages (such as [[Make a simple mosaic]]), but also for speed and reliability.  Several of the items below will help with running MOPEX on windows.
 
We are assuming most MOPEX users are on a unix-based (unix, linux, mac) machine, which is recommended not just for the tricks and things listed in the other pages (such as [[Make a simple mosaic]]), but also for speed and reliability.  Several of the items below will help with running MOPEX on windows.
  
'''IF YOU RUN INTO PROBLEMS''' running MOPEX on windows that are not listed here, please check the [http://ssc.spitzer.caltech.edu/postbcd/bug-mopex.html bugs list for MOPEX] and try the solutions listed there.  If you have a more ... interesting bug, please mail detailed information (windows version, amount of memory, speed of processor, version of MOPEX, AORKEY you were working on, and detailed error message information) to the SSC helpdesk at help@spitzer.caltech.edu.
+
'''IF YOU RUN INTO PROBLEMS''' running MOPEX on windows that are not listed here, please check the [http://ssc.spitzer.caltech.edu/postbcd/bug-mopex.html bugs list for MOPEX] and try the solutions listed there.  If you have a more ... interesting bug, please mail detailed information (windows version, amount of memory, speed of processor, version of MOPEX, AORKEY you were working on, and detailed error message information) to the SSC helpdesk at help@spitzer.caltech.edu.  You want to give them  enough information to reproduce your error exactly. If they can't reproduce it, they can't solve it.
  
 
=cygwin dll collision=
 
=cygwin dll collision=

Revision as of 17:14, 19 June 2008

Unzipping files

You need to unzip the files that Leopard puts on your disk. You should be able to simply double-click on the zip file to make it work. You might need to install a program such as Winzip.

On a Windows XP it turns out not to be so easy. There is an embedded/native unzip program built into Windows XP. To use from Windows explorer you click and highlight a single zip file that you would like to unzip. Then from the File menu click on Extract All and the Extraction Wizard will lead you through the steps and extract your file. You will need to select the folder to extract to (same as the folder name is what I picked).

But this method does not seem to work with unzipping many files at one time.

To unzip a large group of zipped files I believe the only way is to download a program like winzip pro

I used download.com to get the trial version of Winzip 11.1. After downloading and installing the program then you can unzip many files at one time.

1. In Windows explorer click on the folder that has all of the zip folders. In the right hand window should be a list of all of the zip folders. Click on the first folder in the list holding down Shift click on the last folder. This will highlight all of the files.

2. Go the file menu and then to Winzip and to Extract to here.

After some time you will find all of the unzipped files in folders just like when you unzip the files on any other platform.

MOPEX

We are assuming most MOPEX users are on a unix-based (unix, linux, mac) machine, which is recommended not just for the tricks and things listed in the other pages (such as Make a simple mosaic), but also for speed and reliability. Several of the items below will help with running MOPEX on windows.

IF YOU RUN INTO PROBLEMS running MOPEX on windows that are not listed here, please check the bugs list for MOPEX and try the solutions listed there. If you have a more ... interesting bug, please mail detailed information (windows version, amount of memory, speed of processor, version of MOPEX, AORKEY you were working on, and detailed error message information) to the SSC helpdesk at help@spitzer.caltech.edu. You want to give them enough information to reproduce your error exactly. If they can't reproduce it, they can't solve it.

cygwin dll collision

as of June 14, 2008, we had an error where mopex was complaining about a cygwin dll collision, telling us we needed a more recent version than we have, except that we had JUST downloaded and installed it.

Here are some steps you can try:

  1. Locate the following directory: C:\Program Files\mopex\platform\windows\bin
  2. Copy the "cygwin1.dll" into the directory above (C:\Program Files\mopex\platform\windows\bin)

The method will work on a Win XP PC if MOPEX was requesting a newer cynwin1.dll. However, I cannot reproduce the same "cygwin dll collision" problem on a Vista machine.

This bug may be fixed in a future version of MOPEX.


Getting file lists

MOPEX in particular needs as input lists of files. I have lots of tricks I use to get file lists, but most of my tricks use tools available for unix-based systems, such as redirects, grep, sed, and awk. To make those tools work on windows systems, you should download and install the Cygwin package (http://www.cygwin.com). This would give you a UNIX-like terminal window, from which to execute unix commands like

  % ls -1c > list.txt

Installation is fairly straightforward.

Alternatively, to get a file list, you could just

  $ dir *fits

and then copy and paste into WordPad. Of course, this isn't as powerful.

APT

Again, APT runs much more easily on a Mac, but it does run on Windows too. We have found two different ways to install APT. Option one is to download and install the Cygwin package (http://www.cygwin.com) and then follow the directions on the APT page.

Option two follows:

Go to a command prompt in Windows XP. To do this click on Start > All Programs > Accessories > Command Prompt

This should bring up a text window with the following or similar prompt:

 C:\Documents and Settings\Username>

Then type:

 C:\Documents and Settings\Username>java -version

You should see a response like

 java version "1.6.0_03"
 Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
 Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode)

If your java version is less than 1.6.0_03, you must first download and install the JDK from www.sun.com.

Now pick a directory and install the APT program. You will need to "untar" it since it comes in "tar" format which is a way to combine multiple directories (it comes from the days of data tapes and stands for "tape archive.")

If your machine does not recognize that format, go to the following site and install this free tar program: http://www.7-zip.org/

Click on the first download .exe file and then install it.

Once installed, you should run it on the APT tar file and get a directory named APT_windows_v0.98 with a subdirectory of APT_v0.98 (or whatever the current version is).

Now you need to go back to the command prompt. In it go to the directory APT_v0.98 (or whatever the current version is).

So if you have installed it in the "Program Files" directory type the following:

 C:\Documents and Settings\Username> cd \Program Files\APT_windows_v0.98\APT_v0.98

Then you should see this prompt:

 C:\Program Files\APT_windows_v0.98\APT_v0.98>

Then type:

 C:\Program Files\APT_windows_v0.98\APT_v0.98> java APT

This should start the program.