After setup node.js, follow the instruction to install earth.nullschool
https://github.com/cambecc/earth
install grib2json
https://github.com/cambecc/grib2json
Steps:
http://www.mkyong.com/java/how-to-set-java_home-environment-variable-on-mac-os-x/
export JAVA_HOME=$(/usr/libexec/java_home)
brew install maven
https://github.com/cambecc/grib2json/issues/19
convert:
grib2json -d -n -o current-wind-surface-level-gfs-1.0.json gfs.t00z.pgrb2.1p00.f000
Error: Unable to access jarfile /Users/zhenningli/workspace/grib2json/src/bin/../lib/grib2json-*.jar
You should use the executable in another folder
/Users/zhenningli/workspace/grib2json/target/grib2json-0.8.0-SNAPSHOT/bin
Node.js was installed at
/usr/local/bin/node
npm was installed at
/usr/local/bin/npm
Make sure that /usr/local/bin is in your $PATH.
follow the dry core procedure, the first problem we meet is
#error: unknown fpp directive.
vi /global/home/groups/co_aiolos/models/spec_moist_idl_gfdl_model/src/shared/include/fms_platform.h
and give two space before the first _, done.
Next, the model was compiled smoothly, when it hit the link process, throw a problem
atmos_model.o: In function `atmos_model_init':
/global/home/groups/co_aiolos/models/spec_moist_idl_gfdl_model/src/atmos_solo/atmos_model.F90:290: undefined reference to `omp_set_num_threads_'
compared with dry core, comment corresponding lines
vi /global/home/groups/co_aiolos/models/spec_moist_idl_gfdl_model/src/atmos_solo/atmos_model.F90
IT WORKS!