Skip to content

Instantly share code, notes, and snippets.

@ashiklom
Created July 11, 2016 16:43
Show Gist options
  • Save ashiklom/49ac5f795620de406d2d498320c91eb6 to your computer and use it in GitHub Desktop.
Save ashiklom/49ac5f795620de406d2d498320c91eb6 to your computer and use it in GitHub Desktop.
PEcAn XML and YAML comparison
<?xml version="1.0"?><pecan>
<info>
<notes/>
<userid>1000000001</userid>
<username>Mike Dietze</username>
<date>2016/07/06 20:00:33 -0400</date>
</info>
<outdir>/fs/data2/output//PEcAn_1000002164</outdir>
<database>
<bety>
<user>bety</user>
<password>bety</password>
<host>psql-pecan.bu.edu</host>
<dbname>bety</dbname>
<driver>PostgreSQL</driver>
<write>TRUE</write>
</bety>
</database>
<pfts>
<pft>
<name>deciduous</name>
<constants>
<num>1</num>
</constants>
<outdir>/fs/data2/output//PEcAn_1000002164/pft/deciduous</outdir>
</pft>
</pfts>
<meta.analysis>
<iter>3000</iter>
<random.effects>FALSE</random.effects>
<threshold>1.2</threshold>
<update>AUTO</update>
</meta.analysis>
<ensemble>
<size>1</size>
<variable>NPP</variable>
<start.year>2004</start.year>
<end.year>2004</end.year>
</ensemble>
<model>
<id>1000000002</id>
<type>DALEC</type>
<revision>Quaife Evergreen RSE08</revision>
<delete.raw>FALSE</delete.raw>
<binary>/home/dietze/dalec_EnKF_pub//dalec_seqMH</binary>
</model>
<workflow>
<id>1000002164</id>
</workflow>
<run>
<site>
<id>758</id>
<met.start>2004/01/01</met.start>
<met.end>2004/12/31</met.end>
<name>Harvard Forest EMS Tower/HFR1 (US-Ha1)</name>
<lat>42.5378</lat>
<lon>-72.1715</lon>
</site>
<inputs>
<met>
<source>Ameriflux</source>
<output>DALEC</output>
</met>
</inputs>
<start.date>2004/01/01</start.date>
<end.date>2004/12/31</end.date>
<dbfiles>/fs/data1/pecan.data/dbfiles</dbfiles>
<host>
<name>localhost</name>
<rundir>/fs/data2/output//PEcAn_1000002164/run</rundir>
<outdir>/fs/data2/output//PEcAn_1000002164/out</outdir>
</host>
</run>
<rundir>/fs/data2/output//PEcAn_1000002164/run</rundir>
<modeloutdir>/fs/data2/output//PEcAn_1000002164/out</modeloutdir>
</pecan>
# Converted using http://codebeautify.org/xml-to-yaml
pecan:
info:
notes: ""
userid: 1000000001
username: "Mike Dietze"
date: "2016/07/06 20:00:33 -0400"
outdir: "/fs/data2/output//PEcAn_1000002164"
database:
bety:
user: bety
password: bety
host: "psql-pecan.bu.edu"
dbname: bety
driver: PostgreSQL
write: TRUE
pfts:
pft:
name: deciduous
constants:
num: 1
outdir: "/fs/data2/output//PEcAn_1000002164/pft/deciduous"
"meta.analysis":
iter: 3000
"random.effects": FALSE
threshold: "1.2"
update: AUTO
ensemble:
size: 1
variable: NPP
"start.year": 2004
"end.year": 2004
model:
id: 1000000002
type: DALEC
revision: "Quaife Evergreen RSE08"
"delete.raw": FALSE
binary: "/home/dietze/dalec_EnKF_pub//dalec_seqMH"
workflow:
id: 1000002164
run:
site:
id: 758
"met.start": "2004/01/01"
"met.end": "2004/12/31"
name: "Harvard Forest EMS Tower/HFR1 (US-Ha1)"
lat: "42.5378"
lon: "-72.1715"
inputs:
met:
source: Ameriflux
output: DALEC
"start.date": "2004/01/01"
"end.date": "2004/12/31"
dbfiles: "/fs/data1/pecan.data/dbfiles"
host:
name: localhost
rundir: "/fs/data2/output//PEcAn_1000002164/run"
outdir: "/fs/data2/output//PEcAn_1000002164/out"
rundir: "/fs/data2/output//PEcAn_1000002164/run"
modeloutdir: "/fs/data2/output//PEcAn_1000002164/out"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment