Skip to content

Conversation

@Synkevych
Copy link
Owner

The user provides 2 files:

  • xml
  • txt
    We download grib data for this calculation, prepare input files and run calculations.

Comment on lines +1 to +24
***************************************************************************************************************
* *
* *
* *
* Input file for the Lagrangian particle dispersion model FLEXPART *
* Please select your options *
* *
* *
* *
***************************************************************************************************************
&RELEASES_CTRL
NSPEC = 1, ! Total number of species
SPECNUM_REL= 16, ! Species numbers in directory SPECIES
/
&RELEASE
IDATE1 = start_date,
ITIME1 = start_time,
IDATE2 = end_date,
ITIME2 = end_time,
LON1 = lon_1,
LON2 = 30.10,
LAT1 = lat_1,
LAT2 = 50.90,
Z1 = 0.00,
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be removed, all .back files and csv_parser

import xml.etree.ElementTree as ET
from subprocess import call

logging.basicConfig(filename="parsing.log", level=logging.INFO,
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file should be in output folder


def parse_command_file():
start_date_time = user_params['start_date_time']
end_date_time = releases_params[-1]['end_date_time'] + timedelta(hours=1)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

incorrect date, should be user_params['end_date_time']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants