drounce / pygem Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi,
When I install PyGEM according to https://github.com/drounce/PyGEM/wiki/1.-Getting-Started
in Ubuntu, I type
$ conda env create -f=pygem_v2.yml
$ conda activate pygem_v2.yml
And then in this environment
$ python --version
gives me
Python 2.7.15
However, for PyGEM I need Python 3.6.
How can I solve this issue with pygem environment?
Hello, Professor Drounce. When I was preparing the data for the Qiyi Glacier (RGI=13.32330), I couldn't find its Debris data(https://n5eil01u.ecs.nsidc.org/HMA/HMA_DTE.001/2000.01.01/). Please how to solve it.
Hi David,
I got errors when doing the first step, `python run_calibration.py -option_parallels=0`, of Frontal ablation calibration (Advanced Test- Tidewater Glaciers).
Here is the error information:
`pygem.shop.mbdata: AssertionError occurred during task mb_df_to_gdir on RGI60-01.03622: mb_clim_mwea not a column in mb_df`
Actually there is no column named mb_clim_mwea in the file **df_pergla_global_20yr-filled.csv**. I am wondering if `mb_clim_mwea = mb_mwea`, under this situation? If yes, another condition statement might be needed in the ~ Line191-196, Or?
Besides a typo error, in the manual "Update datasets and recalibrate model parameters",
update the pygem_input.py, might be `hugonnet_fn = ‘df_pergla_global_20yr-filled-facorrected.csv`’ not `hugonnet_fn = ‘df_pergla_global_20yr-filled-FAcorrected.csv’
`
Hi, I've added support for the files you provided me in OGGM/oggm#1031
This creates a netdf file in the glacier directory with all the data you need. (I think). The only differences you might see are:
Here is a code to read and display the data:
rgi_ids = ['RGI60-11.0{}'.format(i) for i in range(3200, 3220)]
# Artesonrau (SH), Hintereisferner (NH)
rgi_ids = ['RGI60-16.02444', 'RGI60-11.00897']
# Locals
import oggm.cfg as cfg
from oggm import utils, workflow
# Initialize OGGM and set up the default run parameters
cfg.initialize(logging_level='WORKFLOW')
cfg.PARAMS['border'] = 10
# Usually we recommend to set dl_verify to True - here it is quite slow
# because of the huge files so we just turn it off.
# Switch it on for real cases!
cfg.PARAMS['dl_verify'] = False
cfg.PATHS['working_dir'] = utils.get_temp_dir('PyGEM_ex')
# Get the pre-processed topography data
from oggm.shop import rgitopo
gdirs = rgitopo.init_glacier_directories_from_rgitopo(rgi_ids)
# Process the ECMWF climate data from David
from oggm.shop import ecmwf
workflow.execute_entity_task(ecmwf.process_ecmwf_data, gdirs, dataset='ERA5dr')
# This creates a "climate_historical.nc" file in each glacier directory with
# the data in it:
fpath = gdirs[0].get_filepath('climate_historical')
print(fpath)
# plots
import xarray as xr
import matplotlib.pyplot as plt
for gdir, name in zip(gdirs, ['Artesonraju', 'Hintereisferner']):
ds = xr.open_dataset(gdir.get_filepath('climate_historical'))
f, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2, figsize=(12, 7))
ds.temp.plot(ax=ax1)
ds.temp_std.plot(ax=ax2)
ds.gradient.plot(ax=ax3)
ds.prcp.plot(ax=ax4)
plt.suptitle(name + ' - Ref height: {}m'.format(int(ds.ref_hgt)))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.