10.4.1_peseiGFS_025bugfixes+enhancementsdevrelease-10release-10.4.1scaling-bug
Last change
on this file since 3481cc1 was
3481cc1,
checked in by Ignacio Pisso <ip@…>, 4 years ago
|
move license from headers to a different file
|
-
Property mode set to
100644
|
File size:
1.9 KB
|
Line | |
---|
1 | integer function detectformat() |
---|
2 | |
---|
3 | !***************************************************************************** |
---|
4 | ! * |
---|
5 | ! This routine reads the 1st file with windfields to determine * |
---|
6 | ! the format. * |
---|
7 | ! * |
---|
8 | ! Authors: M. Harustak * |
---|
9 | ! * |
---|
10 | ! 6 May 2015 * |
---|
11 | ! * |
---|
12 | ! Unified ECMWF and GFS builds * |
---|
13 | ! Marian Harustak, 12.5.2017 * |
---|
14 | ! - Added routine to FP10 Flexpart distribution * |
---|
15 | !***************************************************************************** |
---|
16 | ! * |
---|
17 | ! Variables: * |
---|
18 | ! fname file name of file to check * |
---|
19 | ! * |
---|
20 | !***************************************************************************** |
---|
21 | |
---|
22 | use par_mod |
---|
23 | use com_mod |
---|
24 | use class_gribfile |
---|
25 | |
---|
26 | |
---|
27 | implicit none |
---|
28 | |
---|
29 | character(len=255) :: filename |
---|
30 | character(len=255) :: wfname1(maxwf) |
---|
31 | integer :: metdata_format |
---|
32 | |
---|
33 | ! If no file is available |
---|
34 | if ( maxwf.le.0 ) then |
---|
35 | print*,'No wind file available' |
---|
36 | detectformat = GRIBFILE_CENTRE_UNKNOWN |
---|
37 | return |
---|
38 | endif |
---|
39 | |
---|
40 | ! construct filename |
---|
41 | filename = path(3)(1:length(3)) // trim(wfname(1)) |
---|
42 | |
---|
43 | ! get format |
---|
44 | detectformat = gribfile_centre(TRIM(filename)) |
---|
45 | |
---|
46 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.