> 1) when I run the perl script I obtained a file clc_landuse.dat
> containing only 0 values (this maybe is caused by my very low perl
> knowledge)
> I overwent this problem simply replacing with an editor the 255 values
> with 44, but I'm not sure that the final form of the file I have is
> the same of the Marco's one.
Yes, it should be. The rationale behind the perl script is that it must
change the land use code data type from a real to an integer one (es.
12.0000000 -> 12) in order to let ctgproc read it without errors.
After that, it changes all missing/255 values to sea-ocean/44 ones,
again because in ctgproc this is used as the index of an array with 44
values to translate land-use codes.
These two operations are ok even if you do them in other ways (es. by
using a text editor).
Please note that in the mail I've sent, you've found a two line perl
command that should really be just one line! That line wrapping was done
by my mail client, not by me...
> 2) I was not able to compile ctgproc.for
> I'm under Linux platform and I'm using the intel ifort compiler
> version 10.1.008.
> The warning and error messages were, respectively, of the type:
> ....
> fortcom: Warning: snow.ctg, line 24: Because of COMMON, the alignment
> of object is inconsistent with its type [IDATEEND]
> & ,idatebeg,idateend,idate,istart
> ------------------^
> fortcom: Error: ctgproc.for, line 4880: Not a valid value for the
char-
> expr in this connect-spec. ['transparent ']
> open(unit=iogshhs,file=gshhsin,access=caccess,form=cform,
> --------------------------------------------^
> compilation aborted for ctgproc.for (code 1)
You can ignore the first warning... I've had that too and I think it's a
little bug in the snow cover handler part of the code...
The second issue that blocks you, that error happened even to me. It's a
lahey fortran compiler specific open option. This option should instruct
the open intrinsic function to handle a simple binary file (not a
fortran one).
In my case (with gfortran), I've resolved this issue by changing
"transparent" with "stream" in the params.ctg file...
> I know that some changes should be made in calutils.for and in
> params.ctg but I worryed that I'm using the wrong ones since no
> options were available for the ifort compiler.
Here is the complete differences list between the plain source files and
the one I've changed (with even calutils.for diffs). Please, note that
these changes do work with gfortran but I haven't tested them with other
compilers:
diff -ru v3.0.orig/calutils.for v3.0/calutils.for
--- v3.0.orig/calutils.for 2009-05-11 15:51:23.000000000 +0200
+++ v3.0/calutils.for 2010-04-12 09:42:02.000000000 +0200
@@ -2879,7 +2879,7 @@
c ------------------
c --- Lahey compiler
c ------------------
- call getcl(ctext)
+c call getcl(ctext)
c
c ----------------------
c --- COMPAQ DF compiler
diff -ru v3.0.orig/ctgproc.for v3.0/ctgproc.for
--- v3.0.orig/ctgproc.for 2009-06-08 21:01:53.000000000 +0200
+++ v3.0/ctgproc.for 2010-05-04 15:37:11.000000000 +0200
@@ -480,14 +480,11 @@
data itab /16,21,21,21,21,21,31,32,33,33,
1 41,41,42,42,43,52,62,61,
2 77,82,81,85,83,91/
- data nzcat /55,8*0,16,
- 1 14,8*0,21,
- 2 22,8*0,43,
- 3 43,8*0,32,
- 4 2*0,61,6*0,52,
- 5 9*0,62,
- 6 62,8*0,75,
- 7 72,74/
+ data nzcat /11,11,15,14,14,14,75,17,16,17,
+ 1 17,21,21,21,22,22,22,21,24,24,
+ 2 24,24,41,42,43,31,32,32,32,72,
+ 3 74,77,77,91,62,61,62,62,62,51,
+ 4 52,54,54,55/
data nlcd92/10*0,
1 52,91,8*0,
2 11,11,13,7*0,
@@ -1856,7 +1853,7 @@
c --- Open Input Data File
if(lulc(kf).eq.2.or.lulc(kf).eq.4) then
open(ioinp,file=luindat(kf), status='old',form=cform,
- 1 access=caccess, recl=irecl)
+ 1 access=caccess)
else
open(ioinp,file=luindat(kf), status='old')
endif
@@ -2164,13 +2161,15 @@
call CTRANS(kf,xdum,xdum,xdum,xdum,ltrans,caction,vecti,vecto)
c --- Read each record
-3 read(ioinp,*,end=999) nobs,nzlu,rnlat,relon
+3 read(ioinp,*,end=999) relon,rnlat,nzlu
nrec=nrec+1
nread=nread+1
c --- Convert the NZ landuse class,
-c --- catching '0' at edge of domain and resetting to '1'
- if(nzlu.eq.0) nzlu=1
+ if(nzlu.lt.1 .or. nzlu.gt.44) then
+ print *,'Original land use category is out of range:',nzlu
+ stop
+ endif
lucat=nzcat(nzlu)
c --- Convert Lat/Lon to grid km
@@ -4878,7 +4877,7 @@
c Open the GSHHS full-resolution file
c
open(unit=iogshhs,file=gshhsin,access=caccess,form=cform,
- & status='OLD',recl=irecl)
+ & status='OLD')
c
c Check if the current machine is BIG-ENDIAN
c
diff -ru v3.0.orig/params.ctg v3.0/params.ctg
--- v3.0.orig/params.ctg 2009-05-22 15:59:35.000000000 +0200
+++ v3.0/params.ctg 2010-05-04 12:21:11.000000000 +0200
@@ -13,7 +13,7 @@
parameter (iogshhs=31,iobln=32)
parameter (iosnow=33,iosng=34,iolug=35)
parameter (mc = 24)
- parameter (mzct=72)
+ parameter (mzct=44)
parameter (mnlcd = 99)
parameter (mxcoast=10000,mxcoastp=1000000)
parameter (mxfil=250)
@@ -27,7 +27,7 @@
c ----------------------
c --- Lahey F95 Compiler
c ----------------------
- parameter(cform='unformatted', caccess='transparent', irecl=1)
+ parameter(cform='unformatted', caccess='stream', irecl=1)
c ----------------------
c --- Compaq DF Compiler
c ----------------------
Ciao,
Marco
Thank you for your attention
Silvia
--
Dott.SILVIA MALTAGLIATI, PhD in Ingegneria Energetica
Articolazione Funzionale Regionale - Modellistica Previsionale
ARPAT- Via Ponte alle Mosse 211
50144 FIRENZE
Tel 0553206028 Fax 0553206218
-----Messaggio originale-----
Da: european-calpuff-us...@googlegroups.com
[mailto:european-calpuff-us...@googlegroups.com] Per conto
di Silvia Maltagliati
Inviato: lunedì 21 giugno 2010 19.13
A: european-calpuff-us...@googlegroups.com
Oggetto: joining the forum
Silvia
Nessun virus nel messaggio in arrivo.
Controllato da AVG - www.avg.com
Versione: 9.0.829 / Database dei virus: 271.1.1/2927 - Data di rilascio:
06/21/10 08:36:00
-----Messaggio originale-----
Da: european-calpuff-us...@googlegroups.com [mailto:european-calpuff-us...@googlegroups.com] Per conto di Silvia Maltagliati
Inviato: Monday, June 21, 2010 7:13 PM
A: european-calpuff-us...@googlegroups.com
Oggetto: joining the forum
Dear all,
I have a basic question about time coherence between simulation and
observation data:
do the surface data at a time correspond to the previous or to the next
hour?
for example: wind at 21 means meand wind measured during 20-21 or 21-22?
(the same for upper data?)
thanks!
Silvia
you can read the email Joe Scire sent me about this topic, and I think it's quite clear and useful.
Hope it's helpful for you too.
Nicola
------------------------
Da: Scire, Joseph (Lowell,MA-US) [mailto:JSc...@TRCSOLUTIONS.com]
Inviato: Thursday, May 06, 2010 3:00 AM
A: Nicola Mezzadri
Oggetto: RE: tIME ZONE
Nicola,
There are two ways time zones are used in the CALPUFF system programs. The new way used in most programs is as an explicit text string such as "UTC+0100" which would be for Italy. This method is clear and unambiguous.
The second way time zones are entered (the old way, but it is still how some programs work) is to treat the time zone as an integer number. When the time zone is an integer, the convention used is western hemisphere used a positive value and the eastern hemisphere uses negative value, so the time zone for Italy in the integer format would be -1.
To summarize:
Time Zone (new format) Time Zone (old integer format)
UTC+0100 -1 (Italy)
UTC+0200 -2
UTC+0300 -3
UTC+0000 0 (GMT)
UTC-0500 5 (Eastern Standard Time USA, e.g., Boston)
UTC-0600 6 (Central Standard Time USA, e.g., Chicago)
I hope this is clear.
Joe
------------------------------------------
Joseph S. Scire, CCM
TRC
Vice President, Atmospheric Studies Group,
650 Suffolk Street,
Lowell, Massachusetts 01854
USA
tel: (978) 656-3627
mobile: (978) 697-0830
fax: (978) 453-1995
email: jsc...@trcsolutions.com
or jsc...@alum.mit.edu
-----Messaggio originale-----
Da: european-calpuff-us...@googlegroups.com [mailto:european-calpuff-us...@googlegroups.com] Per conto di Francesca
Inviato: Wednesday, September 15, 2010 3:23 PM
A: european-calpuff-user-discussion-group
Oggetto: Re: timing in suface data files
Dear members
Dear Riccardo,
I think you have to establish yourself a riclassification rule knowing A) CLC classes B) USGS land use classes (Table 8.6 and 8.7 on pages 8.58 and 8.59 in CALPUFF Modeling System Version 6 User Instructions (April 2011))
Regards
Nicola
Da: 'Riccardo Giannone M.Sc. Chemical Engineering' via european-calpuff-user-discussion-group [mailto:european-calpuff-us...@googlegroups.com]
Inviato: Monday, July 18, 2016 12:05 PM
A: european-calpuff-user-discussion-group
Cc: stefan...@gecosistema.eu; ricardota...@gmail.com
Oggetto: Re: Land Use Land Cover Data
--
You received this message because you are subscribed to the Google Groups "european-calpuff-user-discussion-group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to european-calpuff-user-dis...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Dear Riccardo,
I think you have to establish yourself a riclassification rule knowing A) CLC classes B) USGS land use classes (Table 8.6 and 8.7 on pages 8.58 and 8.59 in CALPUFF Modeling System Version 6 User Instructions (April 2011))
Regards
Nicola
Da: 'Riccardo Giannone M.Sc. Chemical Engineering' via european-calpuff-user-discussion-group [mailto:european-calpuff-user-discussion-group@googlegroups.com]
Inviato: Monday, July 18, 2016 12:05 PM
A: european-calpuff-user-discussion-group
Cc: stefan...@gecosistema.eu; ricardota...@gmail.com
Oggetto: Re: Land Use Land Cover Data
Dear members
I am Riccardo Giannone, a chemical engineer, and I am learning calpuff (CALPro on Windows xp) in order to use it for my job in an Environmental Engineering Company.
I am in trouble with ctgproc, in particular with the Corine 2006 data. I have found that the Data need to be converted in USGS format with a GIS software (I am using GRASS GIS) but it needs a file with reclassification rules.
Where can i find this file?
Regards
Riccardo
--
You received this message because you are subscribed to the Google Groups "european-calpuff-user-discussion-group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to european-calpuff-user-discussion-group+unsubscribe@googlegroups.com.