Skip to content

Comments

Include Squeegee method from Helene#1

Open
josteinblyverket wants to merge 4 commits intometno:masterfrom
josteinblyverket:master
Open

Include Squeegee method from Helene#1
josteinblyverket wants to merge 4 commits intometno:masterfrom
josteinblyverket:master

Conversation

@josteinblyverket
Copy link
Collaborator

  1. More modular version of the Squeegee method
  2. Settings for running on centos and redhat


if __name__ == "__main__":

expdirs='/lustre/storeB/project/nwp/H2O/wp4/SURFEX_offline/open_SURFEX_V8_1/MY_RUN/KTEST/'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use argparse and set these as arguments

expnam=['mebglac_albevol']
variables = ['RUNOFFC_ISBA', 'DRAINC_ISBA']

myP, proj_string, fPREP, fPGD, FORCING = getDomainData(expdirs)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Get the domain from a domain definition. You can also use pysurfex, or add it into pysurfex

# LRESETCUMUL = .true. in NAM_WRITE_DIAG_SURFn
# see https://www.umr-cnrm.fr/surfex/spip.php?article406 )
# so need to deaccumulate
if expnam[i] in ['nm12snowl', 'nmdtB07','nmSOC','nbni','s']:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should be an option

stations['GauID']=stations.GauID+'.0'


def readShapeFiles(shapefiles):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shapefile reading is also implemented i pysurfex

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