, we use NMSU's Discovery node ''discovery-l2'':
<code bash>
# connect to the NMSU network using either ... username@discovery-l2
# type your NMSU password
</code>
Download the [[https://www.hec.usstart?rev=1721... RAS_610_Linux.zip|HEC-RAS 6.1.0 Linux version]].
<code bash>
mkdir -p ~/archive/hecras
cd ~/archive/hecr... oftware/hec-ras/downloads/HEC-RAS_610_Linux.zip
</code>
Uncompress the downloaded file.
<code bash>
mkd
mpiler]].
You can download the incomplete source code of PeakFQ from [[https://water.usgs.gov/software/... I'll use [[https://water.usgs.gov/software/PeakFQ/code/7.5.1/PeakFQ_7.5.1.src.zip|PeakFQ_7.5.1.src.zip]]... h compile_peakfq.sh>
#!/bin/sh
# download source code
wget https://water.usgs.gov/software/PeakFQ/code/7.5.1/PeakFQ_7.5.1.src.zip
# unzip it
mkdir -p ~/usr/
does not require tlmgr for additional packages.
<code bash>
# download the installer
cd /tmp
wget https... them into the current session
. ~/.bash_profile
</code>
For other users,
<code bash>
# create the same directory structure
mkdir -p ~/usr/local/opt ~/usr/loc... them into the current session
. ~/.bash_profile
</code>
===== Per-user installation =====
The initial
install micromamba ======
===== On UN*X =====
<code bash>
# install micromamba
curl -L https://micro.... " >> ~/.bashrc
# source micromamba
. ~/.bashrc
</code>
===== On Windows =====
Install [[https://chris... tures. See [[how to install Clink on Windows]].
<code batch>
rem install micromamba
mkdir %USERPROFILE%... \clink_start.cmd
rem add the doskey to the current session
%LOCALAPPDATA%\clink\clink_start.cmd
</code>
these dependencies and MODFLOW 6 on Slackware.
<code bash>
# switch to root
su -
# install openmpi an... ; then
echo 'export PATH="$HOME/usr/local/bin:$PATH"' > ~/.bash_profile
. ~/.bash_profile
fi
</code>
====== How to create an R package ======
<code rsplus>
# install devtools
install.packages("devtools")
# create a template in package/
usethis::create_package("package")
</code>
*.geojson > $output
</file>
Here is an example:
<code bash>
./download_arcgis_rest_features.sh https://hazards.fema.gov/arcgis/rest/services/FIRMette/NFHLREST_FIRMette/MapServer/1 firm_panels
</code>
find the order of a column in a CSV file ======
<code bash>
head -1 merged.csv |
sed 's/"//g; s/,/ /g' |
awk '{
for(i=1; i<=NF; i++)
if($i == "TOBS")
print i
}'
</code>