Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests, os | |
# put your secret API key here: | |
api_key = <dataverse_API_key> | |
dataverse_server='https://dataverse.harvard.edu' | |
dataset_id = 6565108 | |
persisentId = 'doi:10.7910/DVN/CJ3YXU' | |
url_list = f'{dataverse_server}/api/datasets/{dataset_id}/versions/:draft/files?key={api_key}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
import pdb | |
import re,os,time | |
import argparse | |
import shutil | |
from six import string_types as basestring | |
from os.path import join | |
from astropy import log | |
log.setLevel('DEBUG') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# one-liner to convert PDF to PDFA using ghostscript to meet NSF PAR requirements | |
gs -dPDFA -dNOOUTERSAVE -dBATCH -dNOPAUSE -sProcessColorModel=DeviceRGB -dUseCIEColor -sColorConversionStrategy=UseDeviceIndependentColor -sDEVICE=pdfwrite -dPDFACompatibilityPolicy=1 -sOutputFile=${fn/.pdf/_PDFA.pdf} $fn | |
# loop to do that to all files in a directory | |
for fn in *.pdf; do if [[ $fn != *pdfa* ]]; then if [ ! -f ${fn/.pdf/_PDFA.pdf} ]; then echo $fn; gs -dPDFA -dNOOUTERSAVE -dBATCH -dNOPAUSE -sProcessColorModel=DeviceRGB -dUseCIEColor -sColorConversionStrategy=UseDeviceIndependentColor -sDEVICE=pdfwrite -dPDFACompatibilityPolicy=1 -sOutputFile=${fn/.pdf/_PDFA.pdf} $fn; fi; fi; done |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Utilities for making finder charts and overlay images for ALMA proposing | |
""" | |
import string | |
import os | |
import numpy as np | |
from astropy import wcs | |
from astroquery import log |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder