Skip to content

Instantly share code, notes, and snippets.

View wjcapehart's full-sized avatar

Bill Capehart wjcapehart

View GitHub Profile
@wjcapehart
wjcapehart / python_3.7_pynio_install_log.txt
Created September 25, 2019 16:22
Output python3 setup.py install >& python_3.7_pynio_install_log.txt (Python 3.7.4)
====> Installing Nio to the "PyNIO" site packages directory.
non-existing path in '': ''
running install
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
@wjcapehart
wjcapehart / fnl_netcdf.f90
Created October 17, 2018 21:54
Fortran Program for Reading ASCII Model Data, and Writing [then Reading] NetCDF
program fnl_netcdf
! Takes two ascii fields of global data, Temp and Hgt @ 500 hPa
! And creates geostrophic u and v winds @ 500 hPa
!
! These fields are written as a netcdf file
! Build Instructions
! compile with:
! gfortran -I${NETCDFINC} -L{NETCDFLIB} -lnetcdff make_netcdf.f90
@wjcapehart
wjcapehart / NGP_LOCA_tasmax_ACCESS1-0_r1i1p1_rcp45.ncdump
Last active October 16, 2018 21:01
LOCA Downscaled Climate Output NetCDF Inventory
netcdf NGP_LOCA_tasmax_ACCESS1-0_r1i1p1_rcp45 {
dimensions:
time = UNLIMITED ; // (34333 currently)
bnds = 2 ;
lat = 302 ;
lon = 450 ;
variables:
double lon_bnds(lon, bnds) ;
lon_bnds:_ChunkSizes = 450, 2 ;
double lon(lon) ;
@wjcapehart
wjcapehart / ncdump -v of file
Created October 16, 2018 18:05
Point Data for Rapid City Airport Inventory
netcdf dods://kyrill.ias.sdsmt.edu:8080/thredds/dodsC/GHCN_POINT_DATA/GHCND-USW00024090__RAPID_CITY_REGIONAL_AIRPORT_SD.nc {
dimensions:
time = UNLIMITED; // (25628 currently)
bnds = 2;
name_strlen = 49;
variables:
double time(time=25628);
:units = "days since 1970-01-01 00:00:00";
:long_name = "time";
:calendar = "standard";
@wjcapehart
wjcapehart / As Seen from THREDDS
Created October 16, 2018 18:01
GRIB2 Ensemble File Inventories
netcdf gens003_UCONUS_ALL_2018-10-16_00.wrf_ci_turb {
dimensions:
depth_below_surface_layer = 4 ;
depth_below_surface_layer_bounds_1 = 2 ;
ens = 21 ;
height_above_ground = 1 ;
height_above_ground1 = 1 ;
isobaric = 26 ;
isobaric1 = 25 ;
isobaric2 = 21 ;
@wjcapehart
wjcapehart / read_unidata2.f90
Created October 2, 2018 22:53
Unidata program with Modules
program read_unidata2
use wjc_units_conv_mod
use wjc_wind_spd_dir_to_u_v_mod
implicit none
! File Control
integer, parameter :: MAXREC = 100
@wjcapehart
wjcapehart / read_unidata2.f90
Created October 2, 2018 20:35
Close of Business Programs for Thursday 27 (Session #13)
program read_unidata2
use wjc_units_conv_mod
implicit none
! File Control
integer, parameter :: MAXREC = 100
@wjcapehart
wjcapehart / read_unidata2.f90
Created September 26, 2018 16:31
Unidata Program to Demonstrate Functions and Subroutines (w/o Modules)
program read_unidata2
implicit none
! File Control
integer, parameter :: MAXREC = 100
character (len=180) :: directory
character (len=180) :: filename
program read_unidata2
implicit none
! File Control
integer, parameter :: MAXREC = 100
character (len=180) :: directory
character (len=180) :: filename
program read_unidata
implicit none
character (len=180) :: directory
character (len=180) :: filename
character (len= 4) :: station_code
integer :: yyyy