The list is here to help. Personally, I'm pleased that your interest
in ccc-gistemp is sparking an interest in Python (all science should
be programmed in Python).
> I have limited programming experience (i've done things by hand more
> or less in excel) although I have done some matlab work in the past.
> My hopes is to be able to adjust the code so that I can conduct the
> analysis on a Land-only region given specific Lat/Longs. I would like
> to do this to the data which includes the environment Canada data.
>
> Now I've got some pretty basic questions just for the first steps in
> this whole attempt. I downloaded python 3.1 and I noticed that it has
> a GUI and a command prompt version but I see very little difference
> between the two. I was expecting a user interface similar to Matlab
> which showed the directory I was working with and the .m (or in this
> case .py) files which are in that directory, as well as a screen which
> shows the variables that i've already assigned values to. Is there
> something that I did not install perhaps?
Hmm. ccc-gistemp won't work with Python 3.1 (yet - John Keyes has
done some work on that). Sorry about that, but you need Python 2.7.
Python 3.1 is the way forward in the long term, but meanwhile the
Python 2.x and Python 3.x are sufficiently different that a lot of
software will still only work with Python 2.x. I'm curious, how did
you download Python3.1? On the Python download page it says: "If you
don't know which version to use, start with Python 2.7; more existing
third party software is compatible with Python 2 than Python 3 right
now.". The requirement for Python 2.x is also mentioned in the
ccc-gistemp readme.txt, but perhaps not clearly enough.
GUI. To be perfectly honest, I don't really use GUI programming
environments much, and I've only used Python's GUI a few times (and
I've never used Matlab). But I think you're right, the Python GUI is
just a thin wrapper around the command prompt.
>
> If this sort of interface is not available then I may need some
> instructions on moving to a directory (like where I have all the .py
> files from ccc-gistemp) and subsequently running the .py files.
Are you using Unix (Linux or OS X) or Windows?
Once you've unpacked the tarfile you will need to:
cd ccc-gistemp
(do this from the normal command prompt, not from Python).
the python files are then in two directories: "code" for the core
program; "tool" for all the supporting software including the
input/output routines. As per the readme.txt you can run ccc-gistemp
like this:
python tool/run.py
(do this from inside the ccc-gistemp directory)
> If I have this right I need to use the scraper tool (.py) to scrape
> the GHCN data as well as the Canada data with the same tool?
ccc-gistemp will normally automatically download the GHCN data (and
unfortunately the SST data and USHCN data, even when you're not
intending to use those).
>
> Then afterwards I will make my adjustments to the code (such as
> altering parameters) but I may need instructions on removing the SSTs
> from the data. I could just comment every usage of SSTs out correct?
Much easier than commenting out: The SST data is copied in Step 4 and
combined in Step 5. Skipping out Step 4 removes the SST data. You
can do this by:
python tool/run.py -s 0-3,5
> Sorry about all the questions but i'm just trying to learn.
Really niggly questions are probably best handled by chat, so if you
use IM feel free to add me:
on AIM: dcbtst
on jabber/gtalk: drj...@gmail.com
Do feel free to ask any more questions.
Cheers,
drj