GithubHelp home page GithubHelp logo

aer-rc / lnfl Goto Github PK

View Code? Open in Web Editor NEW
7.0 4.0 5.0 866 KB

Binary Line File Generator by Atmospheric and Environmental Research

License: Other

Fortran 99.62% Shell 0.06% Dockerfile 0.31%
spectral-analysis atmospheric-modelling radiative-transfer

lnfl's Issues

Errors during Make

Mac OSx Monterey 12.4 with gfortran from gcc
$ make -f make_lnfl osxGNUsgl
gave the following errors:

1195 | CALL BUFOUT (LINMRG,RCDHDR(1),LRC) LN09740
| 2
1196 | CALL BUFOUT (LINMRG,VNU3(1),ILNGTH) LN09750
| 1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/REAL(4)).
../src/lnfl.f:563:29:

563 | CALL CPSTOR_160 (molcpl,npl)
| 1
Error: Actual argument contains too few elements for dummy argument 'molcpl' (38/47) at (1)
../src/lnfl.f:566:29:

566 | CALL CPSTOR_100 (molcpl,npl)
| 1
Error: Actual argument contains too few elements for dummy argument 'molcpl' (38/47) at (1)
../src/lnfl.f:755:26:

755 | CALL BUFOUT (LINFIL,HID(1),NWDLIN) LN04740
| 1
......
1195 | CALL BUFOUT (LINMRG,RCDHDR(1),LRC) LN09740
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (CHARACTER(8)/REAL(4)).
../src/lnfl.f:757:29:

757 | CALL BUFOUT (LINFIL,n_negepp(1),NWDLIN2)
| 1
......
1195 | CALL BUFOUT (LINMRG,RCDHDR(1),LRC) LN09740
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)).
../src/lnfl.f:783:33:

780 | CALL BUFIN (LINMRG,IEOF,RCDHDR(1),LRC) LN04780
| 2
......
783 | CALL BUFIN (LINMRG,IEOF,VNU3(1),ILNGTH) LN04810
| 1
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/REAL(4)).
../src/lnfl.f:827:29:

827 | CALL BUFOUT (LINFIL,VNU3(1),ILNADD)
| 1
......
1195 | CALL BUFOUT (LINMRG,RCDHDR(1),LRC) LN09740
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/REAL(4)).
make[1]: *** [lnfl.o] Error 1
make: *** [osxGNUsgl] Error 2

example TAPE5 files and/or utilities to generate TAPE5 files?

Hi,

I'm working on learning LNFL (finally) and would like to see some example TAPE5 files that work with LNFL. In particular, I'm interested in examples (with angular dependence) for UV, VIS, near-IR, IR, far-IR, and MW. Ultimately this will be used for training transmittance regression coefficients in CRTM.

The old TAPE5 files (~10 years old) that we have generate an error mesage forrtl: severe (64): input conversion error, unit 5, file /data/users/bjohnson/CRTM/LNFL/TAPE5 -- so something is wrong with the formatting.

Also, do TAPE5 files for LBLRTM work with LNFL (this might be the problem is that I'm confusing the two).

Duplicated H2O lines

Hi,

It seems there is at least one other case of duplicated lines, affecting H2O. This was forwarded to me by my colleague, Romain Allart.

A first case is:
1116984.843045 2.010D-24 9.537E-03.0849.3880 325.34790.62-.032000 54 1 6 0 6 5 0 5 3076244 4
1116984.847100 2.074D-24 9.843E-03.0838.3910 325.34790.36-.026200 57 1 6 1 6 5 0 5 3345334 7
These 2 lines have very similar parameters. The line in bold is not in HITRAN 2020.

He also reported that the 2nd line of the following 3 is likely wrong. But this does not look like a duplication:
1115437.809294 2.980D-24 8.061E-03.0948.4340 173.36580.69-.019000 48 1 4 1 3 3 1 2 4672244 7
1115437.856300 5.954D-25 7.045E-03.0832.3910 326.62550.62-.024589 48 1 6 1 6 5 1 5 3342034 7
1115437.893285 3.311D-26 2.026E-04.0769.4120 382.51690.67-.021191 45 1 5 4 1 4 3 2 2342034 7

Best regards,
Alain Smette

LNFL build failed

I build LNFL but it failed, the folder named lnfl_v3.2_linux_gnu_sgl.obj hsa been created but is empty. I use gfortan on linux, take make -f make_lnfl linuxGNUsgl.
The gcc and gfortran version is 11 at first, it failed, I changed it to 9 both, it occured like this:

Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
../src/lnfl.f:580:30:

579 | DO 10 I = 1, mol_max LN03130
| 2
580 | MINDC(I) = MOLCPL(I)
| 1
Warning: Array reference at (1) out of bounds (47 > 38) in loop beginning at (2)

make[1]: *** [makefile.common:404: lnfl.o] Error 1
make[1]: Leaving directory '/home/zhang/LBLRTM/LNFL/build'
make: *** [makefile.common:213: linuxGNUsgl] Error 2

Type mismatch error when compiling LNFL

I have so far been unble to compile LNFL (and LBRTM) on my mac monterey and on ubuntu because of type mismatch problems. I am trying to complie with gfortran version 12.3 on my mac and with version 11.3 on ubuntu. The problem is almost certainly associated with the facty that type mismatch issues are now errors as opposed to warnings as indicated here

today.txt

GCC8 breaks LNFL

Same issue as AER-RC/LBLRTM#9. I'm posting here as a cross-reference in case other people run into errors like

Error: Actual argument contains too few elements for dummy argument ‘molcpl’ (38/47) at (1)
../src/lnfl.f:566:29:

  566 |             CALL CPSTOR_100 (molcpl,npl)
      |                             1
Error: Actual argument contains too few elements for dummy argument ‘molcpl’ (38/47) at (1)
../src/lnfl.f:3817:18:

 3817 |          STR(I) = STR(I)/(VNU(I)*(1.0-EXP(-BETA0*VNU(I))))               LN15580
      |                  1

with gfortran under Ubuntu 20.04 and later.

Editing the makefile similarly to the recommendation in AER-RC/LBLRTM#9 solves the problem.

Line file exception encountered in tape1

I run the LNFL_EXE with TAPE1(downloaded from HITRANonline) in Windows. Some lines were skipped, but I did't do any changes to TAPE1, except to change its name from 5fd07c92.par to TAPE1.
The details are as follows:
pic

LNFL can be completed, but I don't know if the skipping of some lines will affect my subsequent calculation, I like to get your help to find out why lines were skiiped.

Duplicated lines in aer_v_3.8.1

Hi,

It seems to me there are still duplicated lines in aer_v3.8.1.
Indeed, the linux command
uniq -d aer_v_3.8.1 | wc -l
suggests that the file has ~ 53,000 duplicated lines.

I could obtain a cleaned version using
mv aer_v_3.8.1 aer_v_3.8.1_orig
uniq aer_v_3.8.1_orig > aer_v_3.8.1

Or do I miss something?

Best regards, Alain Smette

Error occurs when compling the LNFL.

When I tried to complie the lnfl, it said like this.

...
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1) [-Wconversion]
../src/lnfl.f:580:30:

  579 |          DO 10 I = 1, mol_max                                            LN03130
      |                                                                        2
  580 |             MINDC(I) = MOLCPL(I)
      |                              1
Warning: Array reference at (1) out of bounds (47 > 38) in loop beginning at (2)
make[1]: *** [makefile.common:404: lnfl.o] Error 1
make: *** [makefile.common:371: mingwGNUsgl] Error 2

I'd appreciate for whom might help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.